md
This commit is contained in:
parent
523712aefe
commit
187e568ead
@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
import org.springframework.cache.annotation.EnableCaching;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
import java.io.File;
|
||||
@ -16,6 +17,8 @@ import java.io.File;
|
||||
* @author xdadan
|
||||
*/
|
||||
@EnableScheduling
|
||||
// 开启缓存
|
||||
@EnableCaching
|
||||
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
|
||||
public class LaunchApplication extends SpringBootServletInitializer {
|
||||
|
||||
|
||||
@ -89,6 +89,9 @@ mybatis-plus:
|
||||
type-aliases-package: com.xdadan.**.domain
|
||||
mapper-locations: classpath*:mapper/**/*Mapper.xml
|
||||
config-location: classpath:mybatis/mybatis-config.xml
|
||||
configuration:
|
||||
cache-enabled: true
|
||||
map-underscore-to-camel-case: true
|
||||
global-config:
|
||||
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
|
||||
id-type: 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user