├── .DS_Store ├── README.md ├── mybatis-generator-for-itzixi ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── misc.xml │ └── workspace.xml ├── generatorConfig.xml ├── pom.xml ├── src │ ├── .DS_Store │ └── main │ │ ├── .DS_Store │ │ ├── java │ │ └── com │ │ │ └── itzixi │ │ │ ├── mapper │ │ │ └── TeacherMapper.java │ │ │ ├── my │ │ │ └── mapper │ │ │ │ └── MyMapper.java │ │ │ ├── mybatis │ │ │ └── utils │ │ │ │ └── GeneratorDisplay.java │ │ │ └── pojo │ │ │ └── Teacher.java │ │ └── resources │ │ └── mapper │ │ └── TeacherMapper.xml └── target │ └── classes │ └── com │ └── itzixi │ ├── my │ └── mapper │ │ └── MyMapper.class │ └── mybatis │ └── utils │ └── GeneratorDisplay.class └── springboot-learn ├── .DS_Store ├── .idea ├── compiler.xml ├── encodings.xml ├── misc.xml ├── uiDesigner.xml └── workspace.xml ├── pom.xml ├── springboot-learn.iml ├── src ├── main │ ├── .DS_Store │ ├── java │ │ └── com │ │ │ └── itzixi │ │ │ ├── .DS_Store │ │ │ ├── Application.java │ │ │ ├── config │ │ │ ├── GraceExceptionHandler.java │ │ │ ├── InterceptorConfig.java │ │ │ ├── ServiceLogAOP.java │ │ │ ├── SpringBootConfig.java │ │ │ └── error │ │ │ │ ├── GraceException.java │ │ │ │ └── MyCustomException.java │ │ │ ├── controller │ │ │ ├── FreemarkerController.java │ │ │ ├── HelloController.java │ │ │ ├── StuController.java │ │ │ ├── StuRestController.java │ │ │ ├── TeacherController.java │ │ │ ├── ThymeleafController.java │ │ │ └── interceptor │ │ │ │ └── UserInfoInterceptor.java │ │ │ ├── mapper │ │ │ ├── TeacherMapper.java │ │ │ └── TeacherMapperCustom.java │ │ │ ├── my │ │ │ └── mapper │ │ │ │ └── MyMapper.java │ │ │ ├── pojo │ │ │ ├── MyBean.java │ │ │ ├── Stu.java │ │ │ ├── Teacher.java │ │ │ ├── UserConfig.java │ │ │ └── bo │ │ │ │ └── TeacherBO.java │ │ │ ├── service │ │ │ ├── TeacherService.java │ │ │ └── impl │ │ │ │ └── TeacherServiceImpl.java │ │ │ └── utils │ │ │ ├── AsyncTask.java │ │ │ ├── JSONResult.java │ │ │ └── MyTask.java │ └── resources │ │ ├── .DS_Store │ │ ├── UserConfig.properties │ │ ├── application-dev.yml │ │ ├── application-test.yml │ │ ├── application.properties-backup │ │ ├── application.yml │ │ ├── banner │ │ ├── banner.txt │ │ ├── cat.png │ │ └── qiaoba.txt │ │ ├── bootstrap.yml │ │ ├── mapper │ │ ├── TeacherMapper.xml │ │ └── TeacherMapperCustom.xml │ │ ├── spring.xml │ │ ├── static │ │ ├── abc │ │ │ └── test.html │ │ ├── favicon.ico │ │ └── index.html │ │ └── templates │ │ ├── error.html │ │ ├── ftl │ │ └── stu.ftl │ │ └── html │ │ └── teacher.html └── test │ └── java │ └── com │ └── itzixi │ └── test │ └── MyTests.java └── target ├── classes ├── META-INF │ ├── spring-configuration-metadata.json │ └── springboot-learn.kotlin_module ├── UserConfig.properties ├── application-dev.yml ├── application-test.yml ├── application.properties-backup ├── application.yml ├── banner │ ├── banner.txt │ ├── cat.png │ └── qiaoba.txt ├── bootstrap.yml ├── com │ └── itzixi │ │ ├── Application.class │ │ ├── config │ │ ├── GraceExceptionHandler.class │ │ ├── InterceptorConfig.class │ │ ├── ServiceLogAOP.class │ │ ├── SpringBootConfig.class │ │ └── error │ │ │ ├── GraceException.class │ │ │ └── MyCustomException.class │ │ ├── controller │ │ ├── FreemarkerController.class │ │ ├── HelloController.class │ │ ├── StuController.class │ │ ├── StuRestController.class │ │ ├── TeacherController.class │ │ ├── ThymeleafController.class │ │ └── interceptor │ │ │ └── UserInfoInterceptor.class │ │ ├── mapper │ │ ├── TeacherMapper.class │ │ └── TeacherMapperCustom.class │ │ ├── my │ │ └── mapper │ │ │ └── MyMapper.class │ │ ├── pojo │ │ ├── MyBean.class │ │ ├── Stu.class │ │ ├── Teacher.class │ │ ├── UserConfig.class │ │ └── bo │ │ │ └── TeacherBO.class │ │ ├── service │ │ ├── TeacherService.class │ │ └── impl │ │ │ └── TeacherServiceImpl.class │ │ └── utils │ │ ├── AsyncTask.class │ │ ├── JSONResult.class │ │ └── MyTask.class ├── itzixi.png ├── mapper │ ├── TeacherMapper.xml │ └── TeacherMapperCustom.xml ├── spring.xml ├── static │ ├── abc │ │ └── test.html │ ├── favicon.ico │ └── index.html └── templates │ ├── error.html │ ├── ftl │ └── stu.ftl │ └── html │ └── teacher.html ├── maven-archiver └── pom.properties ├── maven-status └── maven-compiler-plugin │ ├── compile │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst │ └── testCompile │ └── default-testCompile │ ├── createdFiles.lst │ └── inputFiles.lst ├── springboot-learn-1.0-SNAPSHOT.jar └── springboot-learn-1.0-SNAPSHOT.jar.original /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/.DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SpringBoot2.x-Learn 2 | 新版制作的<SpringBoot2.x 从零入门到进阶以及中间件整合> (含视频与文档) 3 | 4 | 本git包含springboot2.x入门到进阶与整合的相关源码。同时也录制了视频以及编写了文档。后续统一更新在此git中。 5 | 6 | 目前已经制作的相关实战课以及架构师课程如下: 7 | * 架构师体系课程:https://class.imooc.com/sale/javaarchitect 8 | * 告别35岁瓶颈,转型项目管理:https://coding.imooc.com/class/476.html 9 | * SpringCloud体系化实战:https://coding.imooc.com/class/456.html 10 | * SpringBoot+小程序全栈实战https://coding.imooc.com/class/217.html 11 | * Zookeeper入门:https://coding.imooc.com/class/201.html 12 | * Netty+SpringBoot仿微信:https://coding.imooc.com/class/261.html 13 | 14 | 免费公开课: 15 | * SpringBoot1.x极速入门与整合:https://www.imooc.com/learn/956 16 | * SpringBoot小程序实现微信登录:https://www.imooc.com/learn/1059 17 | * SpringBoot+MUI实现ios+安卓推送:https://www.imooc.com/learn/1074 18 | 19 | #### 技术站点: 20 | http://www.itzixi.com/ 或 http://www.ctolee.com/ 21 | 22 | #### 求关注 23 | 公众号底部二维码 24 | 公众号底部二维码 25 | -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 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 | next 74 | it 75 | sys 76 | com.itzixi.pojo 77 | com.itzixi.my.mapper 78 | com.itzixi.mapper 79 | 80 | 81 | 82 | 89 | 90 | 91 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 241 | 242 | 243 | 244 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 1552268871541 269 | 280 | 281 | 282 | 283 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 390 | 391 | 392 | 393 | 394 | 395 | Spring 396 | 397 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 413 | 414 | 415 | 416 | 417 | 418 | 1.8 419 | 420 | 425 | 426 | 427 | 428 | 429 | 430 | mybatis-generator-for-itzixi 431 | 432 | 438 | 439 | 440 | 441 | 442 | 443 | Maven: ch.qos.logback:logback-classic:1.1.11 444 | 445 | 450 | 451 | 452 | 453 | 454 | 455 | -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/generatorConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 | 33 |
34 |
-------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.itzixi 8 | mybatis-generator-for-itzixi 9 | 1.0-SNAPSHOT 10 | 11 | 12 | UTF-8 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | org.springframework.boot 21 | spring-boot-starter-log4j 22 | 1.3.8.RELEASE 23 | 24 | 25 | 26 | 27 | com.alibaba 28 | druid 29 | 1.1.0 30 | 31 | 32 | com.alibaba 33 | druid-spring-boot-starter 34 | 1.1.0 35 | 36 | 37 | 38 | mysql 39 | mysql-connector-java 40 | 5.1.41 41 | 42 | 43 | 44 | 45 | org.mybatis.spring.boot 46 | mybatis-spring-boot-starter 47 | 1.3.1 48 | 49 | 50 | 51 | tk.mybatis 52 | mapper-spring-boot-starter 53 | 1.2.4 54 | 55 | 56 | 57 | com.github.pagehelper 58 | pagehelper-spring-boot-starter 59 | 1.2.3 60 | 61 | 62 | 63 | 64 | org.mybatis.generator 65 | mybatis-generator-core 66 | 1.3.2 67 | compile 68 | true 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/mybatis-generator-for-itzixi/src/.DS_Store -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/src/main/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/mybatis-generator-for-itzixi/src/main/.DS_Store -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/src/main/java/com/itzixi/mapper/TeacherMapper.java: -------------------------------------------------------------------------------- 1 | package com.itzixi.mapper; 2 | 3 | import com.itzixi.my.mapper.MyMapper; 4 | import com.itzixi.pojo.Teacher; 5 | 6 | public interface TeacherMapper extends MyMapper { 7 | } -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/src/main/java/com/itzixi/my/mapper/MyMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2014-2016 abel533@gmail.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | */ 24 | 25 | package com.itzixi.my.mapper; 26 | 27 | import tk.mybatis.mapper.common.Mapper; 28 | import tk.mybatis.mapper.common.MySqlMapper; 29 | 30 | /** 31 | * 继承自己的MyMapper 32 | * 33 | * @author liuzh 34 | * @since 2015-09-06 21:53 35 | */ 36 | public interface MyMapper extends Mapper, MySqlMapper { 37 | //TODO 38 | //FIXME 特别注意,该接口不能被扫描到,否则会出错 39 | } 40 | -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/src/main/java/com/itzixi/mybatis/utils/GeneratorDisplay.java: -------------------------------------------------------------------------------- 1 | package com.itzixi.mybatis.utils; 2 | 3 | import java.io.File; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | 7 | import org.mybatis.generator.api.MyBatisGenerator; 8 | import org.mybatis.generator.config.Configuration; 9 | import org.mybatis.generator.config.xml.ConfigurationParser; 10 | import org.mybatis.generator.internal.DefaultShellCallback; 11 | 12 | 13 | public class GeneratorDisplay { 14 | 15 | public void generator() throws Exception{ 16 | 17 | List warnings = new ArrayList(); 18 | boolean overwrite = true; 19 | //指定 逆向工程配置文件 20 | File configFile = new File("generatorConfig.xml"); 21 | ConfigurationParser cp = new ConfigurationParser(warnings); 22 | Configuration config = cp.parseConfiguration(configFile); 23 | DefaultShellCallback callback = new DefaultShellCallback(overwrite); 24 | MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, 25 | callback, warnings); 26 | myBatisGenerator.generate(null); 27 | 28 | } 29 | 30 | public static void main(String[] args) throws Exception { 31 | try { 32 | GeneratorDisplay generatorSqlmap = new GeneratorDisplay(); 33 | generatorSqlmap.generator(); 34 | } catch (Exception e) { 35 | e.printStackTrace(); 36 | } 37 | 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/src/main/java/com/itzixi/pojo/Teacher.java: -------------------------------------------------------------------------------- 1 | package com.itzixi.pojo; 2 | 3 | import javax.persistence.*; 4 | 5 | public class Teacher { 6 | @Id 7 | private String id; 8 | 9 | private String name; 10 | 11 | private Integer age; 12 | 13 | private String sex; 14 | 15 | /** 16 | * @return id 17 | */ 18 | public String getId() { 19 | return id; 20 | } 21 | 22 | /** 23 | * @param id 24 | */ 25 | public void setId(String id) { 26 | this.id = id; 27 | } 28 | 29 | /** 30 | * @return name 31 | */ 32 | public String getName() { 33 | return name; 34 | } 35 | 36 | /** 37 | * @param name 38 | */ 39 | public void setName(String name) { 40 | this.name = name; 41 | } 42 | 43 | /** 44 | * @return age 45 | */ 46 | public Integer getAge() { 47 | return age; 48 | } 49 | 50 | /** 51 | * @param age 52 | */ 53 | public void setAge(Integer age) { 54 | this.age = age; 55 | } 56 | 57 | /** 58 | * @return sex 59 | */ 60 | public String getSex() { 61 | return sex; 62 | } 63 | 64 | /** 65 | * @param sex 66 | */ 67 | public void setSex(String sex) { 68 | this.sex = sex; 69 | } 70 | } -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/src/main/resources/mapper/TeacherMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/target/classes/com/itzixi/my/mapper/MyMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/mybatis-generator-for-itzixi/target/classes/com/itzixi/my/mapper/MyMapper.class -------------------------------------------------------------------------------- /mybatis-generator-for-itzixi/target/classes/com/itzixi/mybatis/utils/GeneratorDisplay.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/mybatis-generator-for-itzixi/target/classes/com/itzixi/mybatis/utils/GeneratorDisplay.class -------------------------------------------------------------------------------- /springboot-learn/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leechenxiang/SpringBoot2.x-Learn/5b7703afa6340c92b84e393051d541f5ce1f130e/springboot-learn/.DS_Store -------------------------------------------------------------------------------- /springboot-learn/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /springboot-learn/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot-learn/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Android 18 | 19 | 20 | CodeSpring CoreSpring 21 | 22 | 23 | CorrectnessLintAndroid 24 | 25 | 26 | Java 27 | 28 | 29 | Java language level migration aidsJava 30 | 31 | 32 | LintAndroid 33 | 34 | 35 | PerformanceLintAndroid 36 | 37 | 38 | Spring 39 | 40 | 41 | Spring CoreSpring 42 | 43 | 44 | 45 | 46 | SpringJavaInjectionPointsAutowiringInspection 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /springboot-learn/.idea/uiDesigner.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 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 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /springboot-learn/.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 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 | 56 | 57 | 58 | 59 | activemq.version 60 | spring-boot-starter-web 61 | spring-boot-starter-aop 62 | 8080 63 | port 64 | Lom 65 | lombok 66 | level 67 | createStu 68 | getListStu 69 | craeteStu 70 | deleteStu 71 | getSingleStu 72 | 501 73 | mysql.version 74 | pojo 75 | mybatis 76 | val 77 | uuid 78 | there 79 | htmlTarget 80 | 81 | 82 | 83 | 138 | 139 | 140 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 6 | select 7 | id, 8 | `name`, 9 | age, 10 | sex 11 | from 12 | teacher 13 | where 14 | id = #{tid} 15 | 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 |
15 |
16 | 17 |
18 |
19 | 20 |
21 |
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 | 36 | <#if !teacher.stu??> 37 | 没有1对1的学生进行辅导 38 | 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 | 53 | 54 |
55 |
56 | 57 | <#-- 演示map中的数据循环 --> 58 | <#list tMap?keys as key> 59 |
60 | ${tMap[key].name} 61 | ${tMap[key].age} 62 |
63 | 64 | 65 |
66 |
67 | 68 | <#-- if指令,用于判断 --> 69 |
70 | <#if teacher.id == "1001"> 71 | 这个老师的编号为1001 72 | 73 | <#if teacher.id != "1001"> 74 | 这个老师的编号不是1001 75 | 76 |
77 | <#if (teacher.age >= 18)> 78 | 这个老师已经成年 79 | 80 | <#if (teacher.age < 18)> 81 | 这个老师未成年 82 | 83 |
84 | <#if teacher.haveChild> 85 | 已育 86 | 87 | <#if !teacher.haveChild> 88 | 未育 89 | 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 |
15 |
16 | 17 |
18 |
19 | 20 |
21 |
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 | 36 | <#if !teacher.stu??> 37 | 没有1对1的学生进行辅导 38 | 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 | 53 | 54 |
55 |
56 | 57 | <#-- 演示map中的数据循环 --> 58 | <#list tMap?keys as key> 59 |
60 | ${tMap[key].name} 61 | ${tMap[key].age} 62 |
63 | 64 | 65 |
66 |
67 | 68 | <#-- if指令,用于判断 --> 69 |
70 | <#if teacher.id == "1001"> 71 | 这个老师的编号为1001 72 | 73 | <#if teacher.id != "1001"> 74 | 这个老师的编号不是1001 75 | 76 |
77 | <#if (teacher.age >= 18)> 78 | 这个老师已经成年 79 | 80 | <#if (teacher.age < 18)> 81 | 这个老师未成年 82 | 83 |
84 | <#if teacher.haveChild> 85 | 已育 86 | 87 | <#if !teacher.haveChild> 88 | 未育 89 | 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 --------------------------------------------------------------------------------