![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
chengjiang008
这个作者很懒,什么都没留下…
展开
-
@ServletComponentScan ,@ComponentScan,@Configuration 解析
1,@ServletComponentScan 在SpringBoot的main方法上使用@ServletComponentScan注解后,Servlet、Filter、Listener可以直接通过@WebServlet、@WebFilter、@WebListener注解自动注册,无需其他代码。 2,@ComponentScan 包扫描会扫描只要标注了@Controller,@Service,@Repository,@Component这四个注解都会被扫描到容器中。 3,@Configura.原创 2020-08-25 14:13:42 · 509 阅读 · 0 评论 -
Spring3.2的jar包,在jdk1.8环境下的报错处理
spring工程jar问题 开始环境使用的 Tomcat8.5,JDK1.8, Spring3.2 在使用普通的 Mappering和HandlerAdapter时,都没有问题,但是在使用到注解形式调用时,一直报错: 在网上查资料说是jdk版本不正确,需要换成1.7版本的jdk 本人使用eclipse开发Java,eclipse中总共有三个地方设定JDK a. eclipse的全局jdk版本设...原创 2018-09-27 16:16:52 · 2015 阅读 · 0 评论