Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
计全科技
jeepay
提交
81df2645
jeepay
项目概览
计全科技
/
jeepay
通知
10
Star
3
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
6
Wiki
分析
仓库
DevOps
项目成员
Pages
jeepay
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
6
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
81df2645
编写于
6月 10, 2021
作者:
terrfly
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加开发环境通用配置文件, 节约开发人员项目配置成本;
上级
bdf7fdb7
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
104 addition
and
15 deletion
+104
-15
conf/devCommons/config/application.yml
conf/devCommons/config/application.yml
+30
-0
conf/manager/application.yml
conf/manager/application.yml
+2
-2
conf/merchant/application.yml
conf/merchant/application.yml
+2
-2
conf/payment/application.yml
conf/payment/application.yml
+2
-2
conf/readme.txt
conf/readme.txt
+20
-0
jeepay-manager/pom.xml
jeepay-manager/pom.xml
+13
-0
jeepay-manager/src/main/resources/application.yml
jeepay-manager/src/main/resources/application.yml
+3
-3
jeepay-merchant/pom.xml
jeepay-merchant/pom.xml
+13
-0
jeepay-merchant/src/main/resources/application.yml
jeepay-merchant/src/main/resources/application.yml
+3
-3
jeepay-payment/pom.xml
jeepay-payment/pom.xml
+13
-0
jeepay-payment/src/main/resources/application.yml
jeepay-payment/src/main/resources/application.yml
+3
-3
未找到文件。
conf/devCommons/config/application.yml
0 → 100644
浏览文件 @
81df2645
#################################
# 开发环境通用配置文件放置目录
#################################
spring
:
datasource
:
# yml填写url连接串, 无需将&符号进行转义
url
:
jdbc:mysql://127.0.0.1:3306/jeepay?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
username
:
root
password
:
root
redis
:
host
:
127.0.0.1
port
:
6379
password
:
#activeMQ配置
activemq
:
broker-url
:
tcp://localhost:61616
#连接地址
#日志配置参数。
# 当存在logback-spring.xml文件时: 该配置将引进到logback配置, springboot配置不生效。
# 不存在logback-spring.xml 文件时, 使用springboot的配置, 同样可用。
logging
:
level
:
root
:
info
#主日志级别
com.jeequan.jeepay
:
debug
#该项目日志级别,当需要打印sql时请开启为debug
path
:
./logs
#日志存放地址
#系统业务参数
isys
:
oss-file
:
root-path
:
/home/jeepay/upload
#存储根路径 ( 无需以‘/’结尾 )
conf/manager/application.yml
浏览文件 @
81df2645
...
...
@@ -16,8 +16,8 @@ spring:
datasource
:
# yml填写url连接串, 无需将&符号进行转义
url
:
jdbc:mysql://127.0.0.1:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
username
:
jeepay
password
:
123456
username
:
root
password
:
redis
:
host
:
127.0.0.1
port
:
6379
...
...
conf/merchant/application.yml
浏览文件 @
81df2645
...
...
@@ -16,8 +16,8 @@ spring:
datasource
:
# yml填写url连接串, 无需将&符号进行转义
url
:
jdbc:mysql://127.0.0.1:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
username
:
jeepay
password
:
123456
username
:
root
password
:
redis
:
host
:
127.0.0.1
port
:
6379
...
...
conf/payment/application.yml
浏览文件 @
81df2645
...
...
@@ -16,8 +16,8 @@ spring:
datasource
:
# yml填写url连接串, 无需将&符号进行转义
url
:
jdbc:mysql://127.0.0.1:3306/jeepaydb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
username
:
jeepay
password
:
123456
username
:
root
password
:
redis
:
host
:
127.0.0.1
port
:
6379
...
...
conf/readme.txt
0 → 100644
浏览文件 @
81df2645
文件夹用途: 用于放置开发环境的通用配置项和生产环境下的项目配置模板。
1. 【devCommons】:
开发环境通用配置文件放置目录。 更改此目录后将覆写 manager/merchant/payment 项目下的application.yml文件对应参数,从而达到每个项目不必单独配置的目的,更加节约开发时间。
2. 该文件夹下的【manager/merchant/payment】:
文件为上线部署时与jar同级目录下的application.yml建议配置项的模板。 需更改为实际参数, 也可按需添加。
扩展知识:
#####################################################
# spring boot支持外部application.yml 读取优先级为:
# 1、file:./config/(当前目录下的config文件夹)
# 2、file:./(当前目录)
# 3、classpath:/config/(classpath下的config目录)
# 4、classpath:/(classpath根目录)
#####################################################
\ No newline at end of file
jeepay-manager/pom.xml
浏览文件 @
81df2645
...
...
@@ -95,6 +95,19 @@
<!-- 作为可执行jar -->
<build>
<finalName>
${project.artifactId}
</finalName>
<!-- resources资源配置项 -->
<resources>
<!-- 通用资源文件 -->
<resource><directory>
src/main/resources
</directory><includes><include>
**/*.*
</include></includes></resource>
<!-- 放置通用配置yml文件, 开发时仅配置一套参数即可。 实际生产环境下应在每个项目下 与jar同级目录下新建application.yml覆写对应参数。 -->
<resource>
<directory>
../conf/devCommons
</directory>
<includes><include>
**/*.yml
</include></includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
...
...
jeepay-manager/src/main/resources/application.yml
浏览文件 @
81df2645
...
...
@@ -20,9 +20,9 @@ spring:
number_format
:
'
#'
#数字格式进行原样显示,不加格式化字符例如 100,00
datasource
:
# yml填写url连接串, 无需将&符号进行转义
url
:
jdbc:mysql://127.0.0.1:3306/jeepay?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
url
:
jdbc:mysql://127.0.0.1:3306/jeepay
db
?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
username
:
root
password
:
root
password
:
druid
:
# 连接池配置项
initial-size
:
5
#初始化时建立物理连接的个数
...
...
@@ -70,6 +70,6 @@ isys:
# 文件系统配置项(系统内oss, 并非云oss)
oss-file
:
root-path
:
E:/home/jeepay/files
#存储根路径 ( 无需以‘/’结尾 )
root-path
:
/home/jeepay/upload
#存储根路径 ( 无需以‘/’结尾 )
public-path
:
${isys.oss-file.root-path}/public
#公共读取块 ( 一般配合root-path参数进行设置,需以‘/’ 开头, 无需以‘/’结尾 )
private-path
:
${isys.oss-file.root-path}/private
#私有化本地访问,不允许url方式公共读取 ( 一般配合root-path参数进行设置,需以‘/’ 开头, 无需以‘/’结尾 )
jeepay-merchant/pom.xml
浏览文件 @
81df2645
...
...
@@ -94,6 +94,19 @@
<!-- 作为可执行jar -->
<build>
<finalName>
${project.artifactId}
</finalName>
<!-- resources资源配置项 -->
<resources>
<!-- 通用资源文件 -->
<resource><directory>
src/main/resources
</directory><includes><include>
**/*.*
</include></includes></resource>
<!-- 放置通用配置yml文件, 开发时仅配置一套参数即可。 实际生产环境下应在每个项目下 与jar同级目录下新建application.yml覆写对应参数。 -->
<resource>
<directory>
../conf/devCommons
</directory>
<includes><include>
**/*.yml
</include></includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
...
...
jeepay-merchant/src/main/resources/application.yml
浏览文件 @
81df2645
...
...
@@ -20,9 +20,9 @@ spring:
number_format
:
'
#'
#数字格式进行原样显示,不加格式化字符例如 100,00
datasource
:
# yml填写url连接串, 无需将&符号进行转义
url
:
jdbc:mysql://127.0.0.1:3306/jeepay?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
url
:
jdbc:mysql://127.0.0.1:3306/jeepay
db
?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
username
:
root
password
:
root
password
:
druid
:
# 连接池配置项
initial-size
:
5
#初始化时建立物理连接的个数
...
...
@@ -70,7 +70,7 @@ isys:
# 文件系统配置项(系统内oss, 并非云oss)
oss-file
:
root-path
:
E:/home/jeepay/files
#存储根路径 ( 无需以‘/’结尾 )
root-path
:
/home/jeepay/upload
#存储根路径 ( 无需以‘/’结尾 )
public-path
:
${isys.oss-file.root-path}/public
#公共读取块 ( 一般配合root-path参数进行设置,需以‘/’ 开头, 无需以‘/’结尾 )
private-path
:
${isys.oss-file.root-path}/private
#私有化本地访问,不允许url方式公共读取 ( 一般配合root-path参数进行设置,需以‘/’ 开头, 无需以‘/’结尾 )
jeepay-payment/pom.xml
浏览文件 @
81df2645
...
...
@@ -106,6 +106,19 @@
<!-- 作为可执行jar -->
<build>
<finalName>
${project.artifactId}
</finalName>
<!-- resources资源配置项 -->
<resources>
<!-- 通用资源文件 -->
<resource><directory>
src/main/resources
</directory><includes><include>
**/*.*
</include></includes></resource>
<!-- 放置通用配置yml文件, 开发时仅配置一套参数即可。 实际生产环境下应在每个项目下 与jar同级目录下新建application.yml覆写对应参数。 -->
<resource>
<directory>
../conf/devCommons
</directory>
<includes><include>
**/*.yml
</include></includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
...
...
jeepay-payment/src/main/resources/application.yml
浏览文件 @
81df2645
...
...
@@ -20,9 +20,9 @@ spring:
number_format
:
'
#'
#数字格式进行原样显示,不加格式化字符例如 100,00
datasource
:
# yml填写url连接串, 无需将&符号进行转义
url
:
jdbc:mysql://127.0.0.1:3306/jeepay?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
url
:
jdbc:mysql://127.0.0.1:3306/jeepay
db
?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
username
:
root
password
:
123
password
:
druid
:
# 连接池配置项
initial-size
:
5
#初始化时建立物理连接的个数
...
...
@@ -69,5 +69,5 @@ isys:
# 文件系统配置项(系统内oss, 并非云oss)
oss-file
:
root-path
:
E:/home/jeepay/files
#存储根路径 ( 无需以‘/’结尾 )
root-path
:
/home/jeepay/upload
#存储根路径 ( 无需以‘/’结尾 )
private-path
:
${isys.oss-file.root-path}/private
#私有化本地访问,不允许url方式公共读取 ( 一般配合root-path参数进行设置,需以‘/’ 开头, 无需以‘/’结尾 )
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录