222 Star 846 Fork 420

baomidou / mybatisplus-spring-boot

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
application.yml 1.43 KB
Copy Edit Raw Blame History
#app
server:
port: 8080
#spring
spring:
devtools:
restart:
enabled: false
# H2 DATABASE CONFIG
datasource:
type: com.zaxxer.hikari.HikariDataSource
schema: classpath:/db/schema-h2.sql
data: classpath:/db/data-h2.sql
url: jdbc:h2:mem:testdb
username: sa
password: sa
platform: h2
initialization-mode: always
continue-on-error: true
h2:
console:
enabled: true
path: /console
#mybatis
mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage: com.baomidou.springboot.entity
typeEnumsPackage: com.baomidou.springboot.entity.enums
global-config:
# 数据库相关配置
db-config:
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID",ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
id-type: id_worker
#字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
field-strategy: not_empty
#驼峰下划线转换
column-underline: true
#数据库大写下划线转换
#capital-mode: true
#逻辑删除配置
logic-delete-value: 0
logic-not-delete-value: 1
db-type: h2
#刷新mapper 调试神器
refresh: true
# 原生配置
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
##logging
#logging:
# level: warn
Java
1
https://gitee.com/baomidou/mybatisplus-spring-boot.git
git@gitee.com:baomidou/mybatisplus-spring-boot.git
baomidou
mybatisplus-spring-boot
mybatisplus-spring-boot
master

Search