File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 <!-- 编译时的编码 -->
2424 <maven .compiler.encoding>UTF-8</maven .compiler.encoding>
2525 <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>
2828 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
2929 <springboot .version>1.5.6.RELEASE</springboot .version>
30+ <logback .version>1.2.3</logback .version>
3031 </properties >
3132
3233
8889 <version >19.0</version >
8990 </dependency >
9091
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 >
10792 <dependency >
10893 <groupId >com.alibaba</groupId >
10994 <artifactId >fastjson</artifactId >
119104 <artifactId >maven-compiler-plugin</artifactId >
120105 <version >2.3.2</version >
121106 <configuration >
122- <source >${java.version} </source >
123- <target >${java.version} </target >
107+ <source >1.8 </source >
108+ <target >1.8 </target >
124109 <encoding >${project.build.sourceEncoding} </encoding >
125110 </configuration >
126111 </plugin >
Original file line number Diff line number Diff line change 22
33import org .slf4j .Logger ;
44import org .slf4j .LoggerFactory ;
5+ import org .springframework .boot .SpringApplication ;
56import org .springframework .boot .autoconfigure .SpringBootApplication ;
6- import org .springframework .boot .builder .SpringApplicationBuilder ;
7- import org .springframework .boot .system .ApplicationPidFileWriter ;
87
98/**
109 * @author crossoverJie
@@ -17,8 +16,8 @@ public class Application {
1716
1817
1918 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!" );
2221
2322 }
2423
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public static void main(String[] args) throws Exception {
2828 private static void countDownLatch () throws Exception {
2929 int thread = 3 ;
3030 long start = System .currentTimeMillis ();
31- CountDownLatch countDown = new CountDownLatch (thread );
31+ final CountDownLatch countDown = new CountDownLatch (thread );
3232 for (int i = 0 ;i <thread ; i ++){
3333 new Thread (new Runnable () {
3434 @ Override
Original file line number Diff line number Diff line change 7676 <appender-ref ref =" LOGFILE-INFO" />
7777 <appender-ref ref =" LOGFILE-ERROR" />
7878 <appender-ref ref =" CONSOLE" />
79- <appender-ref ref =" LOGFILE-COMMON" />
8079 </root >
8180
8281
You can’t perform that action at this time.
0 commit comments