随笔分类 - Spring
摘要:在做springmvc+maven项目时,经常遇到如下错误: 解决办法(这里以jdk1.8,web3.0为例): 一:保证build path的jre版本 remove掉旧版本的,add新版本 二:保证java complier版本和前面的一致 三:更改maven pom.xml文件 四:修改pro
阅读全文
摘要:实现方法:拦截器+session存储 拦截器初始化时,即在@PostConstruct注解的initMethod方法中读取数据库的isystem对象,该对象记录了网站访问量的信息。 拦截器销毁时,即在@PreDestroy注解的destroyMethod方法中向数据库更新isystem对象。 拦截器
阅读全文
摘要:依赖包 web.xml配置 log4j.properties配置文件
阅读全文
摘要:依赖包 web.xml配置 web.xml中首先在contextConfigLocation中配置applicationContext-server.xml的路径,并配置CXFService,路径为/service/*,指定webservice的访问路径为localhost:8080/service
阅读全文
摘要:配置web.xml <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-cla
阅读全文
摘要:在web.xml中配置 <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener> ContextLoaderListener的作用就是启动W
阅读全文