随笔分类 -  Spring Boot遇坑指南

spring boot druid
摘要:12 阅读全文

posted @ 2019-02-20 22:52 Mofitor 阅读(96) 评论(0) 推荐(0)

Spring Boot 整合mybatis时遇到的mapper接口不能注入的问题
摘要:现实情况是这样的,因为在练习spring boot整合mybatis,所以自己新建了个项目做测试,可是在idea里面mapper接口注入报错,后来百度查询了下,把idea的注入等级设置为了warning,至于怎末设置可以自行百度,这里不再赘述,但是接下来spring boot能够运行起来,但是通过浏 阅读全文

posted @ 2019-02-20 22:48 Mofitor 阅读(1016) 评论(0) 推荐(0)

Spring Boot logging 引入其他配置文件及静态资源
摘要:4 阅读全文

posted @ 2019-02-16 02:13 Mofitor 阅读(120) 评论(0) 推荐(0)

@Condition 条件注解
摘要:3 阅读全文

posted @ 2019-02-16 02:12 Mofitor 阅读(357) 评论(0) 推荐(0)

Spring Boot logging 配置及相关属性
摘要:1 阅读全文

posted @ 2019-02-16 02:10 Mofitor 阅读(245) 评论(0) 推荐(0)

spring boot的项目名称问题
摘要:spring boot直接执行main函数时是不需要加项目名称,但是可以在application配置文件中配置server.context-path=/*来配置项目名称; spring mvc的运行方式是将打成的war包在tomcat中运行,这种情况下访问需要在url中加入项目名。 阅读全文

posted @ 2019-02-16 02:09 Mofitor 阅读(274) 评论(0) 推荐(0)

spring boot的项目结构问题
摘要:问题:spring boot项目能够正常启动,但是在浏览器访问的时候会遇到404的错误,Whitelable Error Page 404 分析及解决方案:首先Application文件要放在项目的外层,也就是pom文件中groupId所在路径下,在这个目录下或者再往上也可以,Application 阅读全文

posted @ 2019-02-16 02:05 Mofitor 阅读(132) 评论(0) 推荐(0)

@RestController无法自动注入的问题
摘要:今天在练习spring boot的时候,发现在ide中无法将@RestController注入到代码中,@RestController注解依赖的包是org.springframework.web,检查工程lib中,发现这个包已经存在,百度检查问题,有说版本的问题的,但是检查了版本信息发现并没有问题, 阅读全文

posted @ 2019-02-16 01:55 Mofitor 阅读(1332) 评论(0) 推荐(0)

导航