
模板
田螺小伙丶
永远不要只是看上去很努力!所有的恐惧源自于无知!
展开
-
spring web xml配置模板
spring-web.xmlv<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmln...原创 2018-03-27 13:02:01 · 736 阅读 · 0 评论 -
spring service xml配置
spring-service.xml<?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:...原创 2018-03-27 12:56:15 · 6415 阅读 · 0 评论 -
spring dao xml配置
spring-dao.xml,spring整合mybatis和redis<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta...原创 2018-03-27 12:46:49 · 3710 阅读 · 0 评论 -
不同版本(2.3,2.4,2.5,3.0,3.1)的Servlet web.xml 头信息
web.xml v2.3<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">转载 2018-03-17 10:36:10 · 440 阅读 · 0 评论 -
log4j简单的配置
注:如果没有调用 BasicConfigurator.configure() 方法,则运行 main 函数的时候则会报错,因为 Log4j 框架在运行的时候会加载项目路径下的 log4j.properties 配置文件(关于配置文件的使用,会在后面讲解)。而我们此时的项目中是没有该文件的。如果配置文件的名称不是log4j.properties,则可以通过 PropertyConfigurator.configure(String configFilename) 指定配置文件的名称。原创 2018-05-20 11:42:29 · 633 阅读 · 0 评论 -
spring-web.xml (二)
<?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...原创 2018-05-24 21:29:06 · 1334 阅读 · 0 评论 -
Spring MVC静态资源处理
优雅REST风格的资源URL不希望带 .html 或 .do 等后缀.由于早期的Spring MVC不能很好地处理静态资源,所以在web.xml中配置DispatcherServlet的请求映射,往往使用 *.do 、 *.xhtml等方式。这就决定了请求URL必须是一个带后缀的URL,而无法采用真正的REST风格的URL。如果将DispatcherServlet请求映射配置为"/",则Sprin...转载 2018-05-24 21:53:38 · 190 阅读 · 0 评论