From 197d203685d5784597ac302347acba2df5048a39 Mon Sep 17 00:00:00 2001
From: bunny <1319900154@qq.com>
Date: Tue, 2 Apr 2024 15:27:57 +0800
Subject: [PATCH] =?UTF-8?q?feat(=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86):=20s?=
=?UTF-8?q?ervice-sys=E9=A1=B9=E7=9B=AE=E7=8E=AF=E5=A2=83=E6=90=AD?=
=?UTF-8?q?=E5=BB=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/encodings.xml | 1 +
service/pom.xml | 1 +
.../src/main/resources/application-dev.yml | 14 +----
.../src/main/resources/application.yml | 30 +++++----
service/service-sys/pom.xml | 23 +++++++
.../src/main/resources/application-dev.yml | 27 ++++++++
.../src/main/resources/application.yml | 63 +++++++++++++++++++
7 files changed, 136 insertions(+), 23 deletions(-)
create mode 100644 service/service-sys/pom.xml
create mode 100644 service/service-sys/src/main/resources/application-dev.yml
create mode 100644 service/service-sys/src/main/resources/application.yml
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index 69af3a4..cf5b385 100644
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -14,6 +14,7 @@
+
diff --git a/service/pom.xml b/service/pom.xml
index 09b45e7..9e711c9 100644
--- a/service/pom.xml
+++ b/service/pom.xml
@@ -14,6 +14,7 @@
https://maven.apache.org
service-acl
+ service-sys
diff --git a/service/service-acl/src/main/resources/application-dev.yml b/service/service-acl/src/main/resources/application-dev.yml
index 3c17f1f..5f1e5ac 100644
--- a/service/service-acl/src/main/resources/application-dev.yml
+++ b/service/service-acl/src/main/resources/application-dev.yml
@@ -1,6 +1,6 @@
server:
port: 8200
-
+
bunny:
datasource:
host: 106.15.251.123
@@ -24,14 +24,4 @@ bunny:
endpointUrl: "http://129.211.31.58:9000"
bucket-name: ssyx
accessKey: bunny
- secretKey: "02120212"
-
-logging:
- level:
- com.atguigu.ssyx.acl.mapper: debug
- com.atguigu.ssyx.acl.controller: info
- com.atguigu.ssyx.acl.service: info
- pattern:
- dateformat: HH:mm:ss:SSS
- file:
- path: "logs/${spring.application.name}"
\ No newline at end of file
+ secretKey: "02120212"
\ No newline at end of file
diff --git a/service/service-acl/src/main/resources/application.yml b/service/service-acl/src/main/resources/application.yml
index bcaf9b2..4b98984 100644
--- a/service/service-acl/src/main/resources/application.yml
+++ b/service/service-acl/src/main/resources/application.yml
@@ -34,17 +34,25 @@ mybatis-plus:
map-underscore-to-camel-case: true
auto-mapping-behavior: full
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
- # global-config:
- # db-config:
- # 设置表名前缀,不用在每个tableName添加前缀
- # table-prefix: t_
- # 全局配置主键值方式
- # id-type: assign_id
- # 指定逻辑删除-未删除
- # logic-not-delete-value: 0 # 未删除默认为0
- # 指定逻辑删除-删除
- # logic-delete-value: 1 # 删除
- # logic-delete-field: deleted # 全局配置逻辑删除
+ global-config:
+ db-config:
+ # 设置表名前缀,不用在每个tableName添加前缀
+ # table-prefix: t_
+ # 全局配置主键值方式
+ id-type: assign_id
+ logic-not-delete-value: 0 # 未删除默认为0
+ logic-delete-value: 1 # 删除
+ logic-delete-field: deleted # 全局配置逻辑删除
+
+logging:
+ level:
+ com.atguigu.ssyx.acl.mapper: debug
+ com.atguigu.ssyx.acl.controller: info
+ com.atguigu.ssyx.acl.service: info
+ pattern:
+ dateformat: HH:mm:ss:SSS
+ file:
+ path: "logs/${spring.application.name}"
bunny:
minio:
diff --git a/service/service-sys/pom.xml b/service/service-sys/pom.xml
new file mode 100644
index 0000000..9d4d320
--- /dev/null
+++ b/service/service-sys/pom.xml
@@ -0,0 +1,23 @@
+
+ 4.0.0
+
+ com.atguigu
+ service
+ 1.0-SNAPSHOT
+
+
+ service-sys
+ jar
+
+ service-sys
+ https://maven.apache.org
+
+
+ UTF-8
+
+
+
+
+
+
diff --git a/service/service-sys/src/main/resources/application-dev.yml b/service/service-sys/src/main/resources/application-dev.yml
new file mode 100644
index 0000000..5f1e5ac
--- /dev/null
+++ b/service/service-sys/src/main/resources/application-dev.yml
@@ -0,0 +1,27 @@
+server:
+ port: 8200
+
+bunny:
+ datasource:
+ host: 106.15.251.123
+ port: 3305
+ sqlData: shequ-acl
+ username: root
+ password: "02120212"
+
+ nacos:
+ server-addr: z-bunny.cn:8848
+ discovery:
+ namespace: ssyx
+
+ redis:
+ host: 47.120.65.66
+ port: 6379
+ database: 2
+ password: "02120212"
+
+ minio:
+ endpointUrl: "http://129.211.31.58:9000"
+ bucket-name: ssyx
+ accessKey: bunny
+ secretKey: "02120212"
\ No newline at end of file
diff --git a/service/service-sys/src/main/resources/application.yml b/service/service-sys/src/main/resources/application.yml
new file mode 100644
index 0000000..35787e2
--- /dev/null
+++ b/service/service-sys/src/main/resources/application.yml
@@ -0,0 +1,63 @@
+server:
+ port: 8202
+
+spring:
+ application:
+ name: service-sys
+ profiles:
+ active: dev
+
+ datasource:
+ type: com.zaxxer.hikari.HikariDataSource
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://${bunny.datasource.host}:${bunny.datasource.port}/${bunny.datasource.sqlData}?serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf-8&allowPublicKeyRetrieval=true
+ username: ${bunny.datasource.username}
+ password: "${bunny.datasource.password}"
+
+ cloud:
+ sentinel:
+ log:
+ dir: logs/${spring.application.name}/sentinel
+ nacos:
+ discovery:
+ namespace: ${bunny.nacos.discovery.namespace}
+ server-addr: ${bunny.nacos.server-addr}
+
+ jackson:
+ date-format: yyyy-MM-dd HH:mm:ss
+ time-zone: GMT+8
+
+
+mybatis-plus:
+ type-aliases-package: com.atguigu.model # 配置每个包前缀
+ mapper-locations: classpath:mapper/*.xml
+ configuration:
+ map-underscore-to-camel-case: true
+ auto-mapping-behavior: full
+ log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
+ global-config:
+ db-config:
+ # 设置表名前缀,不用在每个tableName添加前缀
+ # table-prefix: t_
+ # 全局配置主键值方式
+ id-type: assign_id
+ logic-not-delete-value: 0 # 未删除默认为0
+ logic-delete-value: 1 # 删除
+ logic-delete-field: deleted # 全局配置逻辑删除
+
+logging:
+ level:
+ com.atguigu.ssyx.acl.mapper: debug
+ com.atguigu.ssyx.acl.controller: info
+ com.atguigu.ssyx.acl.service: info
+ pattern:
+ dateformat: HH:mm:ss:SSS
+ file:
+ path: "logs/${spring.application.name}"
+
+# bunny:
+# minio:
+# endpointUrl: ${bunny.minio.endpointUrl}
+# accessKey: ${bunny.minio.accessKey}
+# secretKey: ${bunny.minio.secretKey}
+# bucket-name: ${bunny.minio.bucket-name}
\ No newline at end of file