- 博客(12)
- 资源 (1)
- 收藏
- 关注
原创 eclipse 项目结构对比
Dynamic Web Project:Java Project:Maven Project:Maven Web Project:
2018-06-24 18:46:23
1186
原创 IDEA Maven SpringMVC中使用thyme leaf
<properties> <!--解决 Maven3 中文编译乱码--> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <thymeleaf-version>3.0.2.RELEASE</thymeleaf-versio...
2018-06-13 21:59:40
616
原创 @Configuration 定义配置类
package configurations; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; i...
2018-06-13 15:29:55
1561
原创 web项目清除缓存
httpServletResponse.setHeader("Cache-Control","no-cache"); httpServletResponse.setHeader("Cache-Control","no-store"); httpServletResponse.setDateHeader("Expires", 0); httpServletResponse.setHeader("Pr.
2018-06-11 17:11:38
1599
转载 CentOS7无法访问tomcat
在CentOS-7上安装好JDK和Tomcat8之后,启动tomcat,无法通过主机访问,发现是防火墙的原因,关闭防火墙:> systemctl stop firewalld.service1或者在防火墙中开放8080端口的tcp协议,并重启防火墙服务:> firewall-cmd --permanent --add-port=8080/tcp > firewall-cmd --...
2018-06-07 11:23:42
515
原创 静态资源访问
1:web.xml配置<servlet> <servlet-name>default</servlet-name> <servlet-class> org.apache.catalina.servlets.DefaultServlet </servlet-class> </servlet&...
2018-06-03 20:47:23
214
转载 Spring配置文件头
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.sprin
2018-06-01 14:36:04
363
转载 SSM maven依赖
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven...
2018-05-31 14:20:37
295
转载 SpringMVC配置文件
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework
2018-05-31 13:08:41
204
转载 spring配置文件最全约束
<?xml version="1.0" encoding="utf-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework
2018-05-31 13:02:24
1031
原创 maven mybatis-generator 插件自动生成代码
在pom.xml中添加plugin<build> <plugins> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin&...
2018-05-31 10:41:56
195
转载 eclipse maven项目中查看依赖jar源码
1、在eclipse上“Window”-->“Preferences”-->"Maven"上,勾选“Download Artifact Sources”、“Download Artifact JavaDoc”。 2、在工程的pom.xml-->右键-->Run As-->Maven build...-->Goals:输入“dependency:source...
2018-04-25 19:44:10
931
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅