springboot common starter

 <-! PringBoot provide a project called spring-boot-starter-parent, and

 Which has been dependent on a variety of common (but not all) of the version management

 Our project need to be the parent of this project works, so we do not worry about the version of the problem of dependence ->

  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.0.RELEASE</version>
  </parent>

 

  <-! Web launcher ->

  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
  </dependency>
 


<!--mybatis -->
<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3.2</version> </dependency>

# Mybatis alias scan

= aliases-Package Penalty for-mybatis.type com.heima.pojo
# mapper.xml file location, if there is no mapping file, comment out
mybatis.mapper-locations = classpath: mappers / * xml.

 

<!-- 通用mapper -->
<dependency>
  <groupId>tk.mybatis</groupId>
  <artifactId>mapper-spring-boot-starter</artifactId>
  <version>2.0.2</version>
</dependency>

@Mapper
public interface UserMapper extends tk.mybatis.mapper.common.Mapper<User>{
}


<-! Themeleaf template -> 
<dependency> 
    <groupId> org.springframework.boot </ groupId> 
    <artifactId> the Spring-the Boot-Starter-Thymeleaf </ artifactId> 
</ dependency> 

#Thymeleaf will be the first time for after parsing the template cache, greatly improves the ability of concurrent processing

# Development phase closed thymeleaf template cache
spring.thymeleaf.cache = false

Guess you like

Origin www.cnblogs.com/houchen/p/12046769.html