阅读背景:

【Spring Boot&&Spring Cloud系列】Spring Boot初识

来源:互联网 
 1 <parent>
2 <groupId>org.springframework.boot</groupId>
3 <artifactId>spring-boot-starter-parent</artifactId>
4 <version>1.5.6.RELEASE</version>
5 <relativePath/> <!-- lookup parent from repository -->
6 </parent>
7 <dependency>
8 <groupId>org.springframework.boot</groupId>
9 <artifactId>spring-boot-starter-web</artifactId>
10 </dependency>
 1 package com.slp;
2
3 import org.mybatis.spring.annotation.MapperScan;
4 import org.springframework.boot.SpringApplication;
5 import org.springframework.boot.autoconfigure.SpringBootApplication;
6
7 @SpringBootApplication
8 @MapperScan("com.slp.mapper")
9 public class DemoApplication {
10
11 public static void main(String[] args) {
12 SpringApplication.run(DemoApplication.class, args);
13 }
14 }
1 server:
2 port: 80
3 tomcat:
4 uri-encoding: UTF-8
1 server.port = 80
2 server.tomcat.uri-encoding = UTF-8

分享到: