Skip to content

Commit 13fae6e

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 23c19f9 + 9170757 commit 13fae6e

File tree

84 files changed

+149
-212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+149
-212
lines changed

README.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@
1414
- mysql5.5+
1515
- git: 版本管理
1616
- nginx: 反向代理服务器
17-
- lombok
1817

1918

2019
### 注意事项
2120
- 本项目代码托管在[github](https://github.com/xiaomoinfo/SpringBootUnity)[码云](http://git.oschina.net/hupeng/SpringBootUnity)两个地方,最新代码会先推送在github上,码云上会在github上更新完之后进行同步。
2221
- 本项目多数数据库都用到了`hibernate`,如果没有提供`sql`文件。则启动时会根据代码映射自动生成数据库表,请在启动前修改`application.properties`中的数据库连接信息
23-
- 本项目使用了`lombok`,在查看本项目时如果您没有下载`lombok 插件`,请先安装,不然找不到`get/set`方法。eclipse用户请参照[官网](http://jnb.ociweb.com/jnb/jnbJan2010.html#references)
24-
25-
![lombok](screenshot/lombok.png)
2622

2723

2824
### 启动方式
@@ -111,36 +107,14 @@ http://localhost:808/doc.html bootstrap-ui
111107
- [在线Cron表达式生成器](http://cron.qqe2.com/ "在线Cron表达式生成器")
112108

113109
- [在线工具 - 程序员的工具箱](http://tool.lu/ "在线工具 - 程序员的工具箱")
110+
- [spring boot官方脚手架](https://start.spring.io/ "spring boot官方脚手架")
114111

115112

116113
### 问题反馈
117114
1. 欢迎提[issue](https://github.com/xiaomoinfo/SpringBootUnity/issues)一起完善这个项目。
118115
2. QQ: 83387856
119116
4. 个人主站: https://xiaomo.info
120117

121-
### 在线文档
122-
123-
- [JDK7英文文档](http://tool.oschina.net/apidocs/apidoc?api=jdk_7u4 "JDK7英文文档")
124-
125-
- [Spring4.x文档](http://spring.oschina.mopaas.com/ "Spring4.x文档")
126-
127-
- [Mybatis3官网](http://www.mybatis.org/mybatis-3/zh/index.html "Mybatis3官网")
128-
129-
- [Dubbo官网](http://dubbo.io/ "Dubbo官网")
130-
131-
- [Nginx中文文档](http://tool.oschina.net/apidocs/apidoc?api=nginx-zh "Nginx中文文档")
132-
133-
- [Freemarker在线手册](http://freemarker.foofun.cn/ "Freemarker在线中文手册")
134-
135-
- [Velocity在线手册](http://velocity.apache.org/engine/devel/developer-guide.html "Velocity在线手册")
136-
137-
- [Bootstrap在线手册](http://www.bootcss.com/ "Bootstrap在线手册")
138-
139-
- [Git官网中文文档](https://git-scm.com/book/zh/v2 "Git官网中文文档")
140-
141-
- [Thymeleaf](http://www.thymeleaf.org/doc/tutorials/3.0/thymeleafspring.html "Thymeleaf")
142-
143-
144118

145119
## [License](LICENSE "MIT")
146120

async/src/main/java/info/xiaomo/anysc/AsyncMain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
* @author : xiaomo
1919
* github: https://github.com/xiaomoinfo
2020
21-
21+
* <p>
2222
* Date: 2016/4/1 15:38
2323
* Description: RabbitMq启动器
2424
* Copyright(©) 2015 by xiaomo.
2525
**/
2626
@Configuration
27-
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
27+
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
2828
@ComponentScan("info.xiaomo")
2929
@EntityScan("info.xiaomo.*.model")
3030
public class AsyncMain {

async/src/main/java/info/xiaomo/anysc/controller/TestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @author : xiaomo
2020
* github: https://github.com/xiaomoinfo
2121
22-
22+
* <p>
2323
* Date: 2016/11/15 15:12
2424
* Description: 用户实体类
2525
* Copyright(©) 2015 by xiaomo.

async/src/main/java/info/xiaomo/anysc/task/AsyncTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@Component
1414
public class AsyncTask {
1515

16-
private static Random random =new Random();
16+
private static Random random = new Random();
1717

1818
@Async
1919
public Future<String> doTaskOne() throws Exception {

async/src/main/resources/config/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ server.max-http-header-size=20971520
66
# \u914D\u7F6E\u8FD9\u4E2A\u503C\u5C31\u53EF\u4EE5\u683C\u5F0F\u5316\u65F6\u95F4
77
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
88
spring.jackson.time-zone=GMT+8
9+
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

core/src/main/java/info/xiaomo/core/base/BaseDao.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ public interface BaseDao<T> extends JpaRepository<T, Long> {
2020

2121
/**
2222
* 根据名字查
23+
*
2324
* @param name
2425
* @return
2526
*/
2627
T findByName(String name);
2728

2829
/**
2930
* 删除
31+
*
3032
* @param name
3133
* @return
3234
*/

core/src/main/java/info/xiaomo/core/base/BaseModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @author : xiaomo
1616
* github: https://github.com/xiaomoinfo
1717
18-
18+
* <p>
1919
* Date: 2016/4/1 20:37
2020
* Copyright(©) 2015 by xiaomo.
2121
**/

core/src/main/java/info/xiaomo/core/base/Result.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @author : xiaomo
1212
* github: https://github.com/xiaomoinfo
1313
14-
14+
* <p>
1515
* Date: 2016/10/31 15:25
1616
* Description: 返回结果
1717
* Copyright(©) 2015 by xiaomo.

core/src/main/java/info/xiaomo/core/constant/FileConst.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ public enum FileConst {
152152
*/
153153
MF("4D616E69666573742D56"),
154154
/**
155-
*EXE Archive.
155+
* EXE Archive.
156156
*/
157157
EXE("4D5A9000030000000400"),
158158
/**
159-
*CHM Archive.
159+
* CHM Archive.
160160
*/
161161
CHM("49545346030000006000"),
162162
/*

core/src/main/java/info/xiaomo/core/constant/GenderConst.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @author : xiaomo
1010
* github: https://github.com/xiaomoinfo
1111
12-
12+
* <p>
1313
* Date: 2016/1/12 16:37
1414
* Description: 性别
1515
* Copyright(©) 2015 by xiaomo.

core/src/main/java/info/xiaomo/core/exception/UserNotFoundException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @author : xiaomo
1818
* github: https://github.com/xiaomoinfo
1919
20-
20+
* <p>
2121
* Date: 16/4/3 11:08
2222
* Description: 找不到用户异常
2323
* Copyright(©) 2015 by xiaomo.

core/src/main/java/info/xiaomo/core/filter/CorsFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @author : xiaomo
1616
* github: https://github.com/xiaomoinfo
1717
18-
18+
* <p>
1919
* Date: 2016/4/1516:25
2020
* Description:
2121
* Copyright(©) 2015 by xiaomo.

core/src/main/java/info/xiaomo/core/untils/AuthUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @author : xiaomo
1212
* github: https://github.com/xiaomoinfo
1313
14-
14+
* <p>
1515
* Date: 2016/11/31 9:50
1616
* Copyright(©) 2015 by xiaomo.
1717
**/

core/src/main/java/info/xiaomo/core/untils/CastUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @author : xiaomo
1616
* github: https://github.com/xiaomoinfo
1717
18-
18+
* <p>
1919
* Date: 2016/11/22 14:55
2020
* Copyright(©) 2015 by xiaomo.
2121
**/

core/src/main/java/info/xiaomo/core/untils/DownUtil.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
/**
1313
* @author : xiaomo (https://xiaomo.info) (https://github.com/xiaomoinfo)
14-
*
1514
* @created : 2016/12/26 13:25
1615
*/
1716
@Slf4j
@@ -64,10 +63,10 @@ public static void download(String urlString, String filePath) throws Exception
6463
// 输出的文件流
6564

6665
File output = new File(filePath);
67-
if (!output.exists()){
66+
if (!output.exists()) {
6867
boolean res = output.mkdir();
69-
if (res){
70-
log.debug("{} 目录创建成功", filePath);
68+
if (res) {
69+
log.debug("{} 目录创建成功", filePath);
7170
}
7271
}
7372

core/src/main/java/info/xiaomo/core/untils/HttpUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
/**
2424
* https 请求 微信为https的请求
25+
*
2526
* @author : xiaomo
2627
*/
2728
public class HttpUtil {

core/src/main/java/info/xiaomo/core/untils/MailUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @author : xiaomo
1818
* github: https://github.com/xiaomoinfo
1919
20-
20+
* <p>
2121
* Date: 2016/4/511:00
2222
* Description: 发送邮件
2323
* Copyright(©) 2015 by xiaomo.

core/src/main/java/info/xiaomo/core/untils/RandomUtil.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class RandomUtil {
2222
private static final Logger LOGGER = LoggerFactory.getLogger(RandomUtil.class);
2323
private static final String NUM_S = "0123456789";
2424
private static final String STR_S = "abcdefghijklmnopqrstuvwxyz0123456789";
25+
2526
/**
2627
* 随机产生min到max之间的一个整数值,包含min和max
2728
*/
@@ -153,7 +154,8 @@ public static int randomIndexByProb(int[] array) {
153154
}
154155

155156
/**
156-
* 生成盐值
157+
* 生成盐值
158+
*
157159
* @return
158160
*/
159161
public static String createSalt() {
@@ -163,6 +165,7 @@ public static String createSalt() {
163165

164166
/**
165167
* 生成盐值
168+
*
166169
* @param count
167170
* @return
168171
*/

core/src/main/java/info/xiaomo/core/untils/RegExUtil.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static String eregReplace(String pattern, String newstr, String str) thro
142142
* 主要用于模板中模块标记分析函数 把查找到的元素加到vector中
143143
*
144144
* @param pattern 为正则表达式模式
145-
* @param str 原始字串
145+
* @param str 原始字串
146146
* @return vector
147147
* @since 1.0
148148
*/
@@ -161,7 +161,7 @@ public static Vector<String> splitTags2Vector(String pattern, String str) throws
161161
* 功能主要是把查找到的元素加到vector中
162162
*
163163
* @param pattern 为正则表达式模式
164-
* @param str 原始字串
164+
* @param str 原始字串
165165
* @since 1.0
166166
*/
167167
public static String[] splitTags(String pattern, String str) {
@@ -181,7 +181,7 @@ public static String[] splitTags(String pattern, String str) {
181181
* 匹配所有符合模式要求的字串并加到矢量vector数组中
182182
*
183183
* @param pattern 为正则表达式模式
184-
* @param str 原始字串
184+
* @param str 原始字串
185185
* @return vector
186186
* @since 1.0
187187
*/
@@ -199,7 +199,7 @@ public static Vector<String> regMatchAll2Vector(String pattern, String str) thro
199199
* 匹配所有符合模式要求的字串并加到字符串数组中
200200
*
201201
* @param pattern 为正则表达式模式
202-
* @param str 原始字串
202+
* @param str 原始字串
203203
* @return array
204204
* @since 1.0
205205
*/
@@ -259,6 +259,6 @@ public static String fetchStr(String pattern, String str) {
259259

260260

261261
public static void main(String[] args) {
262-
System.out.println(ereg(ID_CARD,"420325199210211911"));
262+
System.out.println(ereg(ID_CARD, "420325199210211911"));
263263
}
264264
}

core/src/main/java/info/xiaomo/core/untils/SerializeUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @author : xiaomo
2020
* github: https://github.com/xiaomoinfo
2121
22-
22+
* <p>
2323
* Date: 15/9/6 16:05
2424
* Description: 序列化通用方法
2525
* Copyright(©) 2015 by xiaomo.

core/src/main/java/info/xiaomo/core/untils/SqlUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Today the best performance as tomorrow newest starter!
1212
* Created by IntelliJ IDEA.
1313
* <p>
14+
*
1415
* @author : xiaomo
1516
* github: https://github.com/syoubaku
1617

core/src/main/java/info/xiaomo/core/untils/StringUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ public static String gbk2big5code(String tempSql) {
321321

322322
/**
323323
* 替换非法字符
324+
*
324325
* @param input
325326
* @return
326327
*/
@@ -494,8 +495,7 @@ public static String replace(String strSrc, String strOld, String strNew) {
494495

495496
int i = 0;
496497
//避免新旧字符一样产生死循环
497-
if (strOld.equals(strNew))
498-
{
498+
if (strOld.equals(strNew)) {
499499
return strSrc;
500500
}
501501

core/src/main/java/info/xiaomo/core/untils/TimeUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
/**
2020
* 时间和日期的工具类
21+
*
2122
* @author : xiaomo
2223
*/
2324
public class TimeUtil {

core/src/main/java/info/xiaomo/core/untils/TokenUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/**
1010
* Token 帮助类
11+
*
1112
* @author : xiaomo
1213
*/
1314
public class TokenUtil {

crawler/src/main/java/info/xiaomo/crawler/CrawlerMain.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* Today the best performance as tomorrow newest starter!
1515
* Created by IntelliJ IDEA.
1616
* <p>
17+
*
1718
* @author : xiaomo
1819
* github: https://github.com/xiaomoinfo
1920

crawler/src/main/java/info/xiaomo/crawler/model/ShikigamiModel.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class ShikigamiModel extends BaseModel {
5454

5555

5656
/**
57-
* N/R/SR/SSR
57+
* N/R/SR/SSR
5858
*/
5959
private String level;
6060

@@ -65,5 +65,4 @@ public class ShikigamiModel extends BaseModel {
6565
private String des;
6666

6767

68-
6968
}

freemarker/src/main/java/info/xiaomo/freemarker/FreemarkerMain.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
5-
import org.springframework.boot.autoconfigure.SpringBootApplication;
65
import org.springframework.boot.autoconfigure.domain.EntityScan;
76
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
87
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
@@ -18,14 +17,14 @@
1817
* @author : xiaomo
1918
* github: https://github.com/xiaomoinfo
2019
21-
20+
* <p>
2221
* Date: 2016/4/1 15:38
2322
* Copyright(©) 2015 by xiaomo.
2423
**/
2524
@Configuration
2625
@ComponentScan("info.xiaomo")
2726
@EntityScan("info.xiaomo.*.model")
28-
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
27+
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
2928
public class FreemarkerMain {
3029

3130
public static void main(String[] args) throws Exception {

0 commit comments

Comments
 (0)