Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

合并原作者的更新 #1

Open
wants to merge 384 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
384 commits
Select commit Hold shift + click to select a range
ed3a7f4
Merge pull request #374 from LuciferYang/master
calvin1978 Jul 3, 2014
aeac04f
添加用于生成新项目的Bash脚本
diguage Aug 6, 2014
9666141
增加核心模块“安装”所用的Bash脚本
diguage Aug 6, 2014
ac68e69
增加QuickStart示例中所用脚本的Bash版
diguage Aug 6, 2014
00da05f
增加Showcase所用脚本的Bash版
diguage Aug 6, 2014
6c60374
fix generate project failed
kennedy-han Aug 17, 2014
d84df3b
REST默认返回JSON格式
jtraviss Aug 20, 2014
9b7d7f8
Merge pull request #385 from kennedy-han/master
calvin1978 Sep 12, 2014
40413d6
Merge pull request #381 from diguage/master
calvin1978 Sep 12, 2014
575b369
Merge pull request #371 from hzl7652/upstream
calvin1978 Sep 12, 2014
a61d406
metrics update
Sep 12, 2014
20d6438
Merge branch 'master' of https://github.com/springside/springside4
Sep 12, 2014
4f46cbd
Merge branch 'master' of https://github.com/springside/springside4
Sep 12, 2014
85f705e
#393 移动redis代码到独立模块
Sep 13, 2014
a98f360
#393 新的Connection定义及Pool
Sep 13, 2014
897aff8
#393 add race condition when pool init and switch
Sep 13, 2014
3848557
#393 move the elector and scheduler to new package
Sep 13, 2014
f3d8434
#393 补充JedisTemplate和JedisSharedTemplate的方法
Sep 13, 2014
6af30e2
#393 增加Pipeline内运行的回调函数接口
Sep 13, 2014
aaa0833
#393 rollback race condition,only wait for init
Sep 14, 2014
1c1764e
#393 增加sharding key接口,支持一个Action里访问多个Key
Sep 14, 2014
1418b7b
#393 rename
Sep 14, 2014
f80eec4
将Bash脚本加上统一的后缀,增加两个Bash脚本
diguage Sep 18, 2014
2efeed0
增加Bash脚本的Bangsha信息
diguage Sep 18, 2014
029690f
Merge remote-tracking branch 'origin/master'
Oct 7, 2014
4cf86e3
update version for release
Oct 7, 2014
6d17cdd
Merge remote-tracking branch 'origin/master'
Oct 7, 2014
41c0e80
Merge pull request #396 from diguage/master
calvin1978 Oct 7, 2014
bf0ad78
fix compile error
Oct 7, 2014
e7b68e4
Merge remote-tracking branch 'origin/master'
Oct 7, 2014
7ed5da0
Merge pull request #387 from jtraviss/master
calvin1978 Oct 7, 2014
558cd3c
Merge remote-tracking branch 'origin/master'
Oct 7, 2014
7bcb464
update generate-project file version
Oct 7, 2014
9fbb219
update archetype
Oct 7, 2014
93d4fbb
netxt version
Oct 11, 2014
4a63d82
分拆springside-core 为 springside-utils 和 springside-core, 新的example1将只依…
Oct 11, 2014
eb5018f
#394 开始加入Spring Boot的演示
Oct 11, 2014
1073c07
#394 update Spring Boot demo
Oct 11, 2014
429cdce
#394 update Spring Boot demo的测试方法
Oct 12, 2014
f1e9557
#394 one more spring boot example demo adavanced feature
Oct 15, 2014
7bf465f
metrics improvment
Nov 10, 2014
7aa9697
[metrics]fix lastRate & meanRate long/double problem
Nov 21, 2014
5e0ae65
[metrics]fix lastRate & meanRate long/double problem
Nov 21, 2014
16bb5da
[metrics]fix lastRate & meanRate long/double problem
Nov 21, 2014
4b20ccd
Merge pull request #422 from jenning/master
calvin1978 Nov 21, 2014
26d543b
fix testcase
Nov 21, 2014
da72edb
手工merge pull request里的更新
Nov 21, 2014
a4e6d46
ignore some GUI test to let showcase test pass
Nov 21, 2014
f1a4295
update JedisPoolBuilder
Nov 21, 2014
6f23955
Metrics-Lib update,补完JMX Exporter的活
Nov 21, 2014
eb12098
[metrics module] 一系列改进,包括一些重命名,JMXExporter更完善,锁的改进,排序的改进等
Nov 21, 2014
66940a0
small upgrde for sprnigside-metrics
Dec 11, 2014
6349135
prepare to upload springside modules to Maven central repository
Dec 11, 2014
e501181
minor updates
Dec 25, 2014
a01cd0b
minor updates
Dec 25, 2014
6a788aa
change groupId to io.springside and fix some 3pp version problem
Dec 25, 2014
df81d06
update boot-service to spring-boot 1.2.1 and more simple
calvin1978 Jan 8, 2015
e85be93
update maven version
calvin1978 Nov 6, 2015
5041e23
SpringSide 5.0 init
calvin1978 Nov 7, 2015
0ff3301
cleanup the code
calvin1978 Nov 7, 2015
a7562a8
整理showcase项目
calvin1978 Nov 7, 2015
32f01b9
修正用户认证部分
calvin1978 Nov 7, 2015
7ed9aa0
代码修理
calvin1978 Nov 7, 2015
86f31c3
完善功能测试流程
calvin1978 Nov 8, 2015
b95e6df
加上分页
calvin1978 Nov 8, 2015
2fbcc85
使用Cache Builder
calvin1978 Nov 8, 2015
163b6d9
增加UT
calvin1978 Nov 8, 2015
5488494
阅读Spring Boot手册,演示更多功能
calvin1978 Nov 8, 2015
551de3b
修正配置及初始化脚本
calvin1978 Nov 8, 2015
3fdd6fe
improve H2 console
calvin1978 Nov 8, 2015
defa5d8
改进演示方式
calvin1978 Nov 8, 2015
ef1717b
update README
calvin1978 Nov 8, 2015
4181576
change ReadMe to markdown
calvin1978 Nov 8, 2015
d76a72c
change ReadMe to markdown
calvin1978 Nov 8, 2015
45f0ebf
update README
calvin1978 Nov 8, 2015
9ff41d2
清理代码
calvin1978 Nov 8, 2015
e3651c3
加强测试演示
calvin1978 Nov 9, 2015
d66a0b2
使用flyway
calvin1978 Nov 9, 2015
16ca97b
Exception处理改进,使用Clock
calvin1978 Nov 10, 2015
06a23a7
增加crc32
calvin1978 Nov 10, 2015
62b3fce
update readme
calvin1978 Nov 10, 2015
ab60acf
update read me file
calvin1978 Nov 10, 2015
84c3aa4
change the mail box
calvin1978 Nov 11, 2015
75dd67e
整理代码,拆分sql演示flyway
calvin1978 Nov 11, 2015
7b1d204
加强异常检查,改进演示页面
calvin1978 Nov 11, 2015
f4cf2cd
改进异常处理
calvin1978 Nov 12, 2015
13555de
改进异常处理
calvin1978 Nov 14, 2015
4b7a491
Test case严格按方法名排序执行,并在console里打印测试进度。
calvin1978 Nov 14, 2015
16e96e6
消息摘要类加入crc32 和 murmurhash
calvin1978 Nov 14, 2015
b821bdd
改进异常处理
calvin1978 Nov 14, 2015
33768cd
showsql=true应改为showSql=true
calvin1978 Nov 14, 2015
2bd7790
让showcase项目可运行
calvin1978 Nov 14, 2015
8530a4f
增加ThreadLocalContext
calvin1978 Nov 28, 2015
1eb8ee4
add CharSets
calvin1978 Nov 28, 2015
10a1ea1
修改注释
calvin1978 Nov 28, 2015
9a54485
Digests的crc32增加返回Long的版本
calvin1978 Nov 28, 2015
d64cc3a
Collections补充函数
calvin1978 Nov 28, 2015
f038240
Add ConcurrentHashSet
calvin1978 Nov 28, 2015
54b011a
增加Numbers工具类
calvin1978 Nov 29, 2015
3345815
Collections 增加从原始类型数组转换为List的函数
calvin1978 Nov 29, 2015
bdb1cbd
Threads的shutdownNow直接使用Guava函数
calvin1978 Nov 29, 2015
4855390
Threads增加更多ThreadPool创建的方法
calvin1978 Nov 29, 2015
2534e26
独立的ThreadPoolBuilder,对比Executors提供更多配置项
calvin1978 Nov 29, 2015
4f846ae
update ThreadPoolBuilder document
calvin1978 Nov 29, 2015
57362ff
fix thread pools bug and add one more builder
calvin1978 Dec 7, 2015
50f76a2
添加StringBuilderHolder,可重用的StringBuilder(及其char[]),可配合ThreadLocal使用
calvin1978 Dec 7, 2015
dd613bc
#524 复活Metrics模块
calvin1978 Dec 29, 2016
1ebba4f
#524 增加使用示例
calvin1978 Dec 29, 2016
827bda4
#524 增加使用示例
calvin1978 Dec 29, 2016
0201d12
#524 增加使用示例
calvin1978 Dec 29, 2016
492d557
整理utils中的类
calvin1978 Dec 29, 2016
fd668c5
#524 复活Metrics模块,整理Slf4jReporter
calvin1978 Dec 29, 2016
2beb80f
#525 加强Threads相关Utils类,增加ThreadDummper,加强ThreadPoolBuilder
calvin1978 Dec 29, 2016
8d06bb0
#524 复活Metrics模块, 增加CachedGauge并增加演示示例。Mean改名为Avg。
calvin1978 Dec 29, 2016
4c66f33
#524 复活Metrics模块, JMXExporter进一步增强
calvin1978 Dec 29, 2016
eee6c77
#524 复活Metrics模块, 整理代码
calvin1978 Dec 29, 2016
10f6707
#524 复活Metrics模块, Histogram支持采样率
calvin1978 Dec 29, 2016
f61adf9
#524 复活Metrics模块, 加强并发控制
calvin1978 Dec 29, 2016
d0eb8bf
#524 复活Metrics模块, 加强并发控制
calvin1978 Dec 29, 2016
d7082df
#525 加强Utils Modules模块: Exceptions,Lists初步完成整理
calvin1978 Dec 30, 2016
d764a88
#526 升级示例到SpringBoot新版
calvin1978 Dec 30, 2016
86dbbd6
#525 加强Utils Modules模块: 早上的战果
calvin1978 Dec 31, 2016
041f58d
#525 加强Utils Modules模块: 下午的战果
calvin1978 Dec 31, 2016
998eeab
#525 加强Utils Modules模块: 傍晚的战果
calvin1978 Dec 31, 2016
4dfed10
#525 加强Utils Modules模块: 晚上的战果
calvin1978 Dec 31, 2016
4d0032f
#525 加强Utils Modules模块: 深夜的战果
calvin1978 Jan 1, 2017
b348057
#525 加强Utils Modules模块:更快的EnumMap, 先基于JDK1.7U80复制一份
calvin1978 Jan 1, 2017
d1fe61e
#525 加强Utils Modules模块:更改EnumMap
calvin1978 Jan 1, 2017
5147c5d
#525 加强Utils Modules模块:在JMH中,FastEnum无优势,去除
calvin1978 Jan 1, 2017
846dfc0
#525 加强Utils Modules模块:移植Netty的原子类型的HashMap,与其他几家相比,Netty此库胜在有在实际项目中使用
calvin1978 Jan 1, 2017
e06e3d1
#525 加强Utils Modules模块:移植ThreadLocalRandom,自动根据JDK版本进行适配
calvin1978 Jan 1, 2017
b553823
#525 加强Utils Modules模块:CachingDateFormatter 与 JSR166e实现
calvin1978 Jan 1, 2017
c38c608
#525 加强Utils Modules模块:Tomcat的可扩展线程池
calvin1978 Jan 1, 2017
de25810
#525 加强Utils Modules模块:Concurrent部分完成小目标
calvin1978 Jan 1, 2017
760af5a
#525 加强Utils Modules模块:IOUtils 部分
calvin1978 Jan 1, 2017
e20948f
#525 加强Utils Modules模块:完成Numbers 与 Properties
calvin1978 Jan 2, 2017
e9aa1c1
#525 加强Utils Modules模块:开始反射部分
calvin1978 Jan 2, 2017
b465154
加强注释
calvin1978 Jan 2, 2017
04acc44
fix Sonar
calvin1978 Jan 3, 2017
3caf428
#525 加强Utils Modules模块:简单加入JSONMapper 和 ObjectMapper
calvin1978 Jan 3, 2017
22f59fd
#525 加强Utils Modules模块:自家的Reflections更新
calvin1978 Jan 3, 2017
2adb651
#525 加强Utils Modules模块:Reflections更新,其他Nets, Strings 也开始更新
calvin1978 Jan 3, 2017
d9d1946
#525 加强Utils Modules模块:网络模块
calvin1978 Jan 3, 2017
be1afd9
#525 加强Utils Modules模块:晚上成果
calvin1978 Jan 3, 2017
44c64e7
#525 加强Utils Modules模块:rename
calvin1978 Jan 4, 2017
14b4f28
#525 加强Utils Modules模块:下午抽空的结果
calvin1978 Jan 4, 2017
6300305
#525 加强Utils Modules模块:取消Common-Codec的依赖
calvin1978 Jan 4, 2017
c63c537
#525 加强Utils Modules模块:晚上成果,RandomUtil, IOUtil
calvin1978 Jan 4, 2017
0a62578
#525 加强Utils Modules模块:拆分FileUtil
calvin1978 Jan 4, 2017
ffdba80
#525 加强Utils Modules模块:一天的成果,渐近尾声
calvin1978 Jan 6, 2017
97d67e0
#525 加强Utils Modules模块 JDK最小版本升级到1.7
calvin1978 Jan 6, 2017
b1b4d5a
#525 加强Utils Modules模块 开始补UT
calvin1978 Jan 6, 2017
3535eab
#525 加强Utils Modules模块 开始补UT
calvin1978 Jan 6, 2017
36cc9dd
#525 加强Utils Modules模块 开始补UT
calvin1978 Jan 9, 2017
65b9d43
Revert "#525 加强Utils Modules模块 JDK最小版本升级到1.7"
calvin1978 Jan 9, 2017
a0042c8
#525 加强Utils Modules模块 补UT过程中,同样增强日期类的实现
calvin1978 Jan 9, 2017
5b69e69
#525 加强Utils Modules模块 补UT过程中,同样增强日期类的实现
calvin1978 Jan 9, 2017
cac75b5
#525 加强Utils Modules模块 文本模块补UT
calvin1978 Jan 9, 2017
081da49
#525 加强Utils Modules模块 文本模块补UT完成
calvin1978 Jan 10, 2017
2caf3d7
fix sonar
calvin1978 Jan 10, 2017
694969a
#2 开始补UT,base目录的UT
calvin1978 Jan 10, 2017
d0da689
#2 开始补UT,base目录的UT
calvin1978 Jan 10, 2017
3d28d01
#525 加强Utils Modules模块 下午战果
calvin1978 Jan 11, 2017
7652a41
#525 加强Utils Modules模块 格式化代码及ListUtil增强
calvin1978 Jan 11, 2017
eaa1cc7
#2 加强Utils Modules模块 覆盖率继续提升
calvin1978 Jan 12, 2017
564347e
#525 加强Utils Modules模块 IO相关UT
calvin1978 Jan 12, 2017
d2e9e01
#525 加强Utils Modules模块 覆盖率继续提升
calvin1978 Jan 13, 2017
3541929
#525 加强Utils Modules模块 覆盖率继续提升
calvin1978 Jan 13, 2017
354a3ec
fix a bug
calvin1978 Jan 13, 2017
8c97567
从 http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166e/ …
calvin1978 Jan 13, 2017
2d844ec
RandomUtil 补全
calvin1978 Jan 13, 2017
229baa6
#2 加强Utils Modules模块 Random,Hash的性能优化等
calvin1978 Jan 14, 2017
831ce7d
#525 加强Utils Modules模块 下午的成果,BeanMapper加强,QueueUtil加强,ReflectionUtil加强
calvin1978 Jan 14, 2017
d236b0c
#525 加强Utils Modules模块 进一步测试
calvin1978 Jan 14, 2017
6ec31f0
#525 加强Utils Modules模块 进一步测试
calvin1978 Jan 14, 2017
5205b10
#525 加强Utils Modules模块 早上成果,加强集合
calvin1978 Jan 15, 2017
f2fbffe
#525 加强Utils Modules模块 傍晚成果,复活加密模块,添加Sampler,
calvin1978 Jan 15, 2017
8a2ec98
#525 加强Utils Modules模块 StringHolder 和 Dumper受OpenHFT改进
calvin1978 Jan 15, 2017
5223dc4
#525 加强Utils Modules模块 今天的小改进
calvin1978 Jan 16, 2017
2d4b8f2
使用Guava的Ordering,代替自己写的ComparatorUtil
calvin1978 Jan 16, 2017
4c430a8
更多使用Guava减少代码
calvin1978 Jan 16, 2017
3989e28
#525 加强Utils Modules模块 加入hikari的FastList,加强MathUtil
calvin1978 Jan 17, 2017
e1c96b0
#2 昨晚的成果 fix FastList在JDK7编译失败,继续基于Guava加强
calvin1978 Jan 17, 2017
49b3907
#2 Guava的集合与Hash能力再挖掘
calvin1978 Jan 17, 2017
35f6cb3
#2 反射类大调整,参考guava的思路调整API
calvin1978 Jan 17, 2017
6e53489
#2 小更新
calvin1978 Jan 17, 2017
405e998
fix
calvin1978 Jan 18, 2017
8bfa13a
#525 引入RateLimitedSlf4jLogger 和 UnitConverter,Murmursh的封装修正,BooleanUt…
calvin1978 Jan 18, 2017
78ccd86
#525 小方法引入
calvin1978 Jan 18, 2017
15d061c
拆分ThreadUtil 与 ThreadPoolUtil
calvin1978 Jan 18, 2017
2443796
fix typo
c-cho Jan 19, 2017
a227c06
fix UT
calvin1978 Jan 19, 2017
d561312
#525 UT and Sonar
calvin1978 Jan 19, 2017
576a6a8
Update FilePathUtilTest.java
Jan 19, 2017
e1abb85
Merge pull request #533 from c-cho/patch-1
calvin1978 Jan 19, 2017
44405aa
Merge pull request #536 from wolf8334/patch-1
calvin1978 Jan 19, 2017
169d5b6
提升UT,手工合并一些pull request
calvin1978 Jan 19, 2017
0cfccda
加强UT
calvin1978 Jan 19, 2017
3c74dfc
rename
calvin1978 Jan 20, 2017
c251b81
fix
calvin1978 Jan 20, 2017
cc823c4
prepare for release
calvin1978 Jan 20, 2017
4a151be
prepare for release
calvin1978 Jan 20, 2017
ec2c496
try release BETA-1
calvin1978 Jan 20, 2017
a7882db
先取消未经JMH验证的FastList
calvin1978 Jan 20, 2017
3e8feaf
#2 加入Commons Collections中有用的类,使用本类时需自行添加Commons Collections依赖
calvin1978 Jan 20, 2017
ea32bbd
#525 升级Jackson版本
calvin1978 Jan 20, 2017
822b71d
#525 增加ThreadUtil.getCallerMethod(),FilePathUtil.getJarFile(Class), 大…
calvin1978 Jan 20, 2017
bc07e25
#525 修正JSR166e某些类用了JDK7才有的依赖。
calvin1978 Jan 20, 2017
b101a9f
增加Travis自动测试
calvin1978 Jan 20, 2017
9390a66
fix UT
calvin1978 Jan 20, 2017
787a85f
不能用JDK6编译
calvin1978 Jan 20, 2017
27dfe64
use jdk7 compile and run on JDK6,7,8
calvin1978 Jan 20, 2017
b8e43f5
jdk6,8不要编译
calvin1978 Jan 20, 2017
b7d2618
assertJ 不支持JDK6,先忽略
calvin1978 Jan 20, 2017
6c65226
再次尝试JDK1.6
calvin1978 Jan 20, 2017
f9f9936
放弃JDK6支持
calvin1978 Jan 20, 2017
cabc2b8
update logo
calvin1978 Jan 20, 2017
5867572
update README
calvin1978 Jan 20, 2017
157905e
use jdk7 to run JDK8
calvin1978 Jan 20, 2017
684f28d
#539 JDK依赖改为JDK7.0+
calvin1978 Jan 21, 2017
c9d5160
just some cleanup
calvin1978 Jan 21, 2017
ae15c9f
#539 DateUtii 增加beginOf/Next Year, Month,Wek Date,Hour,Minutes函数,日期改为…
calvin1978 Jan 21, 2017
b78c589
#539 DateUtii 增加endOf Year, Month,Wek Date,Hour,Minutes函数
calvin1978 Jan 21, 2017
72e1e8f
#539 捕捉线程运行时的异常,防止跑飞的Runnable改名为SafeRunnable
calvin1978 Jan 21, 2017
1196602
#525 目录调整
calvin1978 Jan 21, 2017
3222805
#525 1.增加通配符匹配,对字符串可用通配符匹配,2.文件搜索可用AntPath,通配符,正则表达式匹配 3.FilePathUt…
calvin1978 Jan 23, 2017
4d7fd03
#525 FileUtil的测试用例改进及bug修复
calvin1978 Jan 23, 2017
07e8765
提高覆盖率
calvin1978 Jan 23, 2017
429f37b
[PULL REQUEST] 六翼天使的提交,关于ListUtil
calvin1978 Jan 23, 2017
457b1ae
remove useless hashfunction
calvin1978 Jan 23, 2017
6eadd01
format code
calvin1978 Jan 24, 2017
8079272
#525 URLResouceUtil加强
calvin1978 Jan 24, 2017
c09cd02
fix UT
calvin1978 Jan 24, 2017
9709310
Prepare for 5.0.0 -RC1
calvin1978 Jan 24, 2017
d91067a
根据OSS指南,重写release pom file
calvin1978 Jan 24, 2017
91b06f4
Update ClassUtil.java
rason Feb 10, 2017
b64f648
Merge pull request #544 from rason/master
calvin1978 Feb 15, 2017
5c15e89
修复错别字
alwaysc Mar 10, 2017
204bf12
Merge pull request #1 from alwaysc/alwaysc-patch-1
alwaysc Mar 10, 2017
58da335
Merge pull request #552 from alwaysc/master
calvin1978 Mar 29, 2017
60b0557
Improvement:
calvin1978 Dec 28, 2017
47c633a
最后一次更新springdie utils,后续更新将在vip下开源
calvin1978 Jan 25, 2018
84c4567
Update README.md
calvin1978 Jun 6, 2018
1be5c1e
Update README.md
calvin1978 Jun 6, 2018
cda2253
Create README.md
calvin1978 Jun 6, 2018
8719eed
恢复jsonMapper 与 XmlMapper
calvin1978 Aug 7, 2018
f69b80b
恢复jsonMapper 与 XmlMapper
calvin1978 Aug 7, 2018
eb4fd21
Fix Case
calvin1978 Aug 7, 2018
2bbd3fd
Fix Case
calvin1978 Aug 7, 2018
8950746
FixCase
calvin1978 Aug 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 14 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
# Eclipse project files
.classpath
.project
.settings/


# Intellij project files
*.iml
.idea/

# Others
target/
logs/
/examples/showcase/bin/yuicompressor-2.4.*.jar
/support/jmeter/*.jtl
/support/jmeter/*.log
/support/local-script/
# Eclipse project files
.classpath
.project
.settings/


# Intellij project files
*.iml
.idea/

# Others
target/
logs/
modules/utils副本
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
language: java
jdk:
- oraclejdk8
- openjdk7
install: true
script:
- mvn test
- mvn test -Pfunctional-test -Dselenium.driver=firefox
env: MAVEN_OPTS="-XX:MaxPermSize=128m"
addons:
firefox: "22.0"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "cd modules;mvn clean test"
- "mvn clean test"
- "mvn clean package -Dmaven.test.skip=true"

branches:
only:
- master
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
### 最新开源: [VJTools-唯品会Java核心项目](https://github.com/vipshop/vjtools)

# SpringSide

[![Build Status](https://api.travis-ci.org/springside/springside4.png?branch=master)](https://travis-ci.org/springside/springside4/)

SpringSide是以Spring Framework为核心的,Pragmatic风格的JavaEE应用参考示例,是JavaEE世界中的主流技术选型,最佳实践的总结与演示。

1. Utils - 性能与易用性兼顾的Java基础库,综合各门各派的大成之作(近期重点).
2. BootApi - 基于Spring Boot的Web Service应用, 可以用于SOA服务,或Ajax页面的后台.
3. BootWeb - 基于Spring Boot的Web应用, 典型的增删改查管理(未开始).
4. Showcase - 更多的示例.


## 主要用例

全部示例以一个P2P图书馆展开,P2P图书馆避免了中央式图书馆所需的场地和图书管理员,大家把图书登记在应用里互相借阅。

## 快速开始 (JDK7.0+)

1. 运行根目录下的quick-start.sh 或 quick-start.bat
* 将modules安装到本地maven仓库
* 以开发模式启动BootApi应用

2. 访问 http://localhost:8080/,按上面的提示体验。


-------------------------------
Offical Site: http://springside.io(域名过期)

Document: https://github.com/springside/springside4/wiki
12 changes: 0 additions & 12 deletions README.txt

This file was deleted.

136 changes: 136 additions & 0 deletions examples/boot-api/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>io.springside.examples</groupId>
<artifactId>boot-api</artifactId>
<version>5.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>Springside :: Examples :: SpringBoot WebService</name>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.3.RELEASE</version>
</parent>

<properties>
<springside.version>5.0.0-SNAPSHOT</springside.version>
<commons-lang3.version>3.5</commons-lang3.version>
<guava.version>20.0</guava.version>
<orika.version>1.5.0</orika.version>

<java.version>1.7</java.version>
</properties>

<dependencies>
<!-- spring boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>


<!-- springside -->
<dependency>
<groupId>io.springside</groupId>
<artifactId>springside-utils</artifactId>
<version>${springside.version}</version>
</dependency>

<dependency>
<groupId>io.springside</groupId>
<artifactId>springside-core</artifactId>
<version>${springside.version}</version>
</dependency>

<!-- database -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>

<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>

<!-- utils -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>ma.glasnost.orika</groupId>
<artifactId>orika-core</artifactId>
<version>${orika.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>

<!-- jmx -->
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-core</artifactId>
</dependency>

<!-- test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.springside</groupId>
<artifactId>springside-utils</artifactId>
<version>${springside.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>${flyway.version}</version>
<configuration>
<driver>org.h2.Driver</driver>
<url>jdbc:h2:file:~/.h2/bootapi;AUTO_SERVER=TRUE;DB_CLOSE_DELAY=-1;</url>
<user>sa</user>
<password></password>
</configuration>
</plugin>
</plugins>
</build>
</project>
5 changes: 5 additions & 0 deletions examples/boot-api/refresh-db.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

echo "cleanup the production/qa db,just for demo"

mvn flyway:clean
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package org.springside.examples.bootapi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

// SpringBoot 应用标识
@SpringBootApplication
public class BootApiApplication {

/**
* 启动嵌入式的Tomcat并初始化Spring环境.
*
* 无 applicationContext.xml 和 web.xml, 靠下述方式进行配置:
*
* 1. 扫描当前package下的class设置自动注入的Bean<br/>
* 2. 也支持用@Bean标注的类配置Bean <br/>
* 3. 根据classpath中的三方包Class及集中的application.properties条件配置三方包,如线程池 <br/>
* 4. 也支持用@Configuration标注的类配置三方包.
*/
public static void main(String[] args) throws Exception {
SpringApplication.run(BootApiApplication.class, args);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package org.springside.examples.bootapi.api;

import java.util.Collections;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springside.examples.bootapi.service.AccountService;
import org.springside.examples.bootapi.service.exception.ErrorCode;
import org.springside.examples.bootapi.service.exception.ServiceException;
import org.springside.modules.web.MediaTypes;

// Spring Restful MVC Controller的标识, 直接输出内容,不调用template引擎.
@RestController
public class AccountEndPoint {

private static Logger logger = LoggerFactory.getLogger(AccountEndPoint.class);

@Autowired
private AccountService accountService;

@RequestMapping(value = "/api/accounts/login", produces = MediaTypes.JSON_UTF_8)
public Map<String, String> login(@RequestParam("email") String email, @RequestParam("password") String password) {

if (StringUtils.isEmpty(email) || StringUtils.isEmpty(password)) {
throw new ServiceException("User or password empty", ErrorCode.BAD_REQUEST);
}

String token = accountService.login(email, password);

return Collections.singletonMap("token", token);
}

@RequestMapping(value = "/api/accounts/logout")
public void logout(@RequestParam(value = "token", required = false) String token) {
accountService.logout(token);
}

@RequestMapping(value = "/api/accounts/register")
public void register(@RequestParam("email") String email,
@RequestParam(value = "name", required = false) String name, @RequestParam("password") String password) {

if (StringUtils.isEmpty(email) || StringUtils.isEmpty(name) || StringUtils.isEmpty(password)) {
throw new ServiceException("User or name or password empty", ErrorCode.BAD_REQUEST);
}

accountService.register(email, name, password);
}
}
Loading