08 2018 档案
摘要:问题原因 拦截器加载的时间点在springcontext之前,所以在拦截器中注入自然为null 文件解决 在spring配置文件中这样写 使用bean注解提前加载,即可成功。
阅读全文
摘要:转自: 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
阅读全文
摘要:转自: 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
阅读全文
摘要:1. pom文件的驱动jar包加上去, 2. application.yml 注意不要使用url,要使用jdbc-url 主数据库配置: 第二数据库配置:
阅读全文
摘要:List<User> list = new ArrayList<User>(); User user1 = new User("第一位","用户1"); list.add(user1); User user2 = new User("第二位","用户2"); list.add(user2); Use
阅读全文