diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index acbbc1a..f49b686 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,9 +1,19 @@ spring: profiles: active: dev + +# 将所有数字转为 String 类型返回,避免前端数据精度丢失的问题 + jackson: + generator: + write-numbers-as-strings: true + server: port: 8888 + + + + --- spring: datasource: