This commit is contained in:
geoffrey 2021-12-21 08:06:44 +08:00
parent 46f0443845
commit 986b59f780
3 changed files with 12 additions and 47 deletions

1
.gitignore vendored
View File

@ -21,3 +21,4 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
**/.mvn

View File

@ -1,47 +0,0 @@
# 应用名称
spring.application.name=mybatis-page-optimize
# 应用服务 WEB 访问端口
server.port=8080
# 数据库驱动:
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
# 数据源名称
spring.datasource.name=defaultDataSource
# 数据库连接地址
spring.datasource.url=jdbc:mysql://localhost:3306/blue?serverTimezone=UTC
# 数据库用户名&密码:
spring.datasource.username=***
spring.datasource.password=***
spring.http.converters.preferred-json-mapper=gson
## Format to use when serializing Date objects.
#spring.gson.date-format=
#
## Whether to disable the escaping of HTML characters such as '<', '>', etc.
#spring.gson.disable-html-escaping=
#
## Whether to exclude inner classes during serialization.
#spring.gson.disable-inner-class-serialization=
#
## Whether to enable serialization of complex map keys (i.e. non-primitives).
#spring.gson.enable-complex-map-key-serialization= # Whether to enable serialization of complex map keys (i.e. non-primitives).
#
## Whether to exclude all fields from consideration for serialization or deserialization that do not have the "Expose" annotation.
#spring.gson.exclude-fields-without-expose-annotation=
#
## Naming policy that should apply to an object's field during serialization and deserialization.
#spring.gson.field-naming-policy=
#
## Whether to generate non executable JSON by prefixing the output with some special text.
#spring.gson.generate-non-executable-json=
#
## Whether to be lenient about parsing JSON that doesn't conform to RFC 4627.
#spring.gson.lenient=
#
## Serialization policy for Long and long types.
#spring.gson.long-serialization-policy=
#
## Whether to output serialized JSON that fits in a page for pretty printing.
#spring.gson.pretty-printing=
#
## Whether to serialize null fields.
#spring.gson.serialize-nulls=

View File

@ -0,0 +1,11 @@
server:
port: 8080
spring:
application:
name: mybatis-page-optimize
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
name: defaultDataSource
password: '***'
url: jdbc:mysql://localhost:3306/blue?serverTimezone=UTC
username: '***'