Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
jz-dmp-service
Commits
4ea1aaf1
Commit
4ea1aaf1
authored
Dec 18, 2020
by
sml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置初稿提交
parent
7d574b89
Pipeline
#326
canceled with stages
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
447 additions
and
0 deletions
+447
-0
application-dev.yml
src/main/resources/application-dev.yml
+111
-0
application-prod.yml
src/main/resources/application-prod.yml
+91
-0
application-test.yml
src/main/resources/application-test.yml
+106
-0
application.yml
src/main/resources/application.yml
+19
-0
banner.txt
src/main/resources/banner.txt
+9
-0
logback-spring.xml
src/main/resources/logback-spring.xml
+38
-0
mybatis-config.xml
src/main/resources/mybatis-config.xml
+33
-0
mybatis-generator-config.xml
src/main/resources/mybatis-generator-config.xml
+40
-0
No files found.
src/main/resources/application-dev.yml
0 → 100644
View file @
4ea1aaf1
# 测试环境配置
server
:
#port: 7181
port
:
7180
#contextPath: /resource
management
:
port
:
54201
health
:
mail
:
enabled
:
false
spring
:
profiles
:
dev
datasource1
:
url
:
jdbc:mysql://119.23.32.151:3306/dmp_web?characterEncoding=utf8&useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
username
:
dmp
password
:
Ioubuy@2019@!
hikari
:
maxLifetime
:
1765000
maximumPoolSize
:
20
connectionTimeout
:
30000
idleTimeout
:
600000
datasource2
:
url
:
jdbc:mysql://119.23.32.151:3306/dmp_openapi?characterEncoding=utf8&autoReconnect=true&useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
username
:
dmp
password
:
Ioubuy@2019@!
hikari
:
maxLifetime
:
1765000
maximumPoolSize
:
20
connectionTimeout
:
30000
idleTimeout
:
600000
cache
:
type
:
CAFFEINE
caffeine
:
spec
:
maximumSize=1000,expireAfterWrite=30s
public-key
:
rajZdV0xpCox+2vEHFLsKq2o2XVdMaQq
redis
:
#database: 0
#host: 119.23.13.83
#port: 8007
#timeout: 5000
cluster
:
nodes
:
#- 192.168.1.146:6379
#- 192.168.1.146:6380
#- 192.168.1.146:6381
#- 192.168.1.146:6382
#- 192.168.1.146:6383
#- 192.168.1.146:6384
#
-
172.18.104.129:8001
-
172.18.104.129:8003
-
172.18.104.129:8004
mail
:
host
:
smtp.exmail.qq.com
username
:
service@mail.cn
password
:
myPassword
properties
:
mail
:
smtp
:
auth
:
true
starttls
:
enable
:
true
required
:
true
# ldap:
# urls: ldap://localhost:389
# base: dc=maxcrc,dc=com
# username: cn=Manager,dc=maxcrc,dc=com
# password: secret
ldap
:
urls
:
ldap://172.18.104.128:389
base
:
dc=ioubuy,dc=cn
username
:
cn=Manager,dc=ioubuy,dc=cn
password
:
'
Ioubuy123'
remote
:
execute
:
command
:
server
:
192.168.204.121
user
:
root
password
:
123
submit-sycning-task-cmd
:
"
source
/etc/profile;/data/disk4/run_new_bigdata_etl_process.sh
"
query-sycning-task-status
:
"
yarn
application
-status
"
stop-sycning-task-cmd
:
"
yarn
application
-kill
"
cat-sycning-task-log
:
"
source
/etc/profile;cat
/data/disk4/log/"
#openApi 信息
#rePrefix redis存储的前缀
#ignoreRedis true存入 false不存 api.timeout.default
#url 测试地址
#estag 已废弃 改成配置数据源
#url 已废弃改成系统配置
#eslog api日志管理
dmp
:
eslog
:
http://119.23.13.83:9560/_xpack/sql
ignoreRedis
:
true
rePrefix
:
test
openapi
:
user
:
d68ddb5352854a0baab1cffe82ac69d2
sysId
:
T0000020
timeout
:
default
:
5000
max
:
5000
evn
:
open
:
false
name
:
src/main/resources/application-prod.yml
0 → 100644
View file @
4ea1aaf1
server
:
port
:
8086
#contextPath: /resource
management
:
port
:
54000
health
:
mail
:
enabled
:
false
spring
:
profiles
:
prod
datasource1
:
url
:
jdbc:mysql://10.24.1.171:3306/dmp_web?characterEncoding=utf8&useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
username
:
dmp
password
:
dmp_PGroup@2019_!
hikari
:
maxLifetime
:
1765000
maximumPoolSize
:
20
connectionTimeout
:
30000
idleTimeout
:
600000
datasource2
:
url
:
jdbc:mysql://10.24.1.171:3306/dmp_openapi?characterEncoding=utf8&useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
username
:
dmp
password
:
dmp_PGroup@2019_!
hikari
:
maxLifetime
:
1765000
maximumPoolSize
:
20
connectionTimeout
:
30000
idleTimeout
:
600000
cache
:
type
:
CAFFEINE
caffeine
:
spec
:
maximumSize=1000,expireAfterWrite=30s
public-key
:
rajZdV0xpCox+2vEHFLsKq2o2XVdMaQq
redis
:
cluster
:
nodes
:
-
10.24.1.171:8001
-
10.24.1.171:8002
-
10.24.1.172:8001
-
10.24.1.172:8002
-
10.24.1.173:8001
-
10.24.1.173:8002
mail
:
host
:
smtp.exmail.qq.com
username
:
service@mail.cn
password
:
myPassword
properties
:
mail
:
smtp
:
auth
:
true
starttls
:
enable
:
true
required
:
true
ldap
:
urls
:
ldap://10.24.1.160:389
base
:
dc=platenogroup,dc=com
username
:
cn=Manager,dc=platenogroup,dc=com
password
:
ldap_PGroup@2019_!
data
:
mongodb
:
uri
:
mongodb://10.0.108.50:27017/kudustat
remote
:
execute
:
command
:
server
:
192.168.204.121
user
:
root
password
:
123
submit-sycning-task-cmd
:
"
source
/etc/profile;/data/disk4/run_new_bigdata_etl_process.sh
"
query-sycning-task-status
:
"
yarn
application
-status
"
stop-sycning-task-cmd
:
"
yarn
application
-kill
"
cat-sycning-task-log
:
"
source
/etc/profile;cat
/data/disk4/log/"
dmp
:
eslog
:
http://10.0.108.56:9565/_xpack/sql
ignoreRedis
:
true
rePrefix
:
open
url
:
http://10.0.108.56:8889/jz/realtime/receive
openapi
:
user
:
91b777e1a8ba4e30a4175b55494bc72f
sysId
:
T0000038
timeout
:
default
:
5000
max
:
5000
evn
:
open
:
false
name
:
src/main/resources/application-test.yml
0 → 100644
View file @
4ea1aaf1
# 测试环境配置
server
:
port
:
7180
#contextPath: /resource
management
:
port
:
54001
health
:
mail
:
enabled
:
false
spring
:
profiles
:
test
datasource1
:
url
:
jdbc:mysql://119.23.32.151:3306/dmp_web?characterEncoding=utf8&useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
username
:
dmp
password
:
Ioubuy@2019@!
hikari
:
maxLifetime
:
1765000
maximumPoolSize
:
20
connectionTimeout
:
30000
idleTimeout
:
600000
datasource2
:
url
:
jdbc:mysql://119.23.32.151:3306/dmp_openapi?characterEncoding=utf8&autoReconnect=true&useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
username
:
dmp
password
:
Ioubuy@2019@!
hikari
:
maxLifetime
:
1765000
maximumPoolSize
:
20
connectionTimeout
:
30000
idleTimeout
:
600000
cache
:
type
:
CAFFEINE
caffeine
:
spec
:
maximumSize=1000,expireAfterWrite=30s
public-key
:
rajZdV0xpCox+2vEHFLsKq2o2XVdMaQq
redis
:
#database: 0
#host: 119.23.13.83
#port: 8007
#timeout: 5000
cluster
:
nodes
:
-
192.168.1.146:6379
-
192.168.1.146:6380
-
192.168.1.146:6381
-
192.168.1.146:6382
-
192.168.1.146:6383
-
192.168.1.146:6384
mail
:
host
:
smtp.exmail.qq.com
username
:
service@mail.cn
password
:
myPassword
properties
:
mail
:
smtp
:
auth
:
true
starttls
:
enable
:
true
required
:
true
# ldap:
# urls: ldap://localhost:389
# base: dc=maxcrc,dc=com
# username: cn=Manager,dc=maxcrc,dc=com
# password: secret
ldap
:
urls
:
ldap://120.78.64.146:389
base
:
dc=ioubuy,dc=cn
username
:
cn=Manager,dc=ioubuy,dc=cn
password
:
'
Ioubuy123'
remote
:
execute
:
command
:
server
:
192.168.204.121
user
:
root
password
:
123
submit-sycning-task-cmd
:
"
source
/etc/profile;/data/disk4/run_new_bigdata_etl_process.sh
"
query-sycning-task-status
:
"
yarn
application
-status
"
stop-sycning-task-cmd
:
"
yarn
application
-kill
"
cat-sycning-task-log
:
"
source
/etc/profile;cat
/data/disk4/log/"
#openApi 信息
#rePrefix redis存储的前缀
#ignoreRedis true存入 false不存 api.timeout.default
#url 测试地址
#estag 已废弃 改成配置数据源
#url 已废弃改成系统配置
#eslog api日志管理
dmp
:
eslog
:
http://119.23.13.83:9560/_xpack/sql
ignoreRedis
:
true
rePrefix
:
test
openapi
:
user
:
d68ddb5352854a0baab1cffe82ac69d2
sysId
:
T0000020
timeout
:
default
:
5000
max
:
5000
evn
:
open
:
false
name
:
src/main/resources/application.yml
0 → 100644
View file @
4ea1aaf1
# 系统信息
info
:
app
:
name
:
"
@project.name@"
description
:
"
@project.description@"
version
:
"
@project.version@"
spring-boot-version
:
"
@project.parent.version@"
spring
:
profiles
:
active
:
test
sysProperties
:
session-timeout
:
3600
developerList
:
-
name
:
九章
value
:
src/main/resources/banner.txt
0 → 100644
View file @
4ea1aaf1
## ######## ######## ## ## ########
## ## ## ## ### ### ## ##
## ## ## ## #### #### ## ##
## ## ####### ## ## ## ### ## ########
## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ##
###### ######## ######## ## ## ##
JZ
\ No newline at end of file
src/main/resources/logback-spring.xml
0 → 100644
View file @
4ea1aaf1
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include
resource=
"org/springframework/boot/logging/logback/defaults.xml"
/>
<springProperty
scope=
"context"
name=
"env"
source=
"spring.profiles"
/>
<property
name=
"service"
value=
"databank_admin"
/>
<property
name=
"logfile"
value=
"${LOG_DIR:-/opt/log/stash}/${service}/${service}"
/>
<appender
name=
"console"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<pattern>
%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}
</pattern>
<charset>
UTF-8
</charset>
</encoder>
</appender>
<appender
name=
"logstash"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<file>
${logfile}.log
</file>
<encoder
class=
"net.logstash.logback.encoder.LogstashEncoder"
>
<includeMdc>
true
</includeMdc>
<customFields>
{
"service":"${service}",
"env": "${env:-prod}"
}
</customFields>
</encoder>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<fileNamePattern>
${logfile}.log.%d{yyyy-MM-dd-HH}.gz
</fileNamePattern>
<maxHistory>
7
</maxHistory>
</rollingPolicy>
</appender>
<root
level=
"info"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"logstash"
/>
</root>
</configuration>
src/main/resources/mybatis-config.xml
0 → 100644
View file @
4ea1aaf1
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<setting
name=
"cacheEnabled"
value=
"true"
/>
<setting
name=
"lazyLoadingEnabled"
value=
"true"
/>
<setting
name=
"aggressiveLazyLoading"
value=
"true"
/>
<setting
name=
"multipleResultSetsEnabled"
value=
"true"
/>
<setting
name=
"useColumnLabel"
value=
"true"
/>
<setting
name=
"useGeneratedKeys"
value=
"true"
/>
<setting
name=
"autoMappingBehavior"
value=
"PARTIAL"
/>
<setting
name=
"defaultExecutorType"
value=
"SIMPLE"
/>
<setting
name=
"mapUnderscoreToCamelCase"
value=
"true"
/>
<setting
name=
"localCacheScope"
value=
"SESSION"
/>
<setting
name=
"jdbcTypeForNull"
value=
"NULL"
/>
<setting
name=
"callSettersOnNulls"
value=
"true"
/>
</settings>
<typeAliases>
<package
name=
"cn.jz.tag.modules.model"
/>
</typeAliases>
<plugins>
<plugin
interceptor=
"com.github.pagehelper.PageHelper"
>
<property
name=
"dialect"
value=
"mysql"
/>
<property
name=
"offsetAsPageNum"
value=
"false"
/>
<property
name=
"rowBoundsWithCount"
value=
"false"
/>
<property
name=
"pageSizeZero"
value=
"true"
/>
<property
name=
"reasonable"
value=
"false"
/>
<property
name=
"supportMethodsArguments"
value=
"false"
/>
<property
name=
"returnPageInfo"
value=
"none"
/>
</plugin>
</plugins>
</configuration>
\ No newline at end of file
src/main/resources/mybatis-generator-config.xml
0 → 100644
View file @
4ea1aaf1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<!--数据库驱动-->
<!--注意要保证运行MyBatis Generator的时候能够找到mysql的connector-->
<!-- location The full path name of a JAR/ZIP file to add to the classpath, or a directory to add to the classpath.-->
<classPathEntry
location=
"D:\repository\mysql\mysql-connector-java\5.1.41\mysql-connector-java-5.1.41.jar"
/>
<!-- A unique identifier for this context. This value will be used in some error messages. -->
<context
id=
"mysql2java"
targetRuntime=
"MyBatis3"
>
<!-- http://www.mybatis.org/generator/configreference/commentGenerator.html -->
<commentGenerator>
<property
name=
"javaFileEncoding"
value=
"UTF-8"
/>
<property
name=
"suppressDate"
value=
"true"
/>
<property
name=
"suppressAllComments"
value=
"true"
/>
</commentGenerator>
<!--数据库链接地址账号密码-->
<jdbcConnection
driverClass=
"com.mysql.jdbc.Driver"
connectionURL=
"jdbc:mysql://rm-wz9n399q2avsy3k6m4o.mysql.rds.aliyuncs.com:3306/supply_chain_ai?autoCommit=true&useUnicode=true&autoReconnect=true&useSSL=false"
userId=
"root"
password=
"I%ou$buy!ok"
>
</jdbcConnection>
<!--生成Model类存放位置-->
<!-- targetProject 指定存放生成文件的根目录-->
<javaModelGenerator
targetPackage=
"cn.jz.tag.modules.model"
targetProject=
"src/main/java"
>
</javaModelGenerator>
<!--生成映射文件存放位置-->
<sqlMapGenerator
targetPackage=
"mapper"
targetProject=
"src/main/resources"
>
</sqlMapGenerator>
<!--生成Dao类存放位置-->
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"cn.jz.tag.modules.repository"
targetProject=
"src/main/java"
>
</javaClientGenerator>
<!--配置MBG对哪个数据表进行生成工作, 对于MYSQL数据库来说, 因为没有SCHEMA这个概念, 必须使用catalog来指定到底用哪个数据库, 否则如果多个数据库有同名表, MYBATIS会自己选一个-->
<table
tableName=
"scm_suppliers"
domainObjectName=
"scmSuppliers"
enableCountByExample=
"false"
enableUpdateByExample=
"false"
enableDeleteByExample=
"false"
enableSelectByExample=
"false"
selectByExampleQueryId=
"false"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
type=
"post"
identity=
"true"
/>
</table>
</context>
</generatorConfiguration>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment