maven
Name: mybatis-generator
command line: mybatis-generator:generate -e
在 resources 下面的 generatorConfig.xm中 写
resources 下面的spring 文件夹中四个XML文件
applicationContext-dao.xml
applicationContext-service.xml
applicationContext-transaction.xml
springmvc.xml
application/json;charset=utf-8
text/html;charset=utf-8
application/x-www-form-urlencoded
resource 下面的mybatis的文件
sqlMapConfig.xml
resource下面db.properties
jdbc.driver =com.mysql.jdbc.Driver
jdbc.url = jdbc:mysql://39.96.172.160:3306/hicode_form?useUnicode=true&characterEncoding=UTF-8
jdbc.username=root
jdbc.password=password
resource 下面的 log4j.properties
# Global logging configuration
#\u751F\u4EA7\u73AF\u5883\u914D\u7F6Einfo ERROR
log4j.rootLogger=DEBUG,stdout
# MyBatis logging configuration...
log4j.logger.org.mybatis.example.BlogMapper=TRACE
# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
webapp\WEB-INF\web.xml
contextConfigLocation
classpath:spring/applicationContext-*.xml
org.springframework.web.context.ContextLoaderListener
springDispatcherServlet
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:spring/springmvc.xml
1
springDispatcherServlet
/
index
characterEncodingFilter
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
forceEncoding
true
characterEncodingFilter
/*
/WEB-INF/
java文件夹 下面的大致结构
最后就是pom.xml
4.0.0
war
Jy
com.xfsk
Jy
1.0-SNAPSHOT
UTF-8
1.8
1.8
4.2.2.RELEASE
3.2.6
1.7.7
1.2.17
sonatype-nexus-staging
Sonatype Nexus Staging
https://oss.sonatype.org/service/local/staging/deploy/maven2/
true
true
junit
junit
4.11
test
com.google.zxing
core
3.3.0
javax.mail
mail
1.4.7
javax
javaee-api
7.0
com.fasterxml.jackson.core
jackson-core
2.9.2
com.fasterxml.jackson.core
jackson-databind
2.9.2
org.apache.httpcomponents
httpclient
4.5.5
org.apache.httpcomponents
httpcore
4.4.1
org.jdom
jdom
1.1
com.belerweb
weibo4j-oauth2
2.1.1-beta2-3
com.github.pagehelper
pagehelper
4.1.6
org.springframework
spring-core
${spring.version}
org.springframework
spring-web
${spring.version}
org.springframework
spring-oxm
${spring.version}
org.springframework
spring-tx
${spring.version}
org.springframework
spring-jdbc
${spring.version}
org.springframework
spring-webmvc
${spring.version}
org.springframework
spring-aop
${spring.version}
org.springframework
spring-context-support
${spring.version}
org.springframework
spring-test
${spring.version}
org.mybatis
mybatis
${mybatis.version}
org.mybatis
mybatis-spring
1.2.2
mysql
mysql-connector-java
5.1.30
commons-dbcp
commons-dbcp
1.2.2
jstl
jstl
1.2
log4j
log4j
${log4j.version}
com.alibaba
fastjson
1.2.28
org.slf4j
slf4j-api
${slf4j.version}
org.slf4j
slf4j-log4j12
${slf4j.version}
org.codehaus.jackson
jackson-mapper-asl
1.9.13
commons-fileupload
commons-fileupload
1.3.1
commons-io
commons-io
2.4
commons-codec
commons-codec
1.9
commons-collections
commons-collections
3.2.1
commons-lang
commons-lang
2.5
commons-logging
commons-logging
1.2
net.sf.ezmorph
ezmorph
1.0.6
org.apache.httpcomponents
httpclient
4.4.1
com.alibaba
druid
1.0.9
org.apache.shiro
shiro-aspectj
1.3.2
org.apache.shiro
shiro-cas
1.3.2
org.apache.shiro
shiro-core
1.3.2
org.apache.shiro
shiro-ehcache
1.3.2
org.apache.shiro
shiro-guice
1.3.2
org.apache.shiro
shiro-quartz
1.3.2
org.apache.shiro
shiro-spring
1.3.2
org.apache.shiro.tools
shiro-tools-hasher
1.3.2
org.apache.shiro
shiro-web
1.3.2
org.slf4j
slf4j-log4j12
1.7.12
test
org.slf4j
slf4j-api
1.7.21
joda-time
joda-time
2.9.8
com.sun.mail
javax.mail
1.5.6
org.apache.poi
poi
3.16
com.alipay.sdk
alipay-sdk-java
3.1.0
xmlpull
xmlpull
1.1.3.1
xpp3
xpp3
1.1.4c
net.sf.json-lib
json-lib
2.4
jdk15
com.thoughtworks.xstream
xstream
1.4.9
javax.xml.bind
jaxb-api
2.3.0
com.sun.xml.bind
jaxb-impl
2.3.0
com.sun.xml.bind
jaxb-core
2.3.0
javax.activation
activation
1.1.1
org.json
json
20170516
com.google.code.gson
gson
2.8.2
commons-beanutils
commons-beanutils
1.8.0
com.aliyun
aliyun-java-sdk-core
4.3.3
com.aliyun
aliyun-java-sdk-mts
2.1.1
com.aliyun.oss
aliyun-sdk-oss
3.1.0
com.google.zxing
core
3.3.2
com.google.zxing
javase
3.3.0
org.apache.commons
commons-lang3
3.0
com.aliyun
aliyun-java-sdk-vod
2.15.5
com.google.code.gson
gson
2.8.2
org.springframework.boot
spring-boot
2.1.2.RELEASE
org.springframework.boot
spring-boot
2.1.2.RELEASE
org.hibernate
hibernate-validator
5.2.4.Final
org.projectlombok
lombok
1.16.10
org.junit.jupiter
junit-jupiter-api
5.4.0-M1
junit
junit
4.13-beta-1
hicode
src/main/java
**/*.xml
src/main/resources
maven-clean-plugin
3.0.0
maven-resources-plugin
3.0.2
maven-compiler-plugin
3.7.0
maven-surefire-plugin
2.20.1
maven-war-plugin
3.2.0
maven-install-plugin
2.5.2
maven-deploy-plugin
2.8.2
org.mybatis.generator
mybatis-generator-maven-plugin
1.3.2
true
true
Generate MyBatis Artifacts
generate
org.mybatis.generator
mybatis-generator-core
1.3.2
maven-compiler-plugin
lib-ext
org.apache.maven.plugins
maven-war-plugin
lib-ext
WEB-INF/lib/
**/*.jar
我暂时所用过的常用依赖