不能用new 类名的方式

spring boot 中 类下定义@Autowired  JdbcTemplate  对象为null的解决_类名

 

 

要用的方式:

spring boot 中 类下定义@Autowired  JdbcTemplate  对象为null的解决_类名_02