Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
Details
Activity
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
胡园园
yanxuan-qc-change-system
Commits
91f77292
Commit
91f77292
authored
Nov 15, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init: 环境配置
parent
69723549
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
77 additions
and
154 deletions
+77
-154
pom.xml
pom.xml
+10
-0
application.properties
...mbly/src/main/resources/config/dev/application.properties
+41
-0
logback-spring.xml
...assembly/src/main/resources/config/dev/logback-spring.xml
+0
-0
setenv.sh
...e-system-assembly/src/main/resources/config/dev/setenv.sh
+8
-0
application.properties
...bly/src/main/resources/config/test/application.properties
+10
-10
AppConfig.java
...com/netease/mail/yanxuan/change/biz/config/AppConfig.java
+2
-1
pom.xml
yanxuan-qc-change-system-dal/pom.xml
+5
-6
ChangeConfigMapper.xml
.../src/main/resources/mybatis/mapper/ChangeConfigMapper.xml
+1
-137
No files found.
pom.xml
View file @
91f77292
...
@@ -448,5 +448,14 @@
...
@@ -448,5 +448,14 @@
</plugin>
</plugin>
</plugins>
</plugins>
<resources>
<resource>
<directory>
src/main/resources
</directory>
</resource>
<resource>
<directory>
src/main/resources/config/${env}
</directory>
</resource>
</resources>
</build>
</build>
</project>
</project>
\ No newline at end of file
yanxuan-qc-change-system-assembly/src/main/resources/config/dev/application.properties
0 → 100644
View file @
91f77292
dschedule.enable
=
true
dschedule.env
=
test
dschedule.app-id
=
yanxuan-sc-ehc
dschedule.job-group
=
235
dschedule.enable-auto-register
=
true
dschedule.executor-fail-strategy
=
fail_alarm
dschedule.alarm-email
=
wb.tanglongwei@mesg.corp.netease.com
dschedule.adminAddresses
=
http://127.0.0.1:8550/proxy/test.dschedule-admin.service.mailsaas/
spring.http.multipart.max-file-size
=
100MB
spring.http.multipart.max-request-size
=
100MB
# mysql
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://localhost:3306/change_config?useUnicode=true&characterEncoding=UTF-8&autoReconnet=true
spring.datasource.username
=
root
spring.datasource.password
=
abc123
#tomcat
server.tomcat.max-threads
=
600
server.tomcat.uri-encoding
=
UTF-8
server.tomcat.basedir
=
/home/logs/access
server.tomcat.accesslog.enabled
=
true
server.tomcat.accesslog.pattern
=
%h %l %u %t "%r" %s %b %{X-Forwarded-For}i %D %{P_INFO}c %{Referer}i %{User-Agent}i %{Host}i
# mybatis
mybatis.mapper-locations
=
classpath:mybatis/mapper/*.xml
mybatis.configuration.cache-enabled
=
true
# redis
spring.redis.password
=
xc0CdqWMzMj6hBvpIY5HrciHX85txmftyXukMnyKdK8X
spring.redis.timeout
=
20000
spring.redis.sentinel.master
=
paas-redis/yx-common-repl-1-test
spring.redis.sentinel.nodes
=
yx-cust23-test.ncr.cn-east-p1.internal:31461
spring.redis.pool.max-active
=
50
spring.redis.pool.max-idle
=
20
spring.redis.pool.max-wait
=
10000
spring.redis.host
=
yx-cust23-test.ncr.cn-east-p1.internal
spring.redis.port
=
31461
\ No newline at end of file
yanxuan-qc-change-system-assembly/src/main/resources/config/dev/logback-spring.xml
0 → 100644
View file @
91f77292
This diff is collapsed.
Click to expand it.
yanxuan-qc-change-system-assembly/src/main/resources/config/dev/setenv.sh
0 → 100644
View file @
91f77292
jvm_opts_base
=
"-cp . -ea -Xms4096m -Xmx4096m"
jvm_opts_gc
=
"-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1HeapRegionSize=16m -XX:G1ReservePercent=15 -XX:InitiatingHeapOccupancyPercent=45 -XX:MaxTenuringThreshold=7 -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=368m -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UnlockExperimentalVMOptions -XX:G1LogLevel=finest -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/logs/yanxuan-sc-ehc -XX:-OmitStackTraceInFastThrow -Xloggc:/home/logs/yanxuan-sc-ehc/gc-%t.log"
jvm_opts_property
=
"-Dspring.profiles.active=test -Denv=test -Dserver.port=8080"
jvm_opts_ext
=
"-javaagent:/home/caesar-agent/caesar-agent-router-1.0.0.jar -Dapp.id=yanxuan-sc-ehc"
consul_service_tags
=
test
consul_service_port
=
8080
consul_health_url
=
"/i/health"
consul_service_name
=
"yanxuan-sc-ehc"
yanxuan-qc-change-system-assembly/src/main/resources/config/test/application.properties
View file @
91f77292
...
@@ -29,12 +29,12 @@ mybatis.configuration.cache-enabled=true
...
@@ -29,12 +29,12 @@ mybatis.configuration.cache-enabled=true
# redis
# redis
spring.redis.password
=
xc0CdqWMzMj6hBvpIY5HrciHX85txmftyXukMnyKdK8X
#spring.redis.password=xc0CdqWMzMj6hBvpIY5HrciHX85txmftyXukMnyKdK8X
spring.redis.timeout
=
20000
#spring.redis.timeout=20000
spring.redis.sentinel.master
=
paas-redis/yx-common-repl-1-test
#spring.redis.sentinel.master=paas-redis/yx-common-repl-1-test
spring.redis.sentinel.nodes
=
yx-cust23-test.ncr.cn-east-p1.internal:31461
#spring.redis.sentinel.nodes=yx-cust23-test.ncr.cn-east-p1.internal:31461
spring.redis.pool.max-active
=
50
#spring.redis.pool.max-active=50
spring.redis.pool.max-idle
=
20
#spring.redis.pool.max-idle=20
spring.redis.pool.max-wait
=
10000
#spring.redis.pool.max-wait=10000
spring.redis.host
=
yx-cust23-test.ncr.cn-east-p1.internal
#spring.redis.host=yx-cust23-test.ncr.cn-east-p1.internal
spring.redis.port
=
31461
#
spring.redis.port
=
31461
\ No newline at end of file
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/config/AppConfig.java
View file @
91f77292
...
@@ -22,6 +22,6 @@ import lombok.Data;
...
@@ -22,6 +22,6 @@ import lombok.Data;
@Data
@Data
public
class
AppConfig
{
public
class
AppConfig
{
@ValueMapping
(
"${titleConfig:
[]
}"
)
@ValueMapping
(
"${titleConfig:
null
}"
)
private
TitleConfig
titleConfig
;
private
TitleConfig
titleConfig
;
}
}
\ No newline at end of file
yanxuan-qc-change-system-dal/pom.xml
View file @
91f77292
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<artifactId>
yanxuan-qc-change-system-common
</artifactId>
<artifactId>
yanxuan-qc-change-system-common
</artifactId>
</dependency>
</dependency>
<!-- store-db
<!--store-db-->
<dependency>
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
...
@@ -30,18 +30,16 @@
...
@@ -30,18 +30,16 @@
<groupId>
mysql
</groupId>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
</dependency>
-->
<!-- store-redis
<!--store-redis-->
<dependency>
<
!--<
dependency>
<groupId>redis.clients</groupId>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<artifactId>jedis</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<artifactId>spring-data-redis</artifactId>
</dependency>
</dependency>-->
-->
</dependencies>
</dependencies>
</project>
</project>
\ No newline at end of file
yanxuan-qc-change-system-dal/src/main/resources/mybatis/mapper/ChangeConfigMapper.xml
View file @
91f77292
...
@@ -18,141 +18,5 @@
...
@@ -18,141 +18,5 @@
id, change_subject, parent_change_class_id, son_change_class_id, change_level, change_department,
id, change_subject, parent_change_class_id, son_change_class_id, change_level, change_department,
change_commander_type, change_commander, need_file, create_time, update_time
change_commander_type, change_commander, need_file, create_time, update_time
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tb_yx_change_config
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from tb_yx_change_config
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.netease.mail.yanxuan.change.dal.entity.ChangeConfig"
useGeneratedKeys=
"true"
>
insert into tb_yx_change_config (change_subject, parent_change_class_id,
son_change_class_id, change_level, change_department,
change_commander_type, change_commander, need_file,
create_time, update_time)
values (#{changeSubject,jdbcType=INTEGER}, #{parentChangeClassId,jdbcType=INTEGER},
#{sonChangeClassId,jdbcType=INTEGER}, #{changeLevel,jdbcType=INTEGER}, #{changeDepartment,jdbcType=VARCHAR},
#{changeCommanderType,jdbcType=INTEGER}, #{changeCommander,jdbcType=VARCHAR}, #{needFile,jdbcType=INTEGER},
#{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.netease.mail.yanxuan.change.dal.entity.ChangeConfig"
useGeneratedKeys=
"true"
>
insert into tb_yx_change_config
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"changeSubject != null"
>
change_subject,
</if>
<if
test=
"parentChangeClassId != null"
>
parent_change_class_id,
</if>
<if
test=
"sonChangeClassId != null"
>
son_change_class_id,
</if>
<if
test=
"changeLevel != null"
>
change_level,
</if>
<if
test=
"changeDepartment != null"
>
change_department,
</if>
<if
test=
"changeCommanderType != null"
>
change_commander_type,
</if>
<if
test=
"changeCommander != null"
>
change_commander,
</if>
<if
test=
"needFile != null"
>
need_file,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"changeSubject != null"
>
#{changeSubject,jdbcType=INTEGER},
</if>
<if
test=
"parentChangeClassId != null"
>
#{parentChangeClassId,jdbcType=INTEGER},
</if>
<if
test=
"sonChangeClassId != null"
>
#{sonChangeClassId,jdbcType=INTEGER},
</if>
<if
test=
"changeLevel != null"
>
#{changeLevel,jdbcType=INTEGER},
</if>
<if
test=
"changeDepartment != null"
>
#{changeDepartment,jdbcType=VARCHAR},
</if>
<if
test=
"changeCommanderType != null"
>
#{changeCommanderType,jdbcType=INTEGER},
</if>
<if
test=
"changeCommander != null"
>
#{changeCommander,jdbcType=VARCHAR},
</if>
<if
test=
"needFile != null"
>
#{needFile,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=BIGINT},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.netease.mail.yanxuan.change.dal.entity.ChangeConfig"
>
update tb_yx_change_config
<set>
<if
test=
"changeSubject != null"
>
change_subject = #{changeSubject,jdbcType=INTEGER},
</if>
<if
test=
"parentChangeClassId != null"
>
parent_change_class_id = #{parentChangeClassId,jdbcType=INTEGER},
</if>
<if
test=
"sonChangeClassId != null"
>
son_change_class_id = #{sonChangeClassId,jdbcType=INTEGER},
</if>
<if
test=
"changeLevel != null"
>
change_level = #{changeLevel,jdbcType=INTEGER},
</if>
<if
test=
"changeDepartment != null"
>
change_department = #{changeDepartment,jdbcType=VARCHAR},
</if>
<if
test=
"changeCommanderType != null"
>
change_commander_type = #{changeCommanderType,jdbcType=INTEGER},
</if>
<if
test=
"changeCommander != null"
>
change_commander = #{changeCommander,jdbcType=VARCHAR},
</if>
<if
test=
"needFile != null"
>
need_file = #{needFile,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=BIGINT},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.netease.mail.yanxuan.change.dal.entity.ChangeConfig"
>
update tb_yx_change_config
set change_subject = #{changeSubject,jdbcType=INTEGER},
parent_change_class_id = #{parentChangeClassId,jdbcType=INTEGER},
son_change_class_id = #{sonChangeClassId,jdbcType=INTEGER},
change_level = #{changeLevel,jdbcType=INTEGER},
change_department = #{changeDepartment,jdbcType=VARCHAR},
change_commander_type = #{changeCommanderType,jdbcType=INTEGER},
change_commander = #{changeCommander,jdbcType=VARCHAR},
need_file = #{needFile,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
</mapper>
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