博客园 首页 私信博主 显示目录 隐藏目录 管理

09 2021 档案

摘要:乱码统一解决 在springmvc的配置文件中加入: <mvc:annotation-driven> <mvc:message-converters register-defaults="true"> <bean class="org.springframework.http.converter.S 阅读全文
posted @ 2021-09-25 11:34 火华呀 阅读(159) 评论(0) 推荐(0)
摘要:在web.xml配置文件中加入:<filter> <filter-name>encoding</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init 阅读全文
posted @ 2021-09-24 19:12 火华呀 阅读(88) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2021-09-23 20:14 火华呀 阅读(66) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2021-09-23 19:50 火华呀 阅读(128) 评论(0) 推荐(0)
摘要:在maven项目的pom配置文件的<project>....</project>中加入: <!--Maven静态资源过滤问题--> <build><resources> <resource> <directory>src/main/java</directory> <includes> <inclu 阅读全文
posted @ 2021-09-23 19:34 火华呀 阅读(41) 评论(0) 推荐(0)
摘要:ctrl+shift+alt:多行操作psvm:生成main()方法;fori:生成for循环;Ctrl+Alt+v:自动补齐返回值类型ctrl+o:覆写方法ctrl+i:实现接口中的方法ctrl+shift+u:大小写转换CTRL+SHIFT+Z:取消撤销Alt+Insert:生成构造方法、get 阅读全文
posted @ 2021-09-23 18:17 火华呀 阅读(44) 评论(0) 推荐(0)
摘要:<dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.46</version> </dependency> <dependency 阅读全文
posted @ 2021-09-23 17:48 火华呀 阅读(274) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns= "http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2021-09-23 17:44 火华呀 阅读(234) 评论(0) 推荐(0)