SpringMVC + Mybatis + Mysql practical project learning-Environment Building, springmvcmybatis
1. Development IDE: Spring Tool Suite (with maven plug-in)
https://spring.io/tools/sts/all
Add the following line in the STS. ini configuration to ensure the encoding format is UTF-8.
-Dfiles. encoding = UTF-8
2. jdk: java 1.8
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Environment Configuration
Computer → properties → advanced system settings → advanced → Environment Variables
I. Create JAVA_HOME, jdk path
Ii. Path: add the bin Path of jdk and jre
Iii. Create a toolkit in CLASSPATH jdk-use the VM (variable format: ..; % JAVA_HOME % \ lib \ tools. jar)
Verify: cmd-"java-version displays jdk layout information
3. mysql
Http://dev.mysql.com/downloads/windows/installer/5.5.html
Mysql View tool sqlyog
Sts creates a project
File--》New—》Spring Legacy Project
Project Name write Project Name
Select Spring MVC Project for Templates
Next
Write top-level package names such as com. project. myapp
If the project displays an error
Right-click "Run as-" Maven install"
Right-click --> properties --> set as follows:
The directory structure is as follows: