摘要: 问题原因 拦截器加载的时间点在springcontext之前,所以在拦截器中注入自然为null 文件解决 在spring配置文件中这样写 使用bean注解提前加载,即可成功。 阅读全文
posted @ 2018-08-29 16:16 小锋神 阅读(2154) 评论(0) 推荐(0) 编辑
摘要: 转自: https://www.cnblogs.com/wmyskxz/p/9010832.html Spring Boot 概述 Build Anything with Spring Boot:Spring Boot is the starting point for building all S 阅读全文
posted @ 2018-08-29 15:41 小锋神 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 转自: https://www.cnblogs.com/wmyskxz/p/9010832.html Spring Boot 概述 Build Anything with Spring Boot:Spring Boot is the starting point for building all S 阅读全文
posted @ 2018-08-29 15:41 小锋神 阅读(824) 评论(0) 推荐(0) 编辑
摘要: 1. pom文件的驱动jar包加上去, 2. application.yml 注意不要使用url,要使用jdbc-url 主数据库配置: 第二数据库配置: 阅读全文
posted @ 2018-08-29 10:33 小锋神 阅读(17046) 评论(2) 推荐(0) 编辑