File tree 4 files changed +9
-26
lines changed
4 files changed +9
-26
lines changed Original file line number Diff line number Diff line change 23
23
<!-- 编译时的编码 -->
24
24
<maven .compiler.encoding>UTF-8</maven .compiler.encoding>
25
25
<dubbo .version>2.5.3</dubbo .version>
26
- <jdk .version>1.7 </jdk .version>
27
- <spring .version>4.1.4 .RELEASE</spring .version>
26
+ <jdk .version>1.8 </jdk .version>
27
+ <spring .version>4.3.10 .RELEASE</spring .version>
28
28
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
29
29
<springboot .version>1.5.6.RELEASE</springboot .version>
30
+ <logback .version>1.2.3</logback .version>
30
31
</properties >
31
32
32
33
88
89
<version >19.0</version >
89
90
</dependency >
90
91
91
- <dependency >
92
- <groupId >ch.qos.logback</groupId >
93
- <artifactId >logback-classic</artifactId >
94
- <version >1.0.13</version >
95
- </dependency >
96
- <dependency >
97
- <groupId >ch.qos.logback</groupId >
98
- <artifactId >logback-core</artifactId >
99
- <version >1.0.13</version >
100
- </dependency >
101
-
102
- <dependency >
103
- <groupId >org.slf4j</groupId >
104
- <artifactId >slf4j-api</artifactId >
105
- <version >1.7.21</version >
106
- </dependency >
107
92
<dependency >
108
93
<groupId >com.alibaba</groupId >
109
94
<artifactId >fastjson</artifactId >
119
104
<artifactId >maven-compiler-plugin</artifactId >
120
105
<version >2.3.2</version >
121
106
<configuration >
122
- <source >${java.version} </source >
123
- <target >${java.version} </target >
107
+ <source >1.8 </source >
108
+ <target >1.8 </target >
124
109
<encoding >${project.build.sourceEncoding} </encoding >
125
110
</configuration >
126
111
</plugin >
Original file line number Diff line number Diff line change 2
2
3
3
import org .slf4j .Logger ;
4
4
import org .slf4j .LoggerFactory ;
5
+ import org .springframework .boot .SpringApplication ;
5
6
import org .springframework .boot .autoconfigure .SpringBootApplication ;
6
- import org .springframework .boot .builder .SpringApplicationBuilder ;
7
- import org .springframework .boot .system .ApplicationPidFileWriter ;
8
7
9
8
/**
10
9
* @author crossoverJie
@@ -17,8 +16,8 @@ public class Application {
17
16
18
17
19
18
public static void main (String [] args ) throws Exception {
20
- new SpringApplicationBuilder (Application .class ). listeners ( new ApplicationPidFileWriter ())
21
- . run ( args );
19
+ SpringApplication . run (Application .class , args );
20
+ LOGGER . info ( "start ok!" );
22
21
23
22
}
24
23
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public static void main(String[] args) throws Exception {
28
28
private static void countDownLatch () throws Exception {
29
29
int thread = 3 ;
30
30
long start = System .currentTimeMillis ();
31
- CountDownLatch countDown = new CountDownLatch (thread );
31
+ final CountDownLatch countDown = new CountDownLatch (thread );
32
32
for (int i = 0 ;i <thread ; i ++){
33
33
new Thread (new Runnable () {
34
34
@ Override
Original file line number Diff line number Diff line change 76
76
<appender-ref ref =" LOGFILE-INFO" />
77
77
<appender-ref ref =" LOGFILE-ERROR" />
78
78
<appender-ref ref =" CONSOLE" />
79
- <appender-ref ref =" LOGFILE-COMMON" />
80
79
</root >
81
80
82
81
You can’t perform that action at this time.
0 commit comments