SpringMVC + Mybatis + Mysql practical project learning-Environment Building, springmvcmybatis

Source: Internet
Author: User
Tags mysql view

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:

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.