SpringBoot
EngineerForSoul
我醉欲眠卿且去,明朝有意抱琴来
书山有路勤为径,学海无涯苦作舟
同是天涯沦落人,相逢何必曾相识
展开
-
搭建的springboot项目报错This application has no explicit mapping for /error, so you are seeing this as a fa
搭建的springboot项目报错This application has no explicit mapping for /error, so you are seeing this as a fallback.原因1:Application启动类的位置不对.要将Application类放在最外侧,即包含所有子包原因:spring-boot会自动加载启动类所在包下及其子包下的所有组件...原创 2019-09-08 01:15:38 · 4234 阅读 · 0 评论 -
搭建的springboot项目 如何访问静态资源
SpringBoot中默认是不开放静态资源的application.properties配置文件中加上如下配置#开放静态资源访问spring.mvc.static-path-pattern=/static/**原创 2019-09-08 01:22:00 · 291 阅读 · 0 评论 -
搭建的springboot项目自建webapp
自建webapp 和WEB-INF选中WEB-INF如果上图中没有web 用下图添加web配置完毕后还没有web.xml 如下如删掉 重新添加 添加方法见上面图综合步骤如下图...原创 2019-09-08 01:38:32 · 1319 阅读 · 0 评论 -
Error starting ApplicationContext. To display the auto-configuration report re-run your application
SpringBoot项目启动报错:Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.Error starting ApplicationContext. To display the auto-conf...原创 2019-09-08 02:11:58 · 41226 阅读 · 2 评论 -
SpringBoot集成jsp后访问的时候依然报404
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>Sp...原创 2019-09-08 02:22:05 · 275 阅读 · 0 评论 -
SpringBoot 启动器 介绍及其作用
Spring Boot应用启动器基本的一共有44种,具体如下:1)spring-boot-starter这是Spring Boot的核心启动器,包含了自动配置、日志和YAML。2)spring-boot-starter-actuator帮助监控和管理应用。3)spring-boot-starter-amqp通过spring-rabbit来支持AMQP协议(Advanced ...转载 2019-09-24 10:56:38 · 6179 阅读 · 0 评论