FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

redis · JavaCodeMood/SpringBootUnity@a819399 · GitHub

Repository navigation

Commit a819399

Browse files
committed
redis
1 parent ba5002b commit a819399

6 files changed

Lines changed: 77 additions & 5 deletions

File tree

‎chat/pom.xml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,14 @@
2222
<artifactId>spring-boot-starter-websocket</artifactId>
2323
</dependency>
2424
</dependencies>
25+
26+
27+
<build>
28+
<plugins>
29+
<plugin>
30+
<groupId>org.springframework.boot</groupId>
31+
<artifactId>spring-boot-maven-plugin</artifactId>
32+
</plugin>
33+
</plugins>
34+
</build>
2535
</project>

‎core/src/main/java/info/xiaomo/core/untils/FileUtil.java‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.net.MalformedURLException;
99
import java.net.URL;
1010
import java.util.ArrayList;
11+
import java.util.List;
1112

1213
/**
1314
* 此类中封装一些常用的文件操作。
@@ -232,14 +233,14 @@ public static boolean deleteDirectory(File dir) {
232233
*/
233234
public static File[] listAll(File file,
234235
javax.swing.filechooser.FileFilter filter) {
235-
ArrayList list = new ArrayList();
236+
List<File> arrayList = new ArrayList<>();
236237
File[] files;
237238
if (!file.exists() || file.isFile()) {
238239
return null;
239240
}
240-
list(list, file, filter);
241-
files = new File[list.size()];
242-
list.toArray(files);
241+
list(arrayList, file, filter);
242+
files = new File[arrayList.size()];
243+
arrayList.toArray(files);
243244
return files;
244245
}
245246

@@ -628,7 +629,7 @@ private static void copy(InputStream in, OutputStream out) throws IOException {
628629
* @param filter 过滤器
629630
* @param file 目录
630631
*/
631-
private static void list(ArrayList<File> list, File file,
632+
private static void list(List<File> list, File file,
632633
javax.swing.filechooser.FileFilter filter) {
633634
if (filter.accept(file)) {
634635
list.add(file);

‎rabbitmq/pom.xml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@
1818
<version>1.0.0-SNAPSHOT</version>
1919
</dependency>
2020
</dependencies>
21+
22+
23+
<build>
24+
<plugins>
25+
<plugin>
26+
<groupId>org.springframework.boot</groupId>
27+
<artifactId>spring-boot-maven-plugin</artifactId>
28+
</plugin>
29+
</plugins>
30+
</build>
2131
</project>

‎redis/pom.xml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@
1818
<version>1.0.0-SNAPSHOT</version>
1919
</dependency>
2020
</dependencies>
21+
22+
23+
<build>
24+
<plugins>
25+
<plugin>
26+
<groupId>org.springframework.boot</groupId>
27+
<artifactId>spring-boot-maven-plugin</artifactId>
28+
</plugin>
29+
</plugins>
30+
</build>
2131
</project>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package info.xiaomo.redis;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
5+
import org.springframework.context.annotation.ComponentScan;
6+
import org.springframework.context.annotation.Configuration;
7+
8+
/**
9+
* 把今天最好的表现当作明天最新的起点..~
10+
* いま 最高の表現 として 明日最新の始発..~
11+
* Today the best performance as tomorrow newest starter!
12+
* Created by IntelliJ IDEA.
13+
*
14+
* @author: xiaomo
15+
* @github: https://github.com/qq83387856
16+
* @email: hupengbest@163.com
17+
* @QQ_NO: 83387856
18+
* @Date: 2016/4/1 15:38
19+
* @Description: 后台管理启动器
20+
* @Copyright(©) 2015 by xiaomo.
21+
**/
22+
@Configuration
23+
@EnableAutoConfiguration
24+
@ComponentScan("info.xiaomo")
25+
public class RedisMain {
26+
public static void main(String[] args) throws Exception {
27+
SpringApplication.run(RedisMain.class, args);
28+
}
29+
30+
}

‎scheduled/pom.xml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,15 @@
1818
</dependency>
1919
</dependencies>
2020

21+
22+
23+
<build>
24+
<plugins>
25+
<plugin>
26+
<groupId>org.springframework.boot</groupId>
27+
<artifactId>spring-boot-maven-plugin</artifactId>
28+
</plugin>
29+
</plugins>
30+
</build>
31+
2132
</project>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL