框架
Li_Cheng_Liang
这个作者很懒,什么都没留下…
展开
-
Spring-Struts-Mybatis整合
此为作者原创 转载请注明出处 在这里我使用的是struts2.3.7+Spring4.3.4+Mybatis3.4.1 首先需要导入jar包(需要注意包冲突如log4j重复javassist-3.18.1-GA.jar重复等) 然后配置web.xml文件 Spring_Struts_MyBatis index.html index.htm index.jsp defa原创 2016-12-07 14:09:12 · 384 阅读 · 0 评论 -
spring整合struts@Autowired注入为空指针
今天在ssh纯注解整合的时候发现使用spring的@Autowired注入到struts的action的时候总是空指针,我以为是struts的配置文件出错了我就去 增加struts.xml文件中增加一条配置 此时发现并不好使我又去struts的配置文件修改 修改了struts默认的配置文件 发现也不好使,最终尴尬的发现少引入了一个jar文件struts2-spring-plugin原创 2016-12-07 18:31:09 · 1647 阅读 · 0 评论