JAVA
去看日出
软件行业
展开
-
java项目部署到tomcat启动时报错java.lang.IllegalAccessError: cl org.xml.sax.helpers.SecuritySupport12 cannotass
Please addmetadata-complete="true" in yourweb.xml to override default properties of 3.0 for annotations. The metadata-complete attribute of the web-app element in a Web application's depl转载 2015-10-15 13:00:32 · 1306 阅读 · 0 评论 -
previously initiated loading for a different type with name "javax/servlet/ServletContext"
maven下run项目,报如上错,请先检查生成的war包中是否包含有servlet-api.jar,若有则说明是servlet-api.jar冲突。用eclipse查看项目的pom.xml文件的jar依赖树,打开pom.xml---->选项卡Dependency Hierarchy找到依赖的servlet-api.jar右键--->Open POM查看此jar的pom信息原创 2016-03-20 20:58:00 · 8059 阅读 · 1 评论 -
Druid数据库连接池的使用
一、基于spring创建 首先是过滤器filte原创 2016-05-01 09:17:05 · 392 阅读 · 0 评论 -
spring-boot 接口请求之Date、LocalDate、LocalDateTime日期类型转换处理
搭建完一个spring-boot的接口服务后,可以在前段通过ajax异步请求后台接口数据,一般ajax通过传递json对象给后台接口,后台接收数据转化为Bean对象,处理逻辑完成后,将返回的数据转为json回送给前台调用者;1.前台ajax参数格式为:var param1={ id:1234, name:'名称', path:'路径', createdD原创 2018-01-26 12:45:35 · 21825 阅读 · 2 评论 -
spring-boot 接口请求之Ajax数据请求格式
spring后台的controller提供了@RequestParam、@RequestBody等参数注解,使用不同的注解,对于允许的前台请求格式也不一样,下面就列出不同格式的请求实例: 本环境使用spring-boot搭建后台接口服务,前台采用ajax形式发送数据,数据的传递使用Bean实体类接收,在参数接收时,如果出现日期格式无法解析的情况,参见本人的另一篇文章spring-boot原创 2018-01-28 09:49:30 · 3347 阅读 · 0 评论