欢迎来到天天文库
浏览记录
ID:32658401
大小:65.67 KB
页数:11页
时间:2019-02-14
《springmvcmybatisfreemarkerjsp集成(配置完备,绝对可用)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、SpringMVC+Mybatis+FreeMarker+JSP集成配置(绝对可用)web.xml2、.org/xml/ns/javaee/web-app_3_l.xsdHid=nWebApp_IDuversion=n3Jn>testv/disDlav-name〉vcontext-param>contextConfigLocationv/param-name>classpath:config/spring-*.xmlv/param-value>v/context-param>org.springframework.3、web.context.ContextLoaderListenerCharacterEncodingFiIterorg.springframework.web.filter.CharacterEncodingFilterencodingUTF-84、ue>forceEncodingv/param・name〉trueCharacterEncodingFilterv/filter-name〉/*dispatcher5、name〉org.springframework.web.servlet.DispatcherServletcontextConfigLocationv/param-name>classpath:config/spring-mvc.xmll6、ng>dispatcherv/servlet・name〉/index.jspIog4j.properties###setloglevels####log4j.rootLogger=info,Console,Dlog4j.rootLogger=info’Console#Con7、soleIog4j.appender.Console=org.apacheJog4j.ConsoleAppenderIog4j.appender・Console」ayout=org・apache」og4j.PatternLayoutlog4j.appender.Console」ayout・ConversionPattern=%d[%t]%-5p[%c]-%m%nIog4j.loggerjava.sqI.ResuItSet=INFOIog4j」ogger.org.apache=INFOIog4jJogger.java.sql.Connectio8、n=INFOIog4j」ogger.java.sql.Statement二INFOIog4j.Iogger.java.sql.PreparedStatement=I
2、.org/xml/ns/javaee/web-app_3_l.xsdHid=nWebApp_IDuversion=n3Jn>testv/disDlav-name〉vcontext-param>contextConfigLocationv/param-name>classpath:config/spring-*.xmlv/param-value>v/context-param>org.springframework.
3、web.context.ContextLoaderListenerCharacterEncodingFiIterorg.springframework.web.filter.CharacterEncodingFilterencodingUTF-84、ue>forceEncodingv/param・name〉trueCharacterEncodingFilterv/filter-name〉/*dispatcher5、name〉org.springframework.web.servlet.DispatcherServletcontextConfigLocationv/param-name>classpath:config/spring-mvc.xmll6、ng>dispatcherv/servlet・name〉/index.jspIog4j.properties###setloglevels####log4j.rootLogger=info,Console,Dlog4j.rootLogger=info’Console#Con7、soleIog4j.appender.Console=org.apacheJog4j.ConsoleAppenderIog4j.appender・Console」ayout=org・apache」og4j.PatternLayoutlog4j.appender.Console」ayout・ConversionPattern=%d[%t]%-5p[%c]-%m%nIog4j.loggerjava.sqI.ResuItSet=INFOIog4j」ogger.org.apache=INFOIog4jJogger.java.sql.Connectio8、n=INFOIog4j」ogger.java.sql.Statement二INFOIog4j.Iogger.java.sql.PreparedStatement=I
4、ue>
5、name〉org.springframework.web.servlet.DispatcherServletcontextConfigLocationv/param-name>classpath:config/spring-mvc.xmll
6、ng>dispatcherv/servlet・name〉/index.jspIog4j.properties###setloglevels####log4j.rootLogger=info,Console,Dlog4j.rootLogger=info’Console#Con
7、soleIog4j.appender.Console=org.apacheJog4j.ConsoleAppenderIog4j.appender・Console」ayout=org・apache」og4j.PatternLayoutlog4j.appender.Console」ayout・ConversionPattern=%d[%t]%-5p[%c]-%m%nIog4j.loggerjava.sqI.ResuItSet=INFOIog4j」ogger.org.apache=INFOIog4jJogger.java.sql.Connectio
8、n=INFOIog4j」ogger.java.sql.Statement二INFOIog4j.Iogger.java.sql.PreparedStatement=I
此文档下载收益归作者所有