![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
DRbug全家桶
生活不止眼前的bug,还有泡面可乐和咖啡
展开
-
Spring Boot项目源码启动正常,打成jar包后启动报错找不到主类
java -jar .\target\demo-0.0.1-SNAPSHOT.jarpersonal-demo-0.0.1-SNAPSHOT.jar中没有主清单属性网上翻了,大多都是说在pom.xml加以下这段 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId>原创 2021-12-22 10:39:50 · 2013 阅读 · 2 评论 -
springboot入门测试时,启动服务器后,浏览器报错404无法访问资源
检查访问资源路径是否为服务入口所在同级或者下级包,因为注解@SpringBootApplication默认扫描同等路径及下级路径的包,如果想访问上级包的资源,需要通过@ComponentScan或@ComponentScans配置其他需要访问的资源路径我这里原本Demo00Application自动创建的这个类是在cn/springboot/demo00/这个目录下,所以服务器启动的时候无法访问...原创 2019-10-24 22:12:16 · 470 阅读 · 0 评论