Digest:今天Spring Boot 应用启动成功,访问接口出现如下错误,不知到导致问题关键所在,记录一下这个问题。
浏览器报500错误
项目代码如下
Controller.java
package com.lints.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; /** * @Author Lints * @Date 2019/10/31 9:06 * @Description This is description of class * @Since version-1.0 */ @RestController public class HelloController { /** * @Author Lints * @Date 2019/10/31 9:06 * @Description 这用于处理浏览器hello请求 * @Param null * @Return java.lang.String * @Since version-1.0 */ @ResponseBody @RequestMapping("/hello") public String helloWorld(){ return "Hello World!"; } }