getTeacherByIdCustomSQL(String id) {
138 | return teacherMapperCustom.getTeacherById(id);
139 | }
140 | }
141 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/java/com/itzixi/utils/AsyncTask.java:
--------------------------------------------------------------------------------
1 | package com.itzixi.utils;
2 |
3 | import lombok.extern.slf4j.Slf4j;
4 | import org.springframework.scheduling.annotation.Async;
5 | import org.springframework.scheduling.annotation.EnableAsync;
6 | import org.springframework.stereotype.Component;
7 |
8 | @Component
9 | @EnableAsync
10 | @Slf4j
11 | public class AsyncTask {
12 |
13 | @Async
14 | public void doMyTask() {
15 | // 处理异步执行的业务
16 | try {
17 | Thread.sleep(5000);
18 | log.info("异步任务执行完毕~~");
19 | } catch (InterruptedException e) {
20 | e.printStackTrace();
21 | }
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/java/com/itzixi/utils/JSONResult.java:
--------------------------------------------------------------------------------
1 | package com.itzixi.utils;
2 |
3 | /**
4 | *
5 | * @Title: JSONResult.java
6 | * @Package com.itzixi.utils
7 | * @Description: 自定义响应数据结构
8 | * 本类可提供给 H5/ios/安卓/公众号/小程序 使用
9 | * 前端接受此类数据(json object)后,可自行根据业务去实现相关功能
10 | * 200:表示成功
11 | * 500:表示错误,错误信息在msg字段中
12 | * 501:bean验证错误,不管多少个错误都以map形式返回
13 | * 502:拦截器拦截到用户token出错
14 | * 555:异常抛出信息
15 | * 556: 用户qq校验异常
16 | * 557: 校验用户是否在CAS登录,用户门票的校验
17 | * @Copyright: Copyright (c) 2020
18 | */
19 | public class JSONResult {
20 |
21 | // 响应业务状态
22 | private Integer status;
23 |
24 | // 响应消息
25 | private String msg;
26 |
27 | // 响应中的数据
28 | private Object data;
29 |
30 | private String ok; // 不使用
31 |
32 | public static JSONResult build(Integer status, String msg, Object data) {
33 | return new JSONResult(status, msg, data);
34 | }
35 |
36 | public static JSONResult build(Integer status, String msg, Object data, String ok) {
37 | return new JSONResult(status, msg, data, ok);
38 | }
39 |
40 | public static JSONResult ok(Object data) {
41 | return new JSONResult(data);
42 | }
43 |
44 | public static JSONResult ok() {
45 | return new JSONResult(null);
46 | }
47 |
48 | public static JSONResult errorMsg(String msg) {
49 | return new JSONResult(500, msg, null);
50 | }
51 |
52 | public static JSONResult errorUserTicket(String msg) {
53 | return new JSONResult(557, msg, null);
54 | }
55 |
56 | public static JSONResult errorMap(Object data) {
57 | return new JSONResult(501, "error", data);
58 | }
59 |
60 | public static JSONResult errorTokenMsg(String msg) {
61 | return new JSONResult(502, msg, null);
62 | }
63 |
64 | public static JSONResult errorException(String msg) {
65 | return new JSONResult(555, msg, null);
66 | }
67 |
68 | public static JSONResult errorUserQQ(String msg) {
69 | return new JSONResult(556, msg, null);
70 | }
71 |
72 | public JSONResult() {
73 |
74 | }
75 |
76 | public JSONResult(Integer status, String msg, Object data) {
77 | this.status = status;
78 | this.msg = msg;
79 | this.data = data;
80 | }
81 |
82 | public JSONResult(Integer status, String msg, Object data, String ok) {
83 | this.status = status;
84 | this.msg = msg;
85 | this.data = data;
86 | this.ok = ok;
87 | }
88 |
89 | public JSONResult(Object data) {
90 | this.status = 200;
91 | this.msg = "OK";
92 | this.data = data;
93 | }
94 |
95 | public Boolean isOK() {
96 | return this.status == 200;
97 | }
98 |
99 | public Integer getStatus() {
100 | return status;
101 | }
102 |
103 | public void setStatus(Integer status) {
104 | this.status = status;
105 | }
106 |
107 | public String getMsg() {
108 | return msg;
109 | }
110 |
111 | public void setMsg(String msg) {
112 | this.msg = msg;
113 | }
114 |
115 | public Object getData() {
116 | return data;
117 | }
118 |
119 | public void setData(Object data) {
120 | this.data = data;
121 | }
122 |
123 | public String getOk() {
124 | return ok;
125 | }
126 |
127 | public void setOk(String ok) {
128 | this.ok = ok;
129 | }
130 |
131 | }
132 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/java/com/itzixi/utils/MyTask.java:
--------------------------------------------------------------------------------
1 | package com.itzixi.utils;
2 |
3 | import lombok.extern.slf4j.Slf4j;
4 | import org.springframework.scheduling.annotation.Scheduled;
5 |
6 | import java.time.LocalDateTime;
7 |
8 | //@Configuration // 1. 标记配置类,放入到springboot容器中
9 | //@EnableScheduling // 2. 开启定时任务的注解
10 | @Slf4j
11 | public class MyTask {
12 |
13 | // 3. 添加定时任务,注明定时任务的表达式
14 | @Scheduled(cron = "*/5 * * * * ?")
15 | public void displayMyTask() {
16 | log.info("当前正在执行定时任务,当前的时间为:" + LocalDateTime.now());
17 | }
18 |
19 | // 常用的定时任务表达式:
20 | // 每隔5秒执行一次:*/5 * * * * ?
21 | // 每隔1分钟执行一次:0 */1 * * * ?
22 | // 每天23点执行一次:0 0 23 * * ?
23 | // 每天凌晨1点执行一次:0 0 1 * * ?
24 | // 每月1号凌晨1点执行一次:0 0 1 1 * ?
25 | // 每月最后一天23点执行一次:0 0 23 L * ?
26 | // 每周星期天凌晨1点实行一次:0 0 1 ? * L
27 | // 在26分、29分、33分执行一次:0 26,29,33 * * * ?
28 | // 每天的0点、13点、18点、21点都执行一次:0 0 0,13,18,21 * * ?
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/src/main/resources/.DS_Store
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/UserConfig.properties:
--------------------------------------------------------------------------------
1 | user.name=lee
2 | user.age=18
3 | user.sex=\u7537
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/application-dev.yml:
--------------------------------------------------------------------------------
1 | server:
2 | port: 8099
3 |
4 | # 整合mybatis
5 | mybatis:
6 | configuration:
7 | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 开启mybatis的日志实现,可以在控制台打印sql的输出
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/application-test.yml:
--------------------------------------------------------------------------------
1 | server:
2 | port: 8088
3 |
4 |
5 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/application.properties-backup:
--------------------------------------------------------------------------------
1 | server.port=8088
2 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | #server:
2 | # port: 8099
3 |
4 | self:
5 | custom:
6 | config:
7 | requestUrl: http://www.itzixi.com
8 | sdkSecret: abc123
9 | values: ${server.port} 是我当前的tomcat服务器的端口号
10 |
11 | spring:
12 | banner:
13 | location: classpath:banner/banner.txt
14 | servlet:
15 | multipart:
16 | max-file-size: 500KB # 文件上传大小限制,设置最大值,不能超过该值,否则报错
17 | max-request-size: 2MB # 文件最大请求限制,用于批量上传
18 | datasource: # 数据源的相关配置
19 | type: com.zaxxer.hikari.HikariDataSource # 数据源的类型,可以更改为其他的数据源配置,比如druid
20 | # type: com.alibaba.druid.pool.DruidDataSource # 配置自定义的数据源:阿里druid
21 | driver-class-name: com.mysql.jdbc.Driver # mysql/MariaDB 的数据库驱动类名称
22 | url: jdbc:mysql://localhost:3306/springboot-learn?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
23 | username: root
24 | password: root
25 | hikari:
26 | connection-timeout: 30000 # 等待连接池分配连接的最大时间(毫秒),超过这个时长还没有可用的连接,则会抛出SQLException
27 | minimum-idle: 5 # 最小连接数
28 | maximum-pool-size: 20 # 最大连接数
29 | auto-commit: true # 自动提交
30 | idle-timeout: 600000 # 连接超时的最大时长(毫秒),超时则会被释放(retired)
31 | pool-name: DataSourceHikariCP # 连接池的名字
32 | max-lifetime: 18000000 # 连接池的最大生命时长(毫秒),超时则会被释放(retired)
33 | connection-test-query: SELECT 1
34 | freemarker:
35 | template-loader-path: classpath:/templates/ftl/
36 | suffix: .ftl
37 | thymeleaf:
38 | prefix: classpath:/templates/html/
39 | suffix: .html
40 | profiles:
41 | active: dev # dev:开发环境;test:测试环境;prod:生产环境;pre:预发布
42 |
43 | # 整合mybatis
44 | mybatis:
45 | type-aliases-package: com.itzixi.pojo # 所有pojo类所在的包路径
46 | mapper-locations: classpath:mapper/*.xml # mapper映射文件
47 | # configuration:
48 | # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 开启mybatis的日志实现,可以在控制台打印sql的输出
49 |
50 | # 通用mapper工具的配置
51 | mapper:
52 | mappers: com.itzixi.my.mapper.MyMapper # 配置MyMapper,包含了一些封装好的CRUD方法
53 | not-empty: false # 在进行数据库操作的时候,username != null 是否会追加 username != ''
54 | identity: MYSQL
55 |
56 | # 分页插件助手的配置
57 | pagehelper:
58 | helper-dialect: MYSQL
59 | support-methods-arguments: true
60 |
61 | logging:
62 | level:
63 | root: info
64 |
65 | # 监控节点(端点)的配置
66 | management:
67 | endpoints:
68 | enabled-by-default: true # 默认开启监控节点
69 | web:
70 | exposure:
71 | include: '*' # 可以在web端开启所以监控节点
72 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/banner/banner.txt:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////
2 | // _ooOoo_ //
3 | // o8888888o //
4 | // 88" . "88 //
5 | // (| ^_^ |) //
6 | // O\ = /O //
7 | // ____/`---'\____ //
8 | // .' \\| |// `. //
9 | // / \\||| : |||// \ //
10 | // / _||||| -:- |||||- \ //
11 | // | | \\\ - /// | | //
12 | // | \_| ''\---/'' | | //
13 | // \ .-\__ `-` ___/-. / //
14 | // ___`. .' /--.--\ `. . ___ //
15 | // ."" '< `.___\_<|>_/___.' >'"". //
16 | // | | : `- \`.;`\ _ /`;.`/ - ` : | | //
17 | // \ \ `-. \_ __\ /__ _/ .-` / / //
18 | // ========`-.____`-.___\_____/___.-`____.-'======== //
19 | // `=---=' //
20 | // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
21 | // 佛祖保佑 永无BUG 永不修改 //
22 | ////////////////////////////////////////////////////////////////////
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/banner/cat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/src/main/resources/banner/cat.png
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/banner/qiaoba.txt:
--------------------------------------------------------------------------------
1 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
2 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
3 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
4 | ttttttttttttttttttttttttttttttttjtttjttjjtjW#Li;;ijE#Ettttjttjjjtttttttttttttttttttttttttttttttttttt
5 | ttttttttttttttttttttttttttttjtttLGtWtttt#i;itttttttjti;tWtttjWtDEjtttttttttttttttttttttttttttttttttt
6 | tttttttttttttttttttttttttttjjjttfjLjWtEjjtjtjttttttjjtjttLWt;jEjjttttttttttttttttttttttttttttttttttt
7 | ttttttttttttttttttttttttttDf;tjt;jWjjfLtttttttttttttttttttLDjjjjEtjj#ELttttttttttttttttttttttttttttt
8 | tttttttttttttttttttttttt#DjGjfjtjjtjjfLttttttttttttttttttjL#jjjjtttjtfLGfjtttttttttttttttttttttttttt
9 | tttttttttttttttttttttttttjfLjGttWjjjjLLtttttttttttttttttttLEjjjjjtttjjjjDjtttttttttttttttttttttttttt
10 | tttttttttttttttttttttttttjjjjDttLjjjjLLttttttttttttttttttjLLjLjjjttijjjjLjtttttttttttttttttttttttttt
11 | tttttttttttttttttttttttttjjjjjtttjjjfLLtttttttWEttf jtttttLDjLjjjjttEjfjLttttttttttttttttttttttttttt
12 | ttttttttttttttttttttttttijjjjjtjDjjjjLLjttttjG GL :jttttLWjjjjttKjWjKjKttttttttttttttttttttttttttt
13 | ttttttttttttttttttttttttijjjWjGjfjLjjLLjttttt,. ftttjLGjjtttj;jjj#jKjtttttttttttttttttttttttttt
14 | ttttttttttttttttttttttttEj#ffjjjfjjjWfLfjtttttf KtttttfLL;jjffjjLjjjjjttttttttttttttttttttttttttt
15 | tttttttttttttttttttttttttjjtjjjjjfLj#fLftttttjf tttttLLL#fjfjjjfjKjfttjttttttttttttttttttttttttt
16 | tttttttttttttttttttttttttDjjjjjjLjGj#LLLttttjD . . .jtttLLLWGGffjjjGjtjtttttttttttttttttttttttttttt
17 | tttttttttttttttttttttttttj;jjjjGLLDt#LLLtjjtjK Ej jtttLLLWjKLLLjjjjWttttttttttttttttttttttttttttt
18 | tttttttttttttttttttttttttttjGLLLLLLWKGLLttjtEWL;;;fKKjtttfWEWDLfLLLGWttttttttttttttttttttttttttttttt
19 | ttttttttttttttttttttttttttttttttfLLLfLGLD,,;ttjtttttti;;#LGLLLL#jttttttttttttttttttttttttttttttttttt
20 | tttttttttttttttttttttttttttttttttD::.#G;;jtjjjtttttjjtjtti;W:,:Wtttttttttttttttttttttttttttttttttttt
21 | ttttttttttttttttttttttttttttttttt;EjW,jtjjjjttjjttjtjtjjjjtj,Lj;jttttttttttttttttttttttttttttttttttt
22 | tttttttttttttttttttttttttttttttttE;;tjjtjjjKLLLLLLLLLGKjtjtjLLiWjttttttttttttttttttttttttttttttttttt
23 | tttttttttttttttttttttttttttttttttf,tjjttWLLLfLLLLLLLLfLfLKjtLLLfjttttttttttttttttttttttttttttttttttt
24 | ttttttttttttttttttttttttttttttttj,jjttEfLLLLLLLLLLLLLLLLLLLELLLLLttttttttttttttttttttttttttttttttttt
25 | tttttttttttttttttttttttttttttttjittjtfLLLLLLLLfDEKDLfLfLfLfLLfLLLWtttttttttttttttttttttttttttttttttt
26 | tttttttttttttttttttttttttttttttttjjffLLLLEGfjjjfjjjjjjGjKLLLfLfLLftjtttttttttttttttttttttttttttttttt
27 | ttttttttttttttttttttttttttttttttjjjLLLLKfjj;j;;;;;;;;,;jfjWLLLfLfLtttttttttttttttttttttttttttttttttt
28 | ttttttttttttttttttttttttttttttttttKLLLKf;ifj;i;;;;;;;j.E;;fLLLLGLLtttttttttttttttttttttttttttttttttt
29 | tttttttttttttttttttttttttttttttjtjLLLEG,;DWKWi;;;;;;;WWKE;;LfLLLLGtttttttttttttttttttttttttttttttttt
30 | ttttttttttttttttttttttttttttttttWELLLLL;; WKKD;;;;;;jKKK.;;LLLLLWftttttttttttttttttttttttttttttttttt
31 | tttttttttttttttttttttttttttttttttffLLLL:;EWKW,,;Di,;;KWKf;;fLLLLLjtttttttttttttttttttttttttttttttttt
32 | tttttttttttttttttttttttttttttttttWLLLLLE;,E.;;;;;,;;;;tDi;#LLLLfDttttttttttttttttttttttttttttttttttt
33 | ttttttttttttttttttttttttttttttttttKLLLLL;;;;;;;;tK,L;;;;;;LLLLfLtttttttttttttttttttttttttttttttttttt
34 | tttttttttttttttttttttttttttttttttttjLLLLW,;;;;;EEED;;;;;;WLLLDtttttttttttttttttttttttttttttttttttttt
35 | ttttttttttttttttttttttttttttttttttttjtKEL,;;;;;EjjW;;;;;KtEGjjjttttttttttttttttttttttttttttttttttttt
36 | ttttttttttttttttttttttttttttttttttttjtttttW,,;;jttj,i;tWKffKfjtttttttttttttttttttttttttttttttttttttt
37 | tttttttttttttttttttttttttttttttttttttttttttttDLjttfGWtjti,;Kjttttttttttttttttttttttttttttttttttttttt
38 | tttttttttttttttttttttttttttttttttttttttttttttDjittfj;,;;D;;;;ttttttttttttttttttttttttttttttttttttttt
39 | ttttttttttttttttttttttttttttttttttttttttttttE;;EEjWi;DGKj,iEjtjttttttttttttttttttttttttttttttttttttt
40 | tttttttttttttttttttttttttttttttttttttttttttt;,;;WWt;;;Dtttfttttttttttttttttttttttttttttttttttttttttt
41 | ttttttttttttttttttttttttttttttttttttttttttt;t;;;;;;;;;;Gtttttttttttttttttttttttttttttttttttttttttttt
42 | ttttttttttttttttttttttttttttttttttttttttjj,K;;;;;;;;;;;;jttttttttttttttttttttttttttttttttttttttttttt
43 | tttttttttttttttttttttttttttttttttttttttjf;;j;;;;;;;;;;;;tttttttttttttttttttttttttttttttttttttttttttt
44 | tttttttttttttttttttttttttttttttttttttttftGKE;;,;,,;;;;;ijttttttttttttttttttttttttttttttttttttttttttt
45 | tttttttttttttttttttttttttttttttttttttttEfijDGGGGGGGGGGGKjttttttttttttttttttttttttttttttttttttttttttt
46 | ttttttttttttttttttttttttttttttttttttttttfjtGGGGGGGGGGEDWtttttttttttttttttttttttttttttttttttttttttttt
47 | tttttttttttttttttttttttttttttttttttttttttttfEEDEEEEEEEKttttttttttttttttttttttttttttttttttttttttttttt
48 | tttttttttttttttttttttttttttttttttttttttttttttLDEWWEEEttttttttttttttttttttttttttttttttttttttttttttttt
49 | ttttttttttttttttttttttttttttttttttttttttttjtttKWjtKWjttttttttttttttttttttttttttttttttttttttttttttttt
50 | tttttttttttttttttttttttttttttttttttttttttttttttEjtjjijtttttttttttttttttttttttttttttttttttttttttttttt
51 | tttttttttttttttttttttttttttttttttttttttttttttK,Gttf,fDtttttttttttttttttttttttttttttttttttttttttttttt
52 | ttttttttttttttttttttttttttttttttttttttttttttWjD;tt;,fWtttttttttttttttttttttttttttttttttttttttttttttt
53 | ttttttttttttttttttttttttttttttttttttttttttttttjttttttttttttttttttttttttttttttttttttttttttttttttttttt
54 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
55 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
56 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
57 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/bootstrap.yml:
--------------------------------------------------------------------------------
1 | server:
2 | port: 8090
3 |
4 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/mapper/TeacherMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/mapper/TeacherMapperCustom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
16 |
17 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/static/abc/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test.html
6 |
7 |
8 |
9 |
10 | Hello Test.html~
11 |
12 |
13 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/static/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/src/main/resources/static/favicon.ico
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/static/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Index.html
7 |
8 |
9 |
10 |
11 | Hello Index.html~
12 |
13 |
14 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/templates/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ERROR!!!
6 |
7 |
8 |
9 |
10 | 程序发生错误,请联系管理员~
11 |
12 |
13 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/templates/ftl/stu.ftl:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello Freemarker~~~
4 |
5 |
6 |
7 |
8 | <#--
9 | freemarker 的构成语法:
10 | 1. 注释
11 | 2. 表达式
12 | 3. 指令
13 | 4. 普通文本
14 | -->
15 |
16 | <#-- 输出一个字符串 -->
17 | <#-- ${} 作为变量的表达式,同jsp -->
18 | Hello ${there}
19 |
20 |
21 |
22 |
23 | <#-- 输出一个对象 -->
24 |
25 | id: ${teacher.id}
26 | 姓名: ${teacher.name}
27 | 年龄: ${teacher.age}
28 | 性别: ${teacher.sex}
29 | 生日: ${teacher.birthday?string('yyyy-MM-dd HH:mm:ss')}
30 | 钱包: ${teacher.amount}
31 | 已育: ${teacher.haveChild?string('yes', 'no')}
32 | <#--辅导学生:名为${teacher.stu.name}的学生,年龄为${teacher.stu.age}岁
-->
33 | <#if teacher.stu??>
34 | 辅导学生:名为${teacher.stu.name}的学生,年龄为${teacher.stu.age}岁
35 | #if>
36 | <#if !teacher.stu??>
37 | 没有1对1的学生进行辅导
38 | #if>
39 |
40 |
41 |
42 |
43 |
44 |
45 | <#-- list 指令,用于循环-->
46 | <#list teacherList as t>
47 |
48 | ${t.id}
49 | ${t.name}
50 | ${t.age}
51 |
52 | #list>
53 |
54 |
55 |
56 |
57 | <#-- 演示map中的数据循环 -->
58 | <#list tMap?keys as key>
59 |
60 | ${tMap[key].name}
61 | ${tMap[key].age}
62 |
63 | #list>
64 |
65 |
66 |
67 |
68 | <#-- if指令,用于判断 -->
69 |
70 | <#if teacher.id == "1001">
71 | 这个老师的编号为1001
72 | #if>
73 | <#if teacher.id != "1001">
74 | 这个老师的编号不是1001
75 | #if>
76 |
77 | <#if (teacher.age >= 18)>
78 | 这个老师已经成年
79 | #if>
80 | <#if (teacher.age < 18)>
81 | 这个老师未成年
82 | #if>
83 |
84 | <#if teacher.haveChild>
85 | 已育
86 | #if>
87 | <#if !teacher.haveChild>
88 | 未育
89 | #if>
90 |
91 |
92 |
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/springboot-learn/src/main/resources/templates/html/teacher.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello Thymeleaf~~~
6 |
7 |
8 |
9 |
10 | Hello
11 |
12 | Hello
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | 默认日期:
44 |
45 | 默认格式日期:
46 |
47 | 指定格式日期:
48 |
49 | 获得年月日:
50 | 年
51 | 月
52 | 日
53 |
54 |
55 |
56 |
57 | 女
58 |
59 |
60 | 男
61 |
62 |
63 | 未知
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 | 女
72 |
73 |
74 | 男
75 |
76 |
77 | 未知
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 | 记录的值:
90 | count:
91 | index:
92 | size:
93 | odd:
94 | even:
95 | first:
96 | last:
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
--------------------------------------------------------------------------------
/springboot-learn/src/test/java/com/itzixi/test/MyTests.java:
--------------------------------------------------------------------------------
1 | package com.itzixi.test;
2 |
3 | import com.itzixi.pojo.Teacher;
4 | import com.itzixi.service.TeacherService;
5 | import org.junit.jupiter.api.Test;
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.boot.test.context.SpringBootTest;
8 |
9 | import java.util.UUID;
10 |
11 | //@SpringBootTest // 表示当前会被springboot加载为测试类
12 | //public class MyTests {
13 | //
14 | // @Autowired
15 | // private TeacherService teacherService;
16 | //
17 | // @Test
18 | // public void testSaveTeacher() {
19 | // String tid = UUID.randomUUID().toString();
20 | //
21 | // Teacher teacher = new Teacher();
22 | // teacher.setId(tid);
23 | // teacher.setName("Jack");
24 | // teacher.setAge(20);
25 | // teacher.setSex("男");
26 | // teacherService.saveTeacher(teacher);
27 | // }
28 | //
29 | //
30 | //}
31 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/META-INF/spring-configuration-metadata.json:
--------------------------------------------------------------------------------
1 | {
2 | "groups": [
3 | {
4 | "name": "user",
5 | "type": "com.itzixi.pojo.UserConfig",
6 | "sourceType": "com.itzixi.pojo.UserConfig"
7 | }
8 | ],
9 | "properties": [
10 | {
11 | "name": "user.age",
12 | "type": "java.lang.Integer",
13 | "sourceType": "com.itzixi.pojo.UserConfig"
14 | },
15 | {
16 | "name": "user.name",
17 | "type": "java.lang.String",
18 | "sourceType": "com.itzixi.pojo.UserConfig"
19 | },
20 | {
21 | "name": "user.sex",
22 | "type": "java.lang.String",
23 | "sourceType": "com.itzixi.pojo.UserConfig"
24 | }
25 | ],
26 | "hints": []
27 | }
--------------------------------------------------------------------------------
/springboot-learn/target/classes/META-INF/springboot-learn.kotlin_module:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/UserConfig.properties:
--------------------------------------------------------------------------------
1 | user.name=lee
2 | user.age=18
3 | user.sex=\u7537
--------------------------------------------------------------------------------
/springboot-learn/target/classes/application-dev.yml:
--------------------------------------------------------------------------------
1 | server:
2 | port: 8099
3 |
4 | # 整合mybatis
5 | mybatis:
6 | configuration:
7 | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 开启mybatis的日志实现,可以在控制台打印sql的输出
--------------------------------------------------------------------------------
/springboot-learn/target/classes/application-test.yml:
--------------------------------------------------------------------------------
1 | server:
2 | port: 8088
3 |
4 |
5 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/application.properties-backup:
--------------------------------------------------------------------------------
1 | server.port=8088
2 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/application.yml:
--------------------------------------------------------------------------------
1 | #server:
2 | # port: 8099
3 |
4 | self:
5 | custom:
6 | config:
7 | requestUrl: http://www.itzixi.com
8 | sdkSecret: abc123
9 | values: ${server.port} 是我当前的tomcat服务器的端口号
10 |
11 | spring:
12 | banner:
13 | location: classpath:banner/banner.txt
14 | servlet:
15 | multipart:
16 | max-file-size: 500KB # 文件上传大小限制,设置最大值,不能超过该值,否则报错
17 | max-request-size: 2MB # 文件最大请求限制,用于批量上传
18 | datasource: # 数据源的相关配置
19 | type: com.zaxxer.hikari.HikariDataSource # 数据源的类型,可以更改为其他的数据源配置,比如druid
20 | # type: com.alibaba.druid.pool.DruidDataSource # 配置自定义的数据源:阿里druid
21 | driver-class-name: com.mysql.jdbc.Driver # mysql/MariaDB 的数据库驱动类名称
22 | url: jdbc:mysql://localhost:3306/springboot-learn?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
23 | username: root
24 | password: root
25 | hikari:
26 | connection-timeout: 30000 # 等待连接池分配连接的最大时间(毫秒),超过这个时长还没有可用的连接,则会抛出SQLException
27 | minimum-idle: 5 # 最小连接数
28 | maximum-pool-size: 20 # 最大连接数
29 | auto-commit: true # 自动提交
30 | idle-timeout: 600000 # 连接超时的最大时长(毫秒),超时则会被释放(retired)
31 | pool-name: DataSourceHikariCP # 连接池的名字
32 | max-lifetime: 18000000 # 连接池的最大生命时长(毫秒),超时则会被释放(retired)
33 | connection-test-query: SELECT 1
34 | freemarker:
35 | template-loader-path: classpath:/templates/ftl/
36 | suffix: .ftl
37 | thymeleaf:
38 | prefix: classpath:/templates/html/
39 | suffix: .html
40 | profiles:
41 | active: dev # dev:开发环境;test:测试环境;prod:生产环境;pre:预发布
42 |
43 | # 整合mybatis
44 | mybatis:
45 | type-aliases-package: com.itzixi.pojo # 所有pojo类所在的包路径
46 | mapper-locations: classpath:mapper/*.xml # mapper映射文件
47 | # configuration:
48 | # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 开启mybatis的日志实现,可以在控制台打印sql的输出
49 |
50 | # 通用mapper工具的配置
51 | mapper:
52 | mappers: com.itzixi.my.mapper.MyMapper # 配置MyMapper,包含了一些封装好的CRUD方法
53 | not-empty: false # 在进行数据库操作的时候,username != null 是否会追加 username != ''
54 | identity: MYSQL
55 |
56 | # 分页插件助手的配置
57 | pagehelper:
58 | helper-dialect: MYSQL
59 | support-methods-arguments: true
60 |
61 | logging:
62 | level:
63 | root: info
64 |
65 | # 监控节点(端点)的配置
66 | management:
67 | endpoints:
68 | enabled-by-default: true # 默认开启监控节点
69 | web:
70 | exposure:
71 | include: '*' # 可以在web端开启所以监控节点
72 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/banner/banner.txt:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////////
2 | // _ooOoo_ //
3 | // o8888888o //
4 | // 88" . "88 //
5 | // (| ^_^ |) //
6 | // O\ = /O //
7 | // ____/`---'\____ //
8 | // .' \\| |// `. //
9 | // / \\||| : |||// \ //
10 | // / _||||| -:- |||||- \ //
11 | // | | \\\ - /// | | //
12 | // | \_| ''\---/'' | | //
13 | // \ .-\__ `-` ___/-. / //
14 | // ___`. .' /--.--\ `. . ___ //
15 | // ."" '< `.___\_<|>_/___.' >'"". //
16 | // | | : `- \`.;`\ _ /`;.`/ - ` : | | //
17 | // \ \ `-. \_ __\ /__ _/ .-` / / //
18 | // ========`-.____`-.___\_____/___.-`____.-'======== //
19 | // `=---=' //
20 | // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
21 | // 佛祖保佑 永无BUG 永不修改 //
22 | ////////////////////////////////////////////////////////////////////
--------------------------------------------------------------------------------
/springboot-learn/target/classes/banner/cat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/banner/cat.png
--------------------------------------------------------------------------------
/springboot-learn/target/classes/banner/qiaoba.txt:
--------------------------------------------------------------------------------
1 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
2 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
3 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
4 | ttttttttttttttttttttttttttttttttjtttjttjjtjW#Li;;ijE#Ettttjttjjjtttttttttttttttttttttttttttttttttttt
5 | ttttttttttttttttttttttttttttjtttLGtWtttt#i;itttttttjti;tWtttjWtDEjtttttttttttttttttttttttttttttttttt
6 | tttttttttttttttttttttttttttjjjttfjLjWtEjjtjtjttttttjjtjttLWt;jEjjttttttttttttttttttttttttttttttttttt
7 | ttttttttttttttttttttttttttDf;tjt;jWjjfLtttttttttttttttttttLDjjjjEtjj#ELttttttttttttttttttttttttttttt
8 | tttttttttttttttttttttttt#DjGjfjtjjtjjfLttttttttttttttttttjL#jjjjtttjtfLGfjtttttttttttttttttttttttttt
9 | tttttttttttttttttttttttttjfLjGttWjjjjLLtttttttttttttttttttLEjjjjjtttjjjjDjtttttttttttttttttttttttttt
10 | tttttttttttttttttttttttttjjjjDttLjjjjLLttttttttttttttttttjLLjLjjjttijjjjLjtttttttttttttttttttttttttt
11 | tttttttttttttttttttttttttjjjjjtttjjjfLLtttttttWEttf jtttttLDjLjjjjttEjfjLttttttttttttttttttttttttttt
12 | ttttttttttttttttttttttttijjjjjtjDjjjjLLjttttjG GL :jttttLWjjjjttKjWjKjKttttttttttttttttttttttttttt
13 | ttttttttttttttttttttttttijjjWjGjfjLjjLLjttttt,. ftttjLGjjtttj;jjj#jKjtttttttttttttttttttttttttt
14 | ttttttttttttttttttttttttEj#ffjjjfjjjWfLfjtttttf KtttttfLL;jjffjjLjjjjjttttttttttttttttttttttttttt
15 | tttttttttttttttttttttttttjjtjjjjjfLj#fLftttttjf tttttLLL#fjfjjjfjKjfttjttttttttttttttttttttttttt
16 | tttttttttttttttttttttttttDjjjjjjLjGj#LLLttttjD . . .jtttLLLWGGffjjjGjtjtttttttttttttttttttttttttttt
17 | tttttttttttttttttttttttttj;jjjjGLLDt#LLLtjjtjK Ej jtttLLLWjKLLLjjjjWttttttttttttttttttttttttttttt
18 | tttttttttttttttttttttttttttjGLLLLLLWKGLLttjtEWL;;;fKKjtttfWEWDLfLLLGWttttttttttttttttttttttttttttttt
19 | ttttttttttttttttttttttttttttttttfLLLfLGLD,,;ttjtttttti;;#LGLLLL#jttttttttttttttttttttttttttttttttttt
20 | tttttttttttttttttttttttttttttttttD::.#G;;jtjjjtttttjjtjtti;W:,:Wtttttttttttttttttttttttttttttttttttt
21 | ttttttttttttttttttttttttttttttttt;EjW,jtjjjjttjjttjtjtjjjjtj,Lj;jttttttttttttttttttttttttttttttttttt
22 | tttttttttttttttttttttttttttttttttE;;tjjtjjjKLLLLLLLLLGKjtjtjLLiWjttttttttttttttttttttttttttttttttttt
23 | tttttttttttttttttttttttttttttttttf,tjjttWLLLfLLLLLLLLfLfLKjtLLLfjttttttttttttttttttttttttttttttttttt
24 | ttttttttttttttttttttttttttttttttj,jjttEfLLLLLLLLLLLLLLLLLLLELLLLLttttttttttttttttttttttttttttttttttt
25 | tttttttttttttttttttttttttttttttjittjtfLLLLLLLLfDEKDLfLfLfLfLLfLLLWtttttttttttttttttttttttttttttttttt
26 | tttttttttttttttttttttttttttttttttjjffLLLLEGfjjjfjjjjjjGjKLLLfLfLLftjtttttttttttttttttttttttttttttttt
27 | ttttttttttttttttttttttttttttttttjjjLLLLKfjj;j;;;;;;;;,;jfjWLLLfLfLtttttttttttttttttttttttttttttttttt
28 | ttttttttttttttttttttttttttttttttttKLLLKf;ifj;i;;;;;;;j.E;;fLLLLGLLtttttttttttttttttttttttttttttttttt
29 | tttttttttttttttttttttttttttttttjtjLLLEG,;DWKWi;;;;;;;WWKE;;LfLLLLGtttttttttttttttttttttttttttttttttt
30 | ttttttttttttttttttttttttttttttttWELLLLL;; WKKD;;;;;;jKKK.;;LLLLLWftttttttttttttttttttttttttttttttttt
31 | tttttttttttttttttttttttttttttttttffLLLL:;EWKW,,;Di,;;KWKf;;fLLLLLjtttttttttttttttttttttttttttttttttt
32 | tttttttttttttttttttttttttttttttttWLLLLLE;,E.;;;;;,;;;;tDi;#LLLLfDttttttttttttttttttttttttttttttttttt
33 | ttttttttttttttttttttttttttttttttttKLLLLL;;;;;;;;tK,L;;;;;;LLLLfLtttttttttttttttttttttttttttttttttttt
34 | tttttttttttttttttttttttttttttttttttjLLLLW,;;;;;EEED;;;;;;WLLLDtttttttttttttttttttttttttttttttttttttt
35 | ttttttttttttttttttttttttttttttttttttjtKEL,;;;;;EjjW;;;;;KtEGjjjttttttttttttttttttttttttttttttttttttt
36 | ttttttttttttttttttttttttttttttttttttjtttttW,,;;jttj,i;tWKffKfjtttttttttttttttttttttttttttttttttttttt
37 | tttttttttttttttttttttttttttttttttttttttttttttDLjttfGWtjti,;Kjttttttttttttttttttttttttttttttttttttttt
38 | tttttttttttttttttttttttttttttttttttttttttttttDjittfj;,;;D;;;;ttttttttttttttttttttttttttttttttttttttt
39 | ttttttttttttttttttttttttttttttttttttttttttttE;;EEjWi;DGKj,iEjtjttttttttttttttttttttttttttttttttttttt
40 | tttttttttttttttttttttttttttttttttttttttttttt;,;;WWt;;;Dtttfttttttttttttttttttttttttttttttttttttttttt
41 | ttttttttttttttttttttttttttttttttttttttttttt;t;;;;;;;;;;Gtttttttttttttttttttttttttttttttttttttttttttt
42 | ttttttttttttttttttttttttttttttttttttttttjj,K;;;;;;;;;;;;jttttttttttttttttttttttttttttttttttttttttttt
43 | tttttttttttttttttttttttttttttttttttttttjf;;j;;;;;;;;;;;;tttttttttttttttttttttttttttttttttttttttttttt
44 | tttttttttttttttttttttttttttttttttttttttftGKE;;,;,,;;;;;ijttttttttttttttttttttttttttttttttttttttttttt
45 | tttttttttttttttttttttttttttttttttttttttEfijDGGGGGGGGGGGKjttttttttttttttttttttttttttttttttttttttttttt
46 | ttttttttttttttttttttttttttttttttttttttttfjtGGGGGGGGGGEDWtttttttttttttttttttttttttttttttttttttttttttt
47 | tttttttttttttttttttttttttttttttttttttttttttfEEDEEEEEEEKttttttttttttttttttttttttttttttttttttttttttttt
48 | tttttttttttttttttttttttttttttttttttttttttttttLDEWWEEEttttttttttttttttttttttttttttttttttttttttttttttt
49 | ttttttttttttttttttttttttttttttttttttttttttjtttKWjtKWjttttttttttttttttttttttttttttttttttttttttttttttt
50 | tttttttttttttttttttttttttttttttttttttttttttttttEjtjjijtttttttttttttttttttttttttttttttttttttttttttttt
51 | tttttttttttttttttttttttttttttttttttttttttttttK,Gttf,fDtttttttttttttttttttttttttttttttttttttttttttttt
52 | ttttttttttttttttttttttttttttttttttttttttttttWjD;tt;,fWtttttttttttttttttttttttttttttttttttttttttttttt
53 | ttttttttttttttttttttttttttttttttttttttttttttttjttttttttttttttttttttttttttttttttttttttttttttttttttttt
54 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
55 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
56 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
57 | tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
--------------------------------------------------------------------------------
/springboot-learn/target/classes/bootstrap.yml:
--------------------------------------------------------------------------------
1 | server:
2 | port: 8090
3 |
4 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/Application.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/Application.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/config/GraceExceptionHandler.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/config/GraceExceptionHandler.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/config/InterceptorConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/config/InterceptorConfig.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/config/ServiceLogAOP.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/config/ServiceLogAOP.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/config/SpringBootConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/config/SpringBootConfig.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/config/error/GraceException.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/config/error/GraceException.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/config/error/MyCustomException.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/config/error/MyCustomException.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/controller/FreemarkerController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/controller/FreemarkerController.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/controller/HelloController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/controller/HelloController.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/controller/StuController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/controller/StuController.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/controller/StuRestController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/controller/StuRestController.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/controller/TeacherController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/controller/TeacherController.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/controller/ThymeleafController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/controller/ThymeleafController.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/controller/interceptor/UserInfoInterceptor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/controller/interceptor/UserInfoInterceptor.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/mapper/TeacherMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/mapper/TeacherMapper.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/mapper/TeacherMapperCustom.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/mapper/TeacherMapperCustom.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/my/mapper/MyMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/my/mapper/MyMapper.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/pojo/MyBean.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/pojo/MyBean.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/pojo/Stu.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/pojo/Stu.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/pojo/Teacher.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/pojo/Teacher.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/pojo/UserConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/pojo/UserConfig.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/pojo/bo/TeacherBO.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/pojo/bo/TeacherBO.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/service/TeacherService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/service/TeacherService.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/service/impl/TeacherServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/service/impl/TeacherServiceImpl.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/utils/AsyncTask.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/utils/AsyncTask.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/utils/JSONResult.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/utils/JSONResult.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/com/itzixi/utils/MyTask.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/com/itzixi/utils/MyTask.class
--------------------------------------------------------------------------------
/springboot-learn/target/classes/itzixi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/itzixi.png
--------------------------------------------------------------------------------
/springboot-learn/target/classes/mapper/TeacherMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/mapper/TeacherMapperCustom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
16 |
17 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/static/abc/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test.html
6 |
7 |
8 |
9 |
10 | Hello Test.html~
11 |
12 |
13 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/static/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/classes/static/favicon.ico
--------------------------------------------------------------------------------
/springboot-learn/target/classes/static/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Index.html
7 |
8 |
9 |
10 |
11 | Hello Index.html~
12 |
13 |
14 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/templates/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ERROR!!!
6 |
7 |
8 |
9 |
10 | 程序发生错误,请联系管理员~
11 |
12 |
13 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/templates/ftl/stu.ftl:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello Freemarker~~~
4 |
5 |
6 |
7 |
8 | <#--
9 | freemarker 的构成语法:
10 | 1. 注释
11 | 2. 表达式
12 | 3. 指令
13 | 4. 普通文本
14 | -->
15 |
16 | <#-- 输出一个字符串 -->
17 | <#-- ${} 作为变量的表达式,同jsp -->
18 | Hello ${there}
19 |
20 |
21 |
22 |
23 | <#-- 输出一个对象 -->
24 |
25 | id: ${teacher.id}
26 | 姓名: ${teacher.name}
27 | 年龄: ${teacher.age}
28 | 性别: ${teacher.sex}
29 | 生日: ${teacher.birthday?string('yyyy-MM-dd HH:mm:ss')}
30 | 钱包: ${teacher.amount}
31 | 已育: ${teacher.haveChild?string('yes', 'no')}
32 | <#--辅导学生:名为${teacher.stu.name}的学生,年龄为${teacher.stu.age}岁
-->
33 | <#if teacher.stu??>
34 | 辅导学生:名为${teacher.stu.name}的学生,年龄为${teacher.stu.age}岁
35 | #if>
36 | <#if !teacher.stu??>
37 | 没有1对1的学生进行辅导
38 | #if>
39 |
40 |
41 |
42 |
43 |
44 |
45 | <#-- list 指令,用于循环-->
46 | <#list teacherList as t>
47 |
48 | ${t.id}
49 | ${t.name}
50 | ${t.age}
51 |
52 | #list>
53 |
54 |
55 |
56 |
57 | <#-- 演示map中的数据循环 -->
58 | <#list tMap?keys as key>
59 |
60 | ${tMap[key].name}
61 | ${tMap[key].age}
62 |
63 | #list>
64 |
65 |
66 |
67 |
68 | <#-- if指令,用于判断 -->
69 |
70 | <#if teacher.id == "1001">
71 | 这个老师的编号为1001
72 | #if>
73 | <#if teacher.id != "1001">
74 | 这个老师的编号不是1001
75 | #if>
76 |
77 | <#if (teacher.age >= 18)>
78 | 这个老师已经成年
79 | #if>
80 | <#if (teacher.age < 18)>
81 | 这个老师未成年
82 | #if>
83 |
84 | <#if teacher.haveChild>
85 | 已育
86 | #if>
87 | <#if !teacher.haveChild>
88 | 未育
89 | #if>
90 |
91 |
92 |
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/springboot-learn/target/classes/templates/html/teacher.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello Thymeleaf~~~
6 |
7 |
8 |
9 |
10 | Hello
11 |
12 | Hello
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | 默认日期:
44 |
45 | 默认格式日期:
46 |
47 | 指定格式日期:
48 |
49 | 获得年月日:
50 | 年
51 | 月
52 | 日
53 |
54 |
55 |
56 |
57 | 女
58 |
59 |
60 | 男
61 |
62 |
63 | 未知
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 | 女
72 |
73 |
74 | 男
75 |
76 |
77 | 未知
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 | 记录的值:
90 | count:
91 | index:
92 | size:
93 | odd:
94 | even:
95 | first:
96 | last:
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
--------------------------------------------------------------------------------
/springboot-learn/target/maven-archiver/pom.properties:
--------------------------------------------------------------------------------
1 | artifactId=springboot-learn
2 | groupId=com.itzixi
3 | version=1.0-SNAPSHOT
4 |
--------------------------------------------------------------------------------
/springboot-learn/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com/itzixi/my/mapper/MyMapper.class
2 |
--------------------------------------------------------------------------------
/springboot-learn/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/pojo/Teacher.java
2 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/pojo/UserConfig.java
3 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/config/GraceExceptionHandler.java
4 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/mapper/TeacherMapper.java
5 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/utils/AsyncTask.java
6 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/config/error/MyCustomException.java
7 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/config/SpringBootConfig.java
8 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/service/TeacherService.java
9 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/controller/interceptor/UserInfoInterceptor.java
10 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/controller/FreemarkerController.java
11 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/controller/HelloController.java
12 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/controller/ThymeleafController.java
13 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/config/ServiceLogAOP.java
14 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/pojo/bo/TeacherBO.java
15 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/my/mapper/MyMapper.java
16 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/controller/StuController.java
17 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/utils/MyTask.java
18 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/utils/JSONResult.java
19 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/config/InterceptorConfig.java
20 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/Application.java
21 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/mapper/TeacherMapperCustom.java
22 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/controller/TeacherController.java
23 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/pojo/MyBean.java
24 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/controller/StuRestController.java
25 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/config/error/GraceException.java
26 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/pojo/Stu.java
27 | /workspaces/idea_lee/itzixi/springboot-learn/src/main/java/com/itzixi/service/impl/TeacherServiceImpl.java
28 |
--------------------------------------------------------------------------------
/springboot-learn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
--------------------------------------------------------------------------------
/springboot-learn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
--------------------------------------------------------------------------------
/springboot-learn/target/springboot-learn-1.0-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/springboot-learn-1.0-SNAPSHOT.jar
--------------------------------------------------------------------------------
/springboot-learn/target/springboot-learn-1.0-SNAPSHOT.jar.original:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/target/springboot-learn-1.0-SNAPSHOT.jar.original
--------------------------------------------------------------------------------