| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,4 +22,14 @@ | |||
| 22 | 22 | <artifactId>spring-boot-starter-websocket</artifactId> | |
| 23 | 23 | </dependency> | |
| 24 | 24 | </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> | ||
| 25 | 35 | </project> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,7 @@ | |||
| 8 | 8 | import java.net.MalformedURLException; | |
| 9 | 9 | import java.net.URL; | |
| 10 | 10 | import java.util.ArrayList; | |
| 11 | + import java.util.List; | ||
| 11 | 12 | ||
| 12 | 13 | /** | |
| 13 | 14 | * 此类中封装一些常用的文件操作。 | |
@@ -232,14 +233,14 @@ public static boolean deleteDirectory(File dir) { | |||
| 232 | 233 | */ | |
| 233 | 234 | public static File[] listAll(File file, | |
| 234 | 235 | javax.swing.filechooser.FileFilter filter) { | |
| 235 | - ArrayList list = new ArrayList(); | ||
| 236 | + List<File> arrayList = new ArrayList<>(); | ||
| 236 | 237 | File[] files; | |
| 237 | 238 | if (!file.exists() || file.isFile()) { | |
| 238 | 239 | return null; | |
| 239 | 240 | } | |
| 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); | ||
| 243 | 244 | return files; | |
| 244 | 245 | } | |
| 245 | 246 | ||
@@ -628,7 +629,7 @@ private static void copy(InputStream in, OutputStream out) throws IOException { | |||
| 628 | 629 | * @param filter 过滤器 | |
| 629 | 630 | * @param file 目录 | |
| 630 | 631 | */ | |
| 631 | - private static void list(ArrayList<File> list, File file, | ||
| 632 | + private static void list(List<File> list, File file, | ||
| 632 | 633 | javax.swing.filechooser.FileFilter filter) { | |
| 633 | 634 | if (filter.accept(file)) { | |
| 634 | 635 | list.add(file); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,4 +18,14 @@ | |||
| 18 | 18 | <version>1.0.0-SNAPSHOT</version> | |
| 19 | 19 | </dependency> | |
| 20 | 20 | </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> | ||
| 21 | 31 | </project> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,4 +18,14 @@ | |||
| 18 | 18 | <version>1.0.0-SNAPSHOT</version> | |
| 19 | 19 | </dependency> | |
| 20 | 20 | </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> | ||
| 21 | 31 | </project> | |
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,4 +18,15 @@ | |||
| 18 | 18 | </dependency> | |
| 19 | 19 | </dependencies> | |
| 20 | 20 | ||
| 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 | + | ||
| 21 | 32 | </project> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments