随笔分类 -  Spring

摘要:在做springmvc+maven项目时,经常遇到如下错误: 解决办法(这里以jdk1.8,web3.0为例): 一:保证build path的jre版本 remove掉旧版本的,add新版本 二:保证java complier版本和前面的一致 三:更改maven pom.xml文件 四:修改pro 阅读全文
posted @ 2017-07-28 09:50 且听风吟-wuchao 阅读(4689) 评论(1) 推荐(0) 编辑
摘要:实现方法:拦截器+session存储 拦截器初始化时,即在@PostConstruct注解的initMethod方法中读取数据库的isystem对象,该对象记录了网站访问量的信息。 拦截器销毁时,即在@PreDestroy注解的destroyMethod方法中向数据库更新isystem对象。 拦截器 阅读全文
posted @ 2017-07-14 21:27 且听风吟-wuchao 阅读(5267) 评论(0) 推荐(0) 编辑
摘要:依赖包 web.xml配置 log4j.properties配置文件 阅读全文
posted @ 2017-07-09 19:56 且听风吟-wuchao 阅读(311) 评论(0) 推荐(0) 编辑
摘要:依赖包 web.xml配置 web.xml中首先在contextConfigLocation中配置applicationContext-server.xml的路径,并配置CXFService,路径为/service/*,指定webservice的访问路径为localhost:8080/service 阅读全文
posted @ 2017-07-09 19:21 且听风吟-wuchao 阅读(303) 评论(0) 推荐(0) 编辑
摘要:配置web.xml <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-cla 阅读全文
posted @ 2016-11-07 20:20 且听风吟-wuchao 阅读(923) 评论(0) 推荐(0) 编辑
摘要:在web.xml中配置 <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener> ContextLoaderListener的作用就是启动W 阅读全文
posted @ 2016-11-07 14:48 且听风吟-wuchao 阅读(94162) 评论(2) 推荐(7) 编辑

点击右上角即可分享
微信分享提示