Commit 91f77292 by “zcwang”

init: 环境配置

parent 69723549
......@@ -448,5 +448,14 @@
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/resources/config/${env}</directory>
</resource>
</resources>
</build>
</project>
\ No newline at end of file
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
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"
......@@ -29,12 +29,12 @@ 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
#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
......@@ -22,6 +22,6 @@ import lombok.Data;
@Data
public class AppConfig {
@ValueMapping("${titleConfig:[]}")
@ValueMapping("${titleConfig:null}")
private TitleConfig titleConfig;
}
\ No newline at end of file
......@@ -17,7 +17,7 @@
<artifactId>yanxuan-qc-change-system-common</artifactId>
</dependency>
<!-- store-db
<!--store-db-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
......@@ -30,18 +30,16 @@
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
-->
<!-- store-redis
<dependency>
<!--store-redis-->
<!--<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
</dependency>
-->
</dependency>-->
</dependencies>
</project>
\ No newline at end of file
......@@ -18,141 +18,5 @@
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
</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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment