ssm項目快速搭建(配置)
阿新 • • 發佈:2018-12-19
factory sch xml配置 config 加載 eth expr clu tis 核心jar包
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<spring.version>5.0.2.RELEASE</spring.version>
<slf4j.version>1.6.6</slf4j.version>
<log4j.version>1.2.12</log4j.version>
<mysql.version>5.1.6</mysql.version>
<mybatis.version>3.4.5</mybatis.version>
</properties>
?
?
org.aspectj
aspectjweaver
1.6.8
?
org.springframework
spring-aop
${spring.version}
?
org.springframework
spring-context
${spring.version}
?
org.springframework
spring-web
${spring.version}
?
org.springframework
spring-webmvc
${spring.version}
?
org.springframework
spring-test
${spring.version}
?
org.springframework
spring-tx
${spring.version}
?
org.springframework
spring-jdbc
${spring.version}
?
junit
junit
4.12
compile
?
mysql
mysql-connector-java
${mysql.version}
?
javax.servlet
servlet-api
2.5
provided
?
javax.servlet.jsp
jsp-api
2.0
provided
?
jstl
jstl
1.2
?
log4j
log4j
${log4j.version}
?
org.slf4j
slf4j-api
${slf4j.version}
?
org.slf4j
slf4j-log4j12
${slf4j.version}
?
org.mybatis
mybatis
${mybatis.version}
?
org.mybatis
mybatis-spring
1.3.0
?
c3p0
c3p0
0.9.1.2
jar
compile
org.projectlombok
lombok
1.16.8
com.fasterxml.jackson.core
jackson-core
2.9.0
com.fasterxml.jackson.core
jackson-annotations
2.9.0
com.fasterxml.jackson.core
jackson-databind
2.9.0
org.projectlombok
lombok
1.16.8
web.xml配置文件
?
Archetype Created Web Application
contextConfigLocation
classpath:applicationContext.xml
org.springframework.web.context.ContextLoaderListener
?
characterEncodingFilter
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
characterEncodingFilter
/*
dispatcherServlet
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:springmvc.xml
dispatcherServlet
/
applicationContext.xml文件
?
?
?
?
?
?
?
springMVC.xml配置文件
?
?
JdbcConfig.properties配置文件
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/mybatis
jdbc.username=root
jdbc.password=root
SqlMapConfig.xml核心mybstis配置文件
?
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<spring.version>5.0.2.RELEASE</spring.version>
<slf4j.version>1.6.6</slf4j.version>
<mysql.version>5.1.6</mysql.version>
<mybatis.version>3.4.5</mybatis.version>
</properties>
?
?
ssm項目快速搭建(配置)