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
* email: xiaomo@xiaomo.info
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
* email: xiaomo@xiaomo.info
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
* email: xiaomo@xiaomo.info
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
* email: xiaomo@xiaomo.info
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
* email: xiaomo@xiaomo.info
12-
12+
* <p>
1313
* Date: 2016/1/12 16:37
1414
* Description: 性别
1515
* Copyright(©) 2015 by xiaomo.

0 commit comments

Comments
 (0)