You need to sign in before continuing.
Commit 2c4d3434ed479261ca755ecf0a6977df72699fd6
1 parent
9e9e2f3e
job-spring boot2.0
Showing
7 changed files
with
254 additions
and
243 deletions
zteits-job/pom.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
4 | - <modelVersion>4.0.0</modelVersion> | |
3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
4 | + <modelVersion>4.0.0</modelVersion> | |
5 | 5 | |
6 | - <groupId>com.zteits.job</groupId> | |
7 | - <artifactId>zteits-job</artifactId> | |
8 | - <version>0.0.1-SNAPSHOT</version> | |
9 | - <packaging>jar</packaging> | |
6 | + <groupId>com.zteits.job</groupId> | |
7 | + <artifactId>zteits-job</artifactId> | |
8 | + <version>2.0.1-SNAPSHOT</version> | |
9 | + <packaging>jar</packaging> | |
10 | 10 | |
11 | - <name>zteits-job</name> | |
12 | - <description>Demo project for Spring Boot</description> | |
13 | - <parent> | |
14 | - <groupId>org.springframework.boot</groupId> | |
15 | - <artifactId>spring-boot-starter-parent</artifactId> | |
16 | - <version>1.5.9.RELEASE</version> | |
17 | - <relativePath /> <!-- lookup parent from repository --> | |
18 | - </parent> | |
11 | + <name>zteits-job</name> | |
12 | + <description>Demo project for Spring Boot</description> | |
13 | + <parent> | |
14 | + <groupId>org.springframework.boot</groupId> | |
15 | + <artifactId>spring-boot-starter-parent</artifactId> | |
16 | + <version>2.0.5.RELEASE</version> | |
17 | + <relativePath /> <!-- lookup parent from repository --> | |
18 | + </parent> | |
19 | 19 | |
20 | - <properties> | |
21 | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
22 | - <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
23 | - <java.version>1.8</java.version> | |
24 | - <spring-session.version>1.3.1.RELEASE</spring-session.version> | |
25 | - <mysql-connector-java.version>5.1.21</mysql-connector-java.version> | |
26 | - <hutool-all.version>3.0.5</hutool-all.version> | |
27 | - <org.mybatis.version>3.4.4</org.mybatis.version> | |
28 | - <com.alibaba.version>1.0.29</com.alibaba.version> | |
29 | - <pagehelper-spring-boot-starter.version>1.1.0</pagehelper-spring-boot-starter.version> | |
30 | - <mysql.version>5.1.42</mysql.version> | |
31 | - <junit.version>4.12</junit.version> | |
32 | - <mapper.version>3.4.0</mapper.version> | |
33 | - <pagehelper.version>4.1.6</pagehelper.version> | |
34 | - <logback.version>1.1.7</logback.version> | |
35 | - </properties> | |
20 | + <properties> | |
21 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
22 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
23 | + <java.version>1.8</java.version> | |
24 | + <mysql-connector-java.version>5.1.21</mysql-connector-java.version> | |
25 | + <hutool-all.version>3.0.5</hutool-all.version> | |
26 | + <org.mybatis.version>3.4.4</org.mybatis.version> | |
27 | + <com.alibaba.version>1.0.29</com.alibaba.version> | |
28 | + <pagehelper-spring-boot-starter.version>1.1.0</pagehelper-spring-boot-starter.version> | |
29 | + <mysql.version>5.1.42</mysql.version> | |
30 | + <junit.version>4.12</junit.version> | |
31 | + <mapper.version>3.4.0</mapper.version> | |
32 | + <pagehelper.version>4.1.6</pagehelper.version> | |
33 | + <logback.version>1.1.7</logback.version> | |
34 | + </properties> | |
36 | 35 | |
37 | - <dependencies> | |
38 | - <!--引入framewor模块 --> | |
39 | - <dependency> | |
40 | - <groupId>com.zteits</groupId> | |
41 | - <artifactId>zteits-framework</artifactId> | |
42 | - <version>0.0.1-SNAPSHOT</version> | |
43 | - </dependency> | |
44 | - <dependency> | |
45 | - <groupId>org.apache.httpcomponents</groupId> | |
46 | - <artifactId>httpclient</artifactId> | |
47 | - </dependency> | |
48 | - <dependency> | |
49 | - <groupId>org.springframework.boot</groupId> | |
50 | - <artifactId>spring-boot-starter-test</artifactId> | |
51 | - <scope>test</scope> | |
52 | - </dependency> | |
53 | - <dependency> | |
54 | - <groupId>org.springframework.boot</groupId> | |
55 | - <artifactId>spring-boot-starter-web</artifactId> | |
56 | - </dependency> | |
57 | - <dependency> | |
58 | - <groupId>org.springframework.boot</groupId> | |
59 | - <artifactId>spring-boot-starter-aop</artifactId> | |
60 | - </dependency> | |
61 | - <dependency> | |
62 | - <groupId>org.springframework.boot</groupId> | |
63 | - <artifactId>spring-boot-starter-redis</artifactId> | |
64 | - <version>1.4.7.RELEASE</version> | |
65 | - </dependency> | |
66 | - <!-- spring session --> | |
67 | - <dependency> | |
68 | - <groupId>org.springframework.session</groupId> | |
69 | - <artifactId>spring-session</artifactId> | |
70 | - </dependency> | |
71 | - <!-- hutool --> | |
72 | - <dependency> | |
73 | - <groupId>com.xiaoleilu</groupId> | |
74 | - <artifactId>hutool-all</artifactId> | |
75 | - <version>${hutool-all.version}</version> | |
76 | - </dependency> | |
77 | - <dependency> | |
78 | - <groupId>com.alibaba</groupId> | |
79 | - <artifactId>fastjson</artifactId> | |
80 | - <version>1.2.47</version> | |
81 | - </dependency> | |
82 | - <dependency> | |
83 | - <groupId>junit</groupId> | |
84 | - <artifactId>junit</artifactId> | |
85 | - <version>${junit.version}</version> | |
86 | - <scope>test</scope> | |
87 | - </dependency> | |
88 | - <dependency> | |
89 | - <groupId>org.slf4j</groupId> | |
90 | - <artifactId>slf4j-api</artifactId> | |
91 | - <version>1.7.21</version> | |
92 | - </dependency> | |
93 | - <!-- LogBack dependencies --> | |
94 | - <dependency> | |
95 | - <groupId>ch.qos.logback</groupId> | |
96 | - <artifactId>logback-classic</artifactId> | |
97 | - <version>${logback.version}</version> | |
98 | - </dependency> | |
99 | - <dependency> | |
100 | - <groupId>ch.qos.logback</groupId> | |
101 | - <artifactId>logback-core</artifactId> | |
102 | - <version>${logback.version}</version> | |
103 | - </dependency> | |
104 | - <dependency> | |
105 | - <groupId>org.springframework.boot</groupId> | |
106 | - <artifactId>spring-boot-starter-data-jpa</artifactId> | |
107 | - </dependency> | |
108 | - <dependency> | |
109 | - <groupId>org.springframework.boot</groupId> | |
110 | - <artifactId>spring-boot-starter-freemarker</artifactId> | |
111 | - </dependency> | |
112 | - <!--mysql--> | |
113 | - <dependency> | |
114 | - <groupId>mysql</groupId> | |
115 | - <artifactId>mysql-connector-java</artifactId> | |
116 | - <version>${mysql.version}</version> | |
117 | - </dependency> | |
118 | - <!--druid--> | |
119 | - <dependency> | |
120 | - <groupId>com.alibaba</groupId> | |
121 | - <artifactId>druid</artifactId> | |
122 | - <version>1.0.31</version> | |
123 | - </dependency> | |
36 | + <dependencies> | |
37 | + <!--引入framewor模块 --> | |
38 | + <dependency> | |
39 | + <groupId>com.zteits</groupId> | |
40 | + <artifactId>zteits-framework</artifactId> | |
41 | + <version>2.0.1-SNAPSHOT</version> | |
42 | + </dependency> | |
43 | + <dependency> | |
44 | + <groupId>org.apache.httpcomponents</groupId> | |
45 | + <artifactId>httpclient</artifactId> | |
46 | + </dependency> | |
47 | + <dependency> | |
48 | + <groupId>org.springframework.boot</groupId> | |
49 | + <artifactId>spring-boot-starter-test</artifactId> | |
50 | + <scope>test</scope> | |
51 | + </dependency> | |
52 | + <dependency> | |
53 | + <groupId>org.springframework.boot</groupId> | |
54 | + <artifactId>spring-boot-starter-web</artifactId> | |
55 | + </dependency> | |
56 | + <dependency> | |
57 | + <groupId>org.springframework.boot</groupId> | |
58 | + <artifactId>spring-boot-starter-aop</artifactId> | |
59 | + </dependency> | |
60 | + <dependency> | |
61 | + <groupId>org.springframework.boot</groupId> | |
62 | + <artifactId>spring-boot-starter-data-redis</artifactId> | |
63 | + <version>2.0.5.RELEASE</version> | |
64 | + </dependency> | |
65 | + <dependency> | |
66 | + <groupId>org.springframework.session</groupId> | |
67 | + <artifactId>spring-session-data-redis</artifactId> | |
68 | + <version>2.0.5.RELEASE</version> | |
69 | + </dependency> | |
70 | + <!-- hutool --> | |
71 | + <dependency> | |
72 | + <groupId>com.xiaoleilu</groupId> | |
73 | + <artifactId>hutool-all</artifactId> | |
74 | + <version>${hutool-all.version}</version> | |
75 | + </dependency> | |
76 | + <dependency> | |
77 | + <groupId>com.alibaba</groupId> | |
78 | + <artifactId>fastjson</artifactId> | |
79 | + <version>1.2.47</version> | |
80 | + </dependency> | |
81 | + <dependency> | |
82 | + <groupId>junit</groupId> | |
83 | + <artifactId>junit</artifactId> | |
84 | + <version>${junit.version}</version> | |
85 | + <scope>test</scope> | |
86 | + </dependency> | |
87 | + <dependency> | |
88 | + <groupId>org.slf4j</groupId> | |
89 | + <artifactId>slf4j-api</artifactId> | |
90 | + <version>1.7.21</version> | |
91 | + </dependency> | |
92 | + <!-- LogBack dependencies --> | |
93 | + <dependency> | |
94 | + <groupId>ch.qos.logback</groupId> | |
95 | + <artifactId>logback-classic</artifactId> | |
96 | + <version>${logback.version}</version> | |
97 | + </dependency> | |
98 | + <dependency> | |
99 | + <groupId>ch.qos.logback</groupId> | |
100 | + <artifactId>logback-core</artifactId> | |
101 | + <version>${logback.version}</version> | |
102 | + </dependency> | |
103 | + <dependency> | |
104 | + <groupId>org.springframework.boot</groupId> | |
105 | + <artifactId>spring-boot-starter-data-jpa</artifactId> | |
106 | + </dependency> | |
107 | + <dependency> | |
108 | + <groupId>org.springframework.boot</groupId> | |
109 | + <artifactId>spring-boot-starter-freemarker</artifactId> | |
110 | + </dependency> | |
111 | + <!--mysql--> | |
112 | + <dependency> | |
113 | + <groupId>mysql</groupId> | |
114 | + <artifactId>mysql-connector-java</artifactId> | |
115 | + <version>${mysql.version}</version> | |
116 | + </dependency> | |
117 | + <!--druid--> | |
118 | + <dependency> | |
119 | + <groupId>com.alibaba</groupId> | |
120 | + <artifactId>druid</artifactId> | |
121 | + <version>1.0.31</version> | |
122 | + </dependency> | |
124 | 123 | |
125 | - <!--Mybatis--> | |
126 | - <dependency> | |
127 | - <groupId>org.mybatis</groupId> | |
128 | - <artifactId>mybatis</artifactId> | |
129 | - <version>3.4.4</version> | |
130 | - </dependency> | |
131 | - <dependency> | |
132 | - <groupId>org.mybatis</groupId> | |
133 | - <artifactId>mybatis-spring</artifactId> | |
134 | - <version>1.3.1</version> | |
135 | - </dependency> | |
136 | - <!-- Mybatis Generator --> | |
137 | - <dependency> | |
138 | - <groupId>org.mybatis.generator</groupId> | |
139 | - <artifactId>mybatis-generator-core</artifactId> | |
140 | - <version>1.3.5</version> | |
141 | - <scope>compile</scope> | |
142 | - <optional>true</optional> | |
143 | - </dependency> | |
144 | - <!--通用Mapper--> | |
145 | - <dependency> | |
146 | - <groupId>tk.mybatis</groupId> | |
147 | - <artifactId>mapper</artifactId> | |
148 | - <version>${mapper.version}</version> | |
149 | - </dependency> | |
124 | + <!--Mybatis--> | |
125 | + <dependency> | |
126 | + <groupId>org.mybatis</groupId> | |
127 | + <artifactId>mybatis</artifactId> | |
128 | + <version>3.4.4</version> | |
129 | + </dependency> | |
130 | + <dependency> | |
131 | + <groupId>org.mybatis</groupId> | |
132 | + <artifactId>mybatis-spring</artifactId> | |
133 | + <version>1.3.1</version> | |
134 | + </dependency> | |
135 | + <!-- Mybatis Generator --> | |
136 | + <dependency> | |
137 | + <groupId>org.mybatis.generator</groupId> | |
138 | + <artifactId>mybatis-generator-core</artifactId> | |
139 | + <version>1.3.5</version> | |
140 | + <scope>compile</scope> | |
141 | + <optional>true</optional> | |
142 | + </dependency> | |
143 | + <!--通用Mapper--> | |
144 | + <dependency> | |
145 | + <groupId>tk.mybatis</groupId> | |
146 | + <artifactId>mapper</artifactId> | |
147 | + <version>${mapper.version}</version> | |
148 | + </dependency> | |
150 | 149 | |
151 | 150 | |
152 | - <!--swagger2 --> | |
153 | - <dependency> | |
154 | - <groupId>io.springfox</groupId> | |
155 | - <artifactId>springfox-swagger2</artifactId> | |
156 | - <version>2.7.0</version> | |
157 | - </dependency> | |
158 | - <dependency> | |
159 | - <groupId>io.springfox</groupId> | |
160 | - <artifactId>springfox-swagger-ui</artifactId> | |
161 | - <version>2.7.0</version> | |
162 | - </dependency> | |
163 | - <dependency> | |
164 | - <groupId>org.springframework.security</groupId> | |
165 | - <artifactId>spring-security-web</artifactId> | |
166 | - </dependency> | |
167 | - </dependencies> | |
151 | + <!--swagger2 --> | |
152 | + <dependency> | |
153 | + <groupId>io.springfox</groupId> | |
154 | + <artifactId>springfox-swagger2</artifactId> | |
155 | + <version>2.7.0</version> | |
156 | + </dependency> | |
157 | + <dependency> | |
158 | + <groupId>io.springfox</groupId> | |
159 | + <artifactId>springfox-swagger-ui</artifactId> | |
160 | + <version>2.7.0</version> | |
161 | + </dependency> | |
162 | + <dependency> | |
163 | + <groupId>org.springframework.security</groupId> | |
164 | + <artifactId>spring-security-web</artifactId> | |
165 | + </dependency> | |
166 | + </dependencies> | |
168 | 167 | |
169 | - <build> | |
170 | - <defaultGoal>compile</defaultGoal> | |
171 | - <finalName>zteits-job</finalName> | |
172 | - <plugins> | |
173 | - <plugin> | |
174 | - <groupId>org.springframework.boot</groupId> | |
175 | - <artifactId>spring-boot-maven-plugin</artifactId> | |
176 | - <configuration> | |
177 | - <mainClass>com.zteits.job.JobApplication</mainClass> | |
178 | - </configuration> | |
179 | - </plugin> | |
180 | - <plugin> | |
168 | + <build> | |
169 | + <defaultGoal>compile</defaultGoal> | |
170 | + <finalName>zteits-job</finalName> | |
171 | + <plugins> | |
172 | + <plugin> | |
173 | + <groupId>org.springframework.boot</groupId> | |
174 | + <artifactId>spring-boot-maven-plugin</artifactId> | |
175 | + <configuration> | |
176 | + <mainClass>com.zteits.job.JobApplication</mainClass> | |
177 | + </configuration> | |
178 | + </plugin> | |
179 | + <plugin> | |
181 | 180 | <groupId>org.apache.maven.plugins</groupId> |
182 | 181 | <artifactId>maven-compiler-plugin</artifactId> |
183 | 182 | <configuration> |
... | ... | @@ -185,33 +184,33 @@ |
185 | 184 | <target>1.8</target> |
186 | 185 | </configuration> |
187 | 186 | </plugin> |
188 | - </plugins> | |
189 | - <!-- <resources> | |
190 | - <resource> | |
191 | - <directory>src/lib</directory> | |
192 | - <targetPath>BOOT-INF/lib/</targetPath> | |
193 | - <includes> | |
194 | - <include>**/*.jar</include> | |
195 | - </includes> | |
196 | - </resource> | |
197 | - <resource> | |
198 | - <directory>src/main/resources</directory> | |
199 | - <targetPath>BOOT-INF/classes/</targetPath> | |
200 | - </resource> | |
201 | - </resources>--> | |
202 | - </build> | |
203 | - <distributionManagement> | |
204 | - <repository> | |
205 | - <id>nexus_releases</id> | |
206 | - <name>core Release Repository</name> | |
207 | - <url>http://192.168.1.195:9999/nexus/content/repositories/releases/</url> | |
208 | - </repository> | |
209 | - <snapshotRepository> | |
210 | - <id>nexus_snapshots</id> | |
211 | - <name>core Snapshots Repository</name> | |
212 | - <url>http://192.168.1.195:9999/nexus/content/repositories/snapshots/</url> | |
213 | - </snapshotRepository> | |
214 | - </distributionManagement> | |
187 | + </plugins> | |
188 | + <!-- <resources> | |
189 | + <resource> | |
190 | + <directory>src/lib</directory> | |
191 | + <targetPath>BOOT-INF/lib/</targetPath> | |
192 | + <includes> | |
193 | + <include>**/*.jar</include> | |
194 | + </includes> | |
195 | + </resource> | |
196 | + <resource> | |
197 | + <directory>src/main/resources</directory> | |
198 | + <targetPath>BOOT-INF/classes/</targetPath> | |
199 | + </resource> | |
200 | + </resources>--> | |
201 | + </build> | |
202 | + <distributionManagement> | |
203 | + <repository> | |
204 | + <id>nexus_releases</id> | |
205 | + <name>core Release Repository</name> | |
206 | + <url>http://192.168.1.195:9999/nexus/content/repositories/releases/</url> | |
207 | + </repository> | |
208 | + <snapshotRepository> | |
209 | + <id>nexus_snapshots</id> | |
210 | + <name>core Snapshots Repository</name> | |
211 | + <url>http://192.168.1.195:9999/nexus/content/repositories/snapshots/</url> | |
212 | + </snapshotRepository> | |
213 | + </distributionManagement> | |
215 | 214 | |
216 | 215 | |
217 | 216 | </project> | ... | ... |
zteits-job/src/main/java/com/zteits/job/JobApplication.java
... | ... | @@ -5,9 +5,8 @@ import org.springframework.boot.SpringApplication; |
5 | 5 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
6 | 6 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
7 | 7 | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
8 | -import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration; | |
9 | -import org.springframework.context.annotation.ComponentScan; | |
10 | -import org.springframework.context.annotation.ImportResource; | |
8 | +import org.springframework.boot.builder.SpringApplicationBuilder; | |
9 | +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; | |
11 | 10 | import org.springframework.scheduling.annotation.EnableAsync; |
12 | 11 | import org.springframework.scheduling.annotation.EnableScheduling; |
13 | 12 | |
... | ... | @@ -15,9 +14,13 @@ import org.springframework.scheduling.annotation.EnableScheduling; |
15 | 14 | @EnableAsync |
16 | 15 | @MapperScan({"com.zteits.job.mapper"}) |
17 | 16 | @SpringBootApplication(scanBasePackages = {"com.zteits.job","com.clouds.common.redis"}, exclude = {DataSourceAutoConfiguration.class}) |
18 | -public class JobApplication { | |
19 | - | |
17 | +@EnableAutoConfiguration | |
18 | +public class JobApplication extends SpringBootServletInitializer { | |
20 | 19 | |
20 | + @Override | |
21 | + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { | |
22 | + return application.sources(JobApplication.class); | |
23 | + } | |
21 | 24 | public static void main(String[] args) { |
22 | 25 | |
23 | 26 | SpringApplication.run(JobApplication.class, args); | ... | ... |
zteits-job/src/main/java/com/zteits/job/config/session/HttpSessionConfig.java
1 | -package com.zteits.job.config.session; | |
2 | - | |
3 | -import org.springframework.context.annotation.Bean; | |
4 | -import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession; | |
5 | -import org.springframework.session.web.http.HeaderHttpSessionStrategy; | |
6 | -import org.springframework.session.web.http.HttpSessionStrategy; | |
7 | - | |
8 | -/** | |
9 | - * Copyright: Copyright (c) 2017 zteits | |
10 | - * | |
11 | - * @ClassName: com.zteits.oauth.portal.config.session | |
12 | - * @Description: | |
13 | - * @version: v1.0.0 | |
14 | - * @author: atao | |
15 | - * @date: 2017/5/16 下午9:23 | |
16 | - * Modification History: | |
17 | - * Date Author Version Description | |
18 | - * ---------------------------------------------------------* | |
19 | - * 2017/5/16 atao v1.0.0 创建 | |
20 | - */ | |
21 | -//maxInactiveIntervalInSeconds | |
22 | -@EnableRedisHttpSession(maxInactiveIntervalInSeconds=30*24*60*60) | |
23 | -public class HttpSessionConfig { | |
24 | - | |
25 | - @Bean | |
26 | - public HttpSessionStrategy httpSessionStrategy() { | |
27 | - return new HeaderHttpSessionStrategy(); | |
28 | - } | |
29 | - | |
30 | -} | |
1 | +//package com.zteits.job.config.session; | |
2 | +// | |
3 | +//import org.springframework.context.annotation.Bean; | |
4 | +//import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession; | |
5 | +//import org.springframework.session.web.http.HeaderHttpSessionStrategy; | |
6 | +//import org.springframework.session.web.http.HttpSessionStrategy; | |
7 | +// | |
8 | +///** | |
9 | +// * Copyright: Copyright (c) 2017 zteits | |
10 | +// * | |
11 | +// * @ClassName: com.zteits.oauth.portal.config.session | |
12 | +// * @Description: | |
13 | +// * @version: v1.0.0 | |
14 | +// * @author: atao | |
15 | +// * @date: 2017/5/16 下午9:23 | |
16 | +// * Modification History: | |
17 | +// * Date Author Version Description | |
18 | +// * ---------------------------------------------------------* | |
19 | +// * 2017/5/16 atao v1.0.0 创建 | |
20 | +// */ | |
21 | +////maxInactiveIntervalInSeconds | |
22 | +//@EnableRedisHttpSession(maxInactiveIntervalInSeconds=30*24*60*60) | |
23 | +//public class HttpSessionConfig { | |
24 | +// | |
25 | +// @Bean | |
26 | +// public HttpSessionStrategy httpSessionStrategy() { | |
27 | +// return new HeaderHttpSessionStrategy(); | |
28 | +// } | |
29 | +// | |
30 | +//} | ... | ... |
zteits-job/src/main/resources/application-dany.properties
1 | 1 | server.port=8075 |
2 | 2 | |
3 | 3 | #park-datasource |
4 | -park-datasource.url=jdbc:mysql://172.19.128.115:3306/zt_park?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
4 | +park-datasource.url=jdbc:mysql://172.19.128.115:3306/zt_park?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
5 | 5 | park-datasource.username=park |
6 | 6 | park-datasource.password=MySQL57@123 |
7 | 7 | |
8 | 8 | #order-datasource |
9 | 9 | order-datasource.driverClassName=com.mysql.jdbc.Driver |
10 | -order-datasource.url=jdbc:mysql://172.19.128.115/zt_order_n?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
10 | +order-datasource.url=jdbc:mysql://172.19.128.115/zt_order_n?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
11 | 11 | order-datasource.username=order |
12 | 12 | order-datasource.password=MySQL57@123 |
13 | 13 | ... | ... |
zteits-job/src/main/resources/application-prod.properties
1 | 1 | server.port=8080 |
2 | 2 | |
3 | 3 | #park-datasource |
4 | -park-datasource.url=jdbc:mysql://192.168.5.224:3306/zt_park?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
4 | +park-datasource.url=jdbc:mysql://192.168.5.224:3306/zt_park?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
5 | 5 | park-datasource.username=park |
6 | 6 | park-datasource.password=MySQL5.7;123 |
7 | 7 | |
8 | 8 | #order-datasource |
9 | 9 | order-datasource.driverClassName=com.mysql.jdbc.Driver |
10 | -order-datasource.url=jdbc:mysql://192.168.5.224:3306/zt_order_n?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
10 | +order-datasource.url=jdbc:mysql://192.168.5.224:3306/zt_order_n?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
11 | 11 | order-datasource.username=order |
12 | 12 | order-datasource.password=MySQL5.7;123 |
13 | 13 | ... | ... |
zteits-job/src/main/resources/application-www.properties
... | ... | @@ -9,19 +9,19 @@ logging.file=${spring.application.name}.log |
9 | 9 | |
10 | 10 | #park-datasource |
11 | 11 | park-datasource.driverClassName=com.mysql.jdbc.Driver |
12 | -park-datasource.url=jdbc:mysql://10.112.92.89:3306/zt_park?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
12 | +park-datasource.url=jdbc:mysql://10.112.92.89:3306/zt_park?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
13 | 13 | park-datasource.username=park |
14 | 14 | park-datasource.password=MySQL5.7;123 |
15 | 15 | |
16 | 16 | #order-datasource |
17 | 17 | order-datasource.driverClassName=com.mysql.jdbc.Driver |
18 | -order-datasource.url=jdbc:mysql://10.112.92.89:3306/zt_order_n?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
18 | +order-datasource.url=jdbc:mysql://10.112.92.89:3306/zt_order_n?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
19 | 19 | order-datasource.username=order |
20 | 20 | order-datasource.password=MySQL5.7;123 |
21 | 21 | |
22 | 22 | #sys-datasource |
23 | 23 | sys-datasource.driverClassName=com.mysql.jdbc.Driver |
24 | -sys-datasource.url=jdbc:mysql://10.112.92.89:3306/zt_sys?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
24 | +sys-datasource.url=jdbc:mysql://10.112.92.89:3306/zt_sys?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
25 | 25 | sys-datasource.username=sys |
26 | 26 | sys-datasource.password=MySQL5.7;123 |
27 | 27 | ... | ... |
zteits-job/src/main/resources/application.properties
... | ... | @@ -11,19 +11,19 @@ logging.file=${spring.application.name}.log |
11 | 11 | |
12 | 12 | #park-datasource |
13 | 13 | park-datasource.driverClassName=com.mysql.jdbc.Driver |
14 | -park-datasource.url=jdbc:mysql://47.96.41.38:3306/zt_park?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
14 | +park-datasource.url=jdbc:mysql://47.96.41.38:3306/zt_park?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
15 | 15 | park-datasource.username=park |
16 | 16 | park-datasource.password=MySQL5.7@123 |
17 | 17 | |
18 | 18 | #order-datasource |
19 | 19 | order-datasource.driverClassName=com.mysql.jdbc.Driver |
20 | -order-datasource.url=jdbc:mysql://47.96.41.38:3306/zt_order_n?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
20 | +order-datasource.url=jdbc:mysql://47.96.41.38:3306/zt_order_n?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
21 | 21 | order-datasource.username=order |
22 | 22 | order-datasource.password=MySQL5.7@123 |
23 | 23 | |
24 | 24 | #sys-datasource |
25 | 25 | sys-datasource.driverClassName=com.mysql.jdbc.Driver |
26 | -sys-datasource.url=jdbc:mysql://47.96.41.38:3306/zt_sys?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
26 | +sys-datasource.url=jdbc:mysql://47.96.41.38:3306/zt_sys?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
27 | 27 | sys-datasource.username=sys |
28 | 28 | sys-datasource.password=MySQL5.7@123 |
29 | 29 | |
... | ... | @@ -38,4 +38,13 @@ spring.redis.port=7001 |
38 | 38 | spring.redis.password=myredis |
39 | 39 | spring.redis.database=0 |
40 | 40 | |
41 | -spring.datasource.initialize=false | |
41 | +spring.session.store-type=redis | |
42 | + | |
43 | +ƒ | |
44 | +#spring.boot.admin.client.url=http://192.168.1.196:8080 | |
45 | +spring.boot.admin.client.url=http://localhost:8080 | |
46 | +spring.boot.admin.client.prefer-ip=true | |
47 | +management.endpoints.web.exposure.include=* | |
48 | + | |
49 | +#spring.datasource.initialize=false | |
50 | +spring.datasource.initialization-mode=never | ... | ... |