idea,springboot问题记录,避免重复踩坑
问题1
cannot resolve symbol 'springbootapplication'
解决:
问题2
主程序没问题之后新建java class,没有new java class选项
https://blog.csdn.net/qq_36838191/article/details/80721415
设置为src
问题3
Error:(3, 29) java: 程序包org.junit.jupiter.api不存在
添加依赖
<dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.5.0</version> <scope>test</scope> </dependency>
https://blog.csdn.net/littlehaes/article/details/104088317
问题4
编写helloworld代码后浏览器没有正常显示,报 This application has no configured error view, so you are seeing this as a fallback.
检查注解是否完整,缺少@RestController注解