File tree Expand file tree Collapse file tree 11 files changed +20
-27
lines changed
SpringBootDemo/src/main/java/com/xiaour/spring/boot Expand file tree Collapse file tree 11 files changed +20
-27
lines changed Original file line number Diff line number Diff line change 1
- package com .tony .spring .boot ;
1
+ package com .xiaour .spring .boot ;
2
2
3
3
import org .mybatis .spring .annotation .MapperScan ;
4
4
import org .mybatis .spring .boot .autoconfigure .MybatisAutoConfiguration ;
17
17
@ SpringBootApplication (exclude = MybatisAutoConfiguration .class )
18
18
@ ServletComponentScan
19
19
@ EnableAutoConfiguration
20
- @ MapperScan ("com.tony .spring.boot.mapper" )
20
+ @ MapperScan ("com.xiaour .spring.boot.mapper" )
21
21
public class Application extends SpringBootServletInitializer implements EmbeddedServletContainerCustomizer {
22
22
23
23
@ Value ("${server.port}" )
Original file line number Diff line number Diff line change 1
- package com .tony .spring .boot .config ;
1
+ package com .xiaour .spring .boot .config ;
2
2
3
3
import java .sql .SQLException ;
4
4
@@ -33,7 +33,6 @@ public void setEnvironment(Environment env) {
33
33
34
34
/**
35
35
* 配置数据源
36
- * @Description TODO
37
36
* @return
38
37
*/
39
38
@ Bean (name = "dataSource" ,destroyMethod = "close" )
Original file line number Diff line number Diff line change 1
- package com .tony .spring .boot .config ;
1
+ package com .xiaour .spring .boot .config ;
2
2
3
3
import javax .annotation .Resource ;
4
4
import javax .persistence .EntityManager ;
23
23
24
24
/**
25
25
* 初始化SqlSessionFactory
26
- * Java Lib For OIS, Powered By BeiJing FanTongTianXia.
27
- * Copyright (c) 2014-2017 FanTongTianXia Co.,Ltd
28
- * http://www.chifaner.com/
26
+ * Java Lib For OIS, Powered By xiaour.
29
27
*
30
28
* @ClassName MybatisConfiguration
31
29
* @author Zhang.Tao
@@ -51,7 +49,6 @@ public void setEnvironment(Environment environment) {
51
49
52
50
/**
53
51
* 初始化SessionFactory
54
- * @Description TODO
55
52
* @return
56
53
*/
57
54
@ Bean
Original file line number Diff line number Diff line change 1
- package com .tony .spring .boot .config ;
1
+ package com .xiaour .spring .boot .config ;
2
2
3
3
import org .springframework .beans .factory .annotation .Autowired ;
4
4
import org .springframework .beans .factory .annotation .Qualifier ;
11
11
12
12
/**
13
13
* 配置redis数据源
14
- * Java Lib For OIS, Powered By BeiJing FanTongTianXia.
15
- * Copyright (c) 2014-2017 FanTongTianXia Co.,Ltd
16
- * http://www.chifaner.com/
17
- *
14
+ * Java Lib For OIS, Powered By xiaour.
18
15
* @ClassName RedisConfig
19
16
* @author Zhang.Tao
20
17
* @Date 2017年4月24日 下午5:25:30
Original file line number Diff line number Diff line change 1
- package com .tony .spring .boot .controller ;
1
+ package com .xiaour .spring .boot .controller ;
2
2
3
3
import org .springframework .beans .factory .annotation .Autowired ;
4
4
import org .springframework .web .bind .annotation .PathVariable ;
5
5
import org .springframework .web .bind .annotation .RequestMapping ;
6
6
import org .springframework .web .bind .annotation .RestController ;
7
7
8
- import com .tony .spring .boot .entity .UserInfo ;
9
- import com .tony .spring .boot .mapper .UserInfoMapper ;
10
- import com .tony .spring .boot .utils .JsonUtil ;
11
- import com .tony .spring .boot .utils .RedisUtil ;
8
+ import com .xiaour .spring .boot .entity .UserInfo ;
9
+ import com .xiaour .spring .boot .mapper .UserInfoMapper ;
10
+ import com .xiaour .spring .boot .utils .JsonUtil ;
11
+ import com .xiaour .spring .boot .utils .RedisUtil ;
12
12
13
13
/**
14
- * Created by Administrator on 2017/4/19.
14
+ * Created by xiaour on 2017/4/19.
15
15
*/
16
16
@ RestController
17
17
@ RequestMapping (value ="/test" )
Original file line number Diff line number Diff line change 1
- package com .tony .spring .boot .entity ;
1
+ package com .xiaour .spring .boot .entity ;
2
2
3
3
import java .util .Date ;
4
4
Original file line number Diff line number Diff line change 1
- package com .tony .spring .boot .filter ;
1
+ package com .xiaour .spring .boot .filter ;
2
2
3
3
import java .io .IOException ;
4
4
15
15
import org .springframework .boot .context .properties .ConfigurationProperties ;
16
16
17
17
/**
18
- * Created by Administrator on 2017/4/19.
18
+ * Created by xiaour on 2017/4/19.
19
19
*/
20
20
21
21
@ ConfigurationProperties ("cacheServer" )
Original file line number Diff line number Diff line change 1
- package com .tony .spring .boot .mapper ;
1
+ package com .xiaour .spring .boot .mapper ;
2
2
3
- import com .tony .spring .boot .entity .UserInfo ;
3
+ import com .xiaour .spring .boot .entity .UserInfo ;
4
4
5
5
public interface UserInfoMapper {
6
6
int deleteByPrimaryKey (Integer oid );
File renamed without changes.
Original file line number Diff line number Diff line change 1
- package com .tony .spring .boot .utils ;
1
+ package com .xiaour .spring .boot .utils ;
2
2
3
3
import java .io .IOException ;
4
4
import java .util .HashMap ;
Original file line number Diff line number Diff line change 1
- package com .tony .spring .boot .utils ;
1
+ package com .xiaour .spring .boot .utils ;
2
2
3
3
import org .springframework .beans .factory .annotation .Autowired ;
4
4
import org .springframework .stereotype .Component ;
You can’t perform that action at this time.
0 commit comments