`
samwalt
  • 浏览: 279985 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

解决@PostConstruct注解的方法不执行的问题

    博客分类:
  • java
 
阅读更多
除了
xmlns:context="http://www.springframework.org/schema/context"

xsi:schemaLocation=“http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"


还要配置:

xmlns:aop="http://www.springframework.org/schema/aop"

http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd


此外,tomcat-5.5不支持@PostConstruct,要tomcat-6.0以上版本
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics