![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
曹恭铖
这个作者很懒,什么都没留下…
展开
-
SpringBoot学习(一)myeclipse搭建springboot
1.使用myeclipse搭建springboot1) File -> New ->Other选Spring Web 是为了嵌入一个tomcat,会在pom.xml自动增加: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web...原创 2020-10-08 15:26:11 · 1872 阅读 · 0 评论 -
springboot解决@Autowired为空
在线程中使用@Autowired自动注入了,但是执行报空指针,jdbcTemplate为空,使用new AllSubmitNumThread()导致自动注入失效了public class AllSubmitNumThread extends Thread{ @Autowired JdbcTemplate jdbcTemplate;}public class A{ AllSubmitNumThread t1 = new AllSubmitNumThread ();...原创 2020-09-15 10:33:45 · 1211 阅读 · 0 评论 -
Template mode “LEGACYHTML5 “ has not been configured
spring.thymeleaf.mode=LEGACYHTML5上面配置最后多了个空格原创 2020-09-10 11:55:14 · 457 阅读 · 0 评论