Step one: Open IDEA software development
Step two: Click maven (select maven-archetype-webapp)
Step 3: Add dependent (dependent on core) in pom.xml
spring-beans、spring-context
spring-web、spring-webmvc、spring-jdbc
mybatis、mybatis-spring
druid
mysql
chilli
jackson
logback (new dependent)
Step four: web.xml configuration
1, contextLoaderLister (spring beans profile monitor) connected to appicationContext.xml file -------
2, spring mvc configuration --------------------------------------------- ----- connected to the spring-servlet.xml file
3, coding (encoding) Configuration
4, the newly added druid
Step five: spring-servlet.xml configuration
Step Six: applicationContext.xml Configuration
Step Seven: mybatis-config.xml configuration
Step eight: logback.xml Configuration