摘要: Java常见数据结构以及特点Java中常见的数据结构,主要分为Collection和Map两种主要接口,程序中的数据结构是继承这些接口的数据结构类。 Collection接口: List 接口继承:ArrayList、 Vector、 LinkedList等实现; Set 接口继承:HashSet、 阅读全文
posted @ 2021-11-29 13:28 现在开始JAVA 阅读(523) 评论(0) 推荐(0)
摘要: 1 <!-- thymeleaf依赖--> 2 <dependency> 3 <groupId>org.thymeleaf</groupId> 4 <artifactId>thymeleaf-spring5</artifactId> 5 </dependency> 6 <dependency> 7 阅读全文
posted @ 2021-11-17 22:43 现在开始JAVA 阅读(29) 评论(0) 推荐(0)
摘要: 1:导入包: 1 <dependencies> 2 <!--文件上传--> 3 <dependency> 4 <groupId>commons-fileupload</groupId> 5 <artifactId>commons-fileupload</artifactId> 6 <version> 阅读全文
posted @ 2021-10-31 17:55 现在开始JAVA 阅读(60) 评论(0) 推荐(0)
摘要: 1:配置(applicationContext.xml中): 1 <!-- 拦截器配置 --> 2 <mvc:interceptors> 3 <mvc:interceptor> 4 <!-- 包括这个请求下面的所有的请求 --> 5 <mvc:mapping path="/**"/> 6 <bean 阅读全文
posted @ 2021-10-28 21:55 现在开始JAVA 阅读(213) 评论(0) 推荐(0)
摘要: 提示: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException 阅读全文
posted @ 2021-10-26 23:01 现在开始JAVA 阅读(309) 评论(0) 推荐(0)
摘要: 类中的方法: 1 public String json3() throws JsonProcessingException { 2 3 ObjectMapper mapper = new ObjectMapper(); 4 5 // 不使用时间戳格式 6 mapper.configure(Seria 阅读全文
posted @ 2021-10-12 22:43 现在开始JAVA 阅读(162) 评论(0) 推荐(0)
摘要: servlet.xml中添加 1 <mvc:annotation-driven> 2 <mvc:message-converters register-defaults="true"> 3 <bean class="org.springframework.http.converter.StringH 阅读全文
posted @ 2021-10-12 22:21 现在开始JAVA 阅读(45) 评论(0) 推荐(0)
摘要: web.xml中添加 1 <filter> 2 <filter-name>encoding</filter-name> 3 <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> 4 <i 阅读全文
posted @ 2021-10-11 23:09 现在开始JAVA 阅读(427) 评论(0) 推荐(0)
摘要: xml中的配置: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org/2001/XML 阅读全文
posted @ 2021-09-15 23:37 现在开始JAVA 阅读(80) 评论(0) 推荐(0)
摘要: 一:Spring API接口方式 1.1:applicationContext.xml 1 <bean id="userService" class="com.lieyan.service.UserServiceImpl"/> 2 <bean id="log" class="com.lieyan.l 阅读全文
posted @ 2021-09-13 23:00 现在开始JAVA 阅读(270) 评论(0) 推荐(0)