一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

SSM 整合的配合文件(分享)

时间:2022-06-29 01:00:50 编辑:袖梨 来源:一聚教程网

1.1 maven项目pom管理



 UTF-8
 UTF-8
 1.9.3
 4.3.2.RELEASE
 1.8.6
 1.8.6
 1.3.0
 3.4.5
 5.1.32
 1.7.25
 1.7.25
 1.2.17
 2.3
 1.2
 4.12
 1.3.1
 1.0.13
 1.2
 <jsp-api.version>2.0
 2.9.2



 
 
 com.alibaba
 druid
 ${druid.version}
 
 
 commons-beanutils
 commons-beanutils
 ${commons.beanutils}
 
 
 
 org.springframework
 spring-core
 ${spring.version}
 
 
 
 org.springframework
 spring-context
 ${spring.version}
 
 
 
 org.springframework
 spring-aop
 ${spring.version}
 
 
 
 org.aspectj
 aspectjrt
 ${aspectj.version}
 
 
 
 org.aspectj
 aspectjweaver
 ${aspectj.weaver}
 
 
 
 org.springframework
 spring-jdbc
 ${spring.version}
 
 
 
 org.springframework
 spring-webmvc
 ${spring.version}
 

 
 
 org.mybatis
 mybatis-spring
 ${mybatis.spring.version}
 
 
 
 com.fasterxml.jackson.core
 jackson-databind
 ${jackson.version}
 
 
 
 org.mybatis
 mybatis
 ${mybatis.version}
 

 
 
 mysql
 mysql-connector-java
 ${mysql.version}
 


 
 
 commons-fileupload
 commons-fileupload
 ${commons-fileupload.version}
 
 
 
 jstl
 jstl
 ${jstl.version}
 
 
 javax.servlet
 jsp-api
 ${jsp-api.version}
 provided
 
 
 
 junit
 junit
 ${junit.version}
 test
 


 install
 
 
  org.apache.maven.plugins
  maven-compiler-plugin
  3.6.1
  
  1.8
  1.8
  
 
 
  org.apache.maven.plugins
  maven-resources-plugin
  3.0.2
  
  UTF-8
  
 
 
 
 
 
  src/main/java
  
  **/*.xml
  
 
 

1.2 Web.xml配置



 ssm
 
 
 characterEncoding
 org.springframework.web.filter.CharacterEncodingFilter
 
  encoding
  UTF-8
 
 
  forceEncoding
  true
 
 
 
 characterEncoding
 /*
 
 

 
 
 HttpMethodFilter
 org.springframework.web.filter.HttpPutFormContentFilter
 
 
 HttpMethodFilter
 /*
 
 
 HiddenHttpMethodFilter
 org.springframework.web.filter.HiddenHttpMethodFilter
 
 
 HiddenHttpMethodFilter
 /*
 
 
 
 springmvc
 org.springframework.web.servlet.DispatcherServlet
 
  contextConfigLocation
  classpath:springmvc.xml
 
 1
 
 
 springmvc
 *.shtml
 
 
 
 index.shtml
 index.htm
 index.jsp
 default.html
 default.htm
 default.jsp
 

1.3 springmvc配置文件



 
 

 
 
  
  
 
 
 
  
  
 

 
 

1.4 spring配置文件



 
 
 
 
  
  
   
   
   
   
   
   
   
   
   
   
  
 

 
 
  
 

 
 
  
  
  
  
 
 
 
  
  
 

 
 
  
  
  
  
   
    classpath:cn/itcast/mapper/*Mapper.xml
   
  
  
 

 
 
  
  
  
 

1.5 JDBC配置文件

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/crm?useUnicode=true&characterEncoding=utf8&autoReconnect=true
jdbc.username=root
jdbc.pwd=123456

1.6 Log4j配置文件

log4j.rootLogger=DEBUG,A1
log4j.logger.com.taotao = DEBUG
log4j.logger.org.mybatis = DEBUG
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss,SSS} [%t] [%c]-[%p] %m%n

1.7 MyBatis配置文件




热门栏目