├── .gitignore
├── README.md
├── Spring-Boot-ActiveMQ
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── activemq
│ │ │ ├── SpringBootActiveMqApplication.java
│ │ │ ├── bean
│ │ │ └── User.java
│ │ │ ├── config
│ │ │ └── ActivemqConfig.java
│ │ │ ├── controller
│ │ │ └── ProducerController.java
│ │ │ └── service
│ │ │ ├── Consumer1.java
│ │ │ └── Consumer2.java
│ └── resources
│ │ ├── application.properties
│ │ └── application.yml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── activemq
│ └── SpringBootActiveMqApplicationTests.java
├── Spring-Boot-Admin
├── Spring-Boot-Admin-Client
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── client
│ │ │ │ └── SpringBootAdminClientApplication.java
│ │ └── resources
│ │ │ ├── application.properties
│ │ │ └── application.yml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── client
│ │ └── SpringBootAdminClientApplicationTests.java
└── Spring-Boot-Admin-Server
│ ├── pom.xml
│ └── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── server
│ │ │ └── SpringBootAdminServerApplication.java
│ └── resources
│ │ ├── application.properties
│ │ └── application.yml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── server
│ └── SpringBootAdminServerApplicationTests.java
├── Spring-Boot-Aop-Log
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── aoplog
│ │ │ ├── SpringBootAopLogApplication.java
│ │ │ ├── annotation
│ │ │ └── Log.java
│ │ │ ├── aspect
│ │ │ └── LogAspect.java
│ │ │ ├── bean
│ │ │ └── SysLog.java
│ │ │ ├── controller
│ │ │ └── TestController.java
│ │ │ ├── dao
│ │ │ └── SysLogMapper.java
│ │ │ └── utils
│ │ │ ├── HttpContextUtils.java
│ │ │ └── IPUtils.java
│ └── resources
│ │ ├── application.properties
│ │ ├── application.yml
│ │ └── mapper
│ │ └── SysLogMapper.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── aoplog
│ └── SpringBootAopLogApplicationTests.java
├── Spring-Boot-Async
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── async
│ │ │ ├── SpringBootAsyncApplication.java
│ │ │ ├── config
│ │ │ └── AsyncPoolConfig.java
│ │ │ ├── controller
│ │ │ └── TestController.java
│ │ │ └── service
│ │ │ ├── TestReturnService.java
│ │ │ └── TestService.java
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── com
│ └── example
│ └── async
│ └── SpringBootAsyncApplicationTests.java
├── Spring-Boot-Autoconfig
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── autoconfig
│ │ │ ├── SpringBootAutoconfigApplication.java
│ │ │ ├── annotation
│ │ │ ├── CustomService.java
│ │ │ └── EnableHelloWorld.java
│ │ │ ├── bootstrap
│ │ │ ├── EnableAutoConfigurationBootstrap.java
│ │ │ ├── ServiceBootstrap.java
│ │ │ └── TestEnableBootstap.java
│ │ │ ├── configuration
│ │ │ ├── HelloWorldAutoConfiguration.java
│ │ │ └── HelloWorldConfiguration.java
│ │ │ ├── selector
│ │ │ └── HelloWorldImportSelector.java
│ │ │ └── service
│ │ │ └── TestService.java
│ └── resources
│ │ ├── META-INF
│ │ └── spring.factories
│ │ └── application.properties
│ └── test
│ └── java
│ └── com
│ └── example
│ └── autoconfig
│ └── SpringBootAutoconfigApplicationTests.java
├── Spring-Boot-Cors-Support
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── corssupport
│ │ │ ├── SpringBootCorsSupportApplication.java
│ │ │ ├── config
│ │ │ ├── CorsConfig.java
│ │ │ └── WebConfigurer.java
│ │ │ └── controller
│ │ │ └── TestController.java
│ └── resources
│ │ ├── application.properties
│ │ └── templates
│ │ └── index.html
│ └── test
│ └── java
│ └── com
│ └── example
│ └── corssupport
│ └── SpringBootCorsSupportApplicationTests.java
├── Spring-Boot-Ehcache-Anno
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── ehcache
│ │ │ ├── SpringBootEhcacheAnnoApplication.java
│ │ │ ├── bean
│ │ │ └── Student.java
│ │ │ ├── controller
│ │ │ └── StudentController.java
│ │ │ ├── dao
│ │ │ └── StudentMapper.java
│ │ │ └── service
│ │ │ ├── StudentService.java
│ │ │ └── impl
│ │ │ └── StudentServiceImpl.java
│ └── resources
│ │ ├── application.properties
│ │ ├── application.yml
│ │ ├── ehcache.xml
│ │ └── mapper
│ │ └── StudentMapper.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── ehcache
│ └── SpringBootEhcacheAnnoApplicationTests.java
├── Spring-Boot-Elasticsearch
├── pom.xml
└── src
│ └── main
│ ├── java
│ └── com
│ │ └── example
│ │ └── elasticsearch
│ │ ├── SpringBootElasticsearchApplication.java
│ │ ├── config
│ │ ├── ExceptionAdvice.java
│ │ ├── RestClientConfig.java
│ │ └── WebMvcConfig.java
│ │ ├── controller
│ │ ├── HighLevelRestController.java
│ │ ├── IndexController.java
│ │ └── LowLevelRestController.java
│ │ ├── domain
│ │ ├── BookDto.java
│ │ ├── Constant.java
│ │ └── ResponseBean.java
│ │ └── exception
│ │ ├── CustomException.java
│ │ └── SystemException.java
│ └── resources
│ ├── application.properties
│ ├── application.yml
│ ├── static
│ ├── element-ui
│ │ ├── fonts
│ │ │ ├── element-icons.ttf
│ │ │ └── element-icons.woff
│ │ ├── index.css
│ │ └── index.js
│ ├── favicon.ico
│ └── js
│ │ ├── axios.min.js
│ │ ├── moment.min.js
│ │ └── vue.min.js
│ └── templates
│ ├── common
│ └── common.html
│ └── index.html
├── Spring-Boot-Error-Controller
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── errorcontroller
│ │ │ ├── SpringBootErrorControllerApplication.java
│ │ │ ├── controller
│ │ │ └── TestController.java
│ │ │ └── exception
│ │ │ ├── ErrorInfo.java
│ │ │ ├── ErrorInfoBuilder.java
│ │ │ └── GlobalErrorController.java
│ └── resources
│ │ ├── application.properties
│ │ └── templates
│ │ └── error.html
│ └── test
│ └── java
│ └── com
│ └── example
│ └── errorcontroller
│ └── SpringBootErrorControllerApplicationTests.java
├── Spring-Boot-Error-Handler
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── errorhandler
│ │ │ ├── SpringBootErrorHandlerApplication.java
│ │ │ ├── controller
│ │ │ └── TestController.java
│ │ │ └── exception
│ │ │ ├── ErrorInfo.java
│ │ │ ├── ErrorInfoBuilder.java
│ │ │ └── GlobalErrorHandler.java
│ └── resources
│ │ ├── application.properties
│ │ └── templates
│ │ └── error.html
│ └── test
│ └── java
│ └── com
│ └── example
│ └── errorhandler
│ └── SpringBootErrorHandlerApplicationTests.java
├── Spring-Boot-FastDFS
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── fastdfs
│ │ │ ├── SpringBootFastDfsApplication.java
│ │ │ ├── bean
│ │ │ └── FastDFSProperties.java
│ │ │ ├── controller
│ │ │ └── TestController.java
│ │ │ └── util
│ │ │ └── FastDFSUtil.java
│ └── resources
│ │ ├── application.yml
│ │ └── templates
│ │ ├── upload.html
│ │ └── uploadStatus.html
│ └── test
│ └── java
│ └── com
│ └── example
│ └── fastdfs
│ └── SpringBootFastDfsApplicationTests.java
├── Spring-Boot-Filter-Listener-Interceptor
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── filterlistenerinterceptor
│ │ │ ├── SpringBootFilterListenerInterceptorApplication.java
│ │ │ ├── controller
│ │ │ └── TestController.java
│ │ │ ├── filter
│ │ │ ├── CustomFilter.java
│ │ │ └── WebConfig.java
│ │ │ ├── interceptor
│ │ │ ├── CustomHandlerInterceptor.java
│ │ │ ├── InterceptorConf.java
│ │ │ └── InterceptorConf1.java
│ │ │ └── listener
│ │ │ └── CustomListener.java
│ └── resources
│ │ ├── application.properties
│ │ └── application.yml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── filterlistenerinterceptor
│ └── SpringBootFilterListenerInterceptorApplicationTests.java
├── Spring-Boot-Hibernate-Validator
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── hibernatevalidator
│ │ │ ├── SpringBootHibernateValidatorApplication.java
│ │ │ ├── bean
│ │ │ └── User.java
│ │ │ ├── config
│ │ │ ├── GlobalExceptionHandler.java
│ │ │ ├── MyConstraint.java
│ │ │ └── MyConstraintValidator.java
│ │ │ └── controller
│ │ │ ├── TestBeanController.java
│ │ │ ├── TestCustomController.java
│ │ │ └── TestParamController.java
│ └── resources
│ │ ├── ValidationMessages.properties
│ │ └── application.properties
│ └── test
│ └── java
│ └── com
│ └── example
│ └── hibernatevalidator
│ └── SpringBootHibernateValidatorApplicationTests.java
├── Spring-Boot-Https
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── https
│ │ │ ├── SpringBootHttpsApplication.java
│ │ │ ├── config
│ │ │ └── Http2Https.java
│ │ │ └── controller
│ │ │ └── HttpsController.java
│ └── resources
│ │ ├── application.yml
│ │ └── springboot_https.keystore
│ └── test
│ └── java
│ └── com
│ └── example
│ └── https
│ └── SpringBootHttpsApplicationTests.java
├── Spring-Boot-Jackson
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── jackson
│ │ │ ├── SpringBootJacksonApplication.java
│ │ │ ├── bean
│ │ │ └── User.java
│ │ │ ├── config
│ │ │ ├── JacksonConfig.java
│ │ │ ├── UserDeserializer.java
│ │ │ └── UserSerializer.java
│ │ │ └── controller
│ │ │ └── TestController.java
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── com
│ └── example
│ └── jackson
│ └── SpringBootJacksonApplicationTests.java
├── Spring-Boot-Jasypt
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── jasypt
│ │ │ ├── SpringBootJasyptApplication.java
│ │ │ └── controller
│ │ │ └── TestController.java
│ └── resources
│ │ ├── application.properties
│ │ └── application.yml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── jasypt
│ └── SpringBootJasyptApplicationTests.java
├── Spring-Boot-JdbcTemplate
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── jdbctemplate
│ │ │ ├── SpringBootJdbcTemplateApplication.java
│ │ │ ├── bean
│ │ │ ├── Student.java
│ │ │ └── StudentObj.java
│ │ │ ├── controller
│ │ │ └── TestController.java
│ │ │ ├── mapper
│ │ │ ├── StudentMapper.java
│ │ │ └── impl
│ │ │ │ └── StudentMapperImpl.java
│ │ │ └── service
│ │ │ ├── StudentService.java
│ │ │ └── impl
│ │ │ └── StudentServiceImpl.java
│ └── resources
│ │ └── application.yml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── jdbctemplate
│ └── SpringBootJdbcTemplateApplicationTests.java
├── Spring-Boot-Kafka
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── kafka
│ │ │ ├── SpringBootKafkaApplication.java
│ │ │ ├── config
│ │ │ ├── KafkaConsumerConfig.java
│ │ │ └── KafkaProducerConfig.java
│ │ │ ├── consumer
│ │ │ └── KafkaMessageConsumer.java
│ │ │ ├── controller
│ │ │ └── SendMessageController.java
│ │ │ └── entity
│ │ │ └── Message.java
│ └── resources
│ │ ├── application.properties
│ │ └── application.yml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── kafka
│ └── SpringBootKafkaApplicationTests.java
├── Spring-Boot-Logback
├── .mvn
│ └── wrapper
│ │ ├── MavenWrapperDownloader.java
│ │ ├── maven-wrapper.jar
│ │ └── maven-wrapper.properties
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── logback
│ │ │ ├── SpringBootLogbackApplication.java
│ │ │ ├── bean
│ │ │ └── User.java
│ │ │ └── controller
│ │ │ └── TestController.java
│ └── resources
│ │ ├── application.properties
│ │ ├── application.yml
│ │ └── logback-spring.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── logback
│ └── SpringBootLogbackApplicationTests.java
├── Spring-Boot-Mail
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── mail
│ │ │ ├── SpringBootMailApplication.java
│ │ │ └── controller
│ │ │ └── MailController.java
│ └── resources
│ │ ├── application-qq.yml
│ │ ├── application-wangyi.yml
│ │ ├── application.properties
│ │ ├── application.yml
│ │ ├── static
│ │ ├── file
│ │ │ └── 项目文档.docx
│ │ └── img
│ │ │ └── 优秀.jpg
│ │ └── templates
│ │ └── emailTemplate.html
│ └── test
│ └── java
│ └── com
│ └── example
│ └── mail
│ └── SpringBootMailApplicationTests.java
├── Spring-Boot-Mapper-PageHelper
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── mapperpagehelper
│ │ │ ├── SpringBootMapperPageHelperApplication.java
│ │ │ ├── bean
│ │ │ └── User.java
│ │ │ ├── config
│ │ │ └── MyMapper.java
│ │ │ ├── mapper
│ │ │ └── UserMapper.java
│ │ │ └── service
│ │ │ ├── IService.java
│ │ │ ├── UserService.java
│ │ │ └── impl
│ │ │ ├── BaseServiceImpl.java
│ │ │ └── UserServiceImpl.java
│ └── resources
│ │ ├── application.properties
│ │ ├── application.yml
│ │ ├── generatorConfig.xml
│ │ └── mapper
│ │ └── UserMapper.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── mapperpagehelper
│ └── SpringBootMapperPageHelperApplicationTests.java
├── Spring-Boot-MongoDB
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── mongodb
│ │ │ ├── SpringBootMongoDbApplication.java
│ │ │ ├── controller
│ │ │ └── UserController.java
│ │ │ ├── entity
│ │ │ └── User.java
│ │ │ ├── mapper
│ │ │ └── UserMapper.java
│ │ │ └── service
│ │ │ ├── UserService.java
│ │ │ └── impl
│ │ │ └── UserServiceImpl.java
│ └── resources
│ │ ├── application.properties
│ │ └── application.yml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── mongodb
│ └── SpringBootMongoDbApplicationTests.java
├── Spring-Boot-MultiDS1
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── multidatasource
│ │ │ ├── SpringBootMultiDs1Application.java
│ │ │ ├── config
│ │ │ ├── MysqlDatasourceConfig.java
│ │ │ └── OracleDatasourceConfig.java
│ │ │ ├── controller
│ │ │ └── StudentController.java
│ │ │ ├── mysqldao
│ │ │ └── MysqlStudentMapper.java
│ │ │ ├── oracledao
│ │ │ └── OracleStudentMapper.java
│ │ │ └── service
│ │ │ ├── StudentService.java
│ │ │ └── impl
│ │ │ └── StudentServiceImpl.java
│ └── resources
│ │ ├── application.properties
│ │ ├── application.yml
│ │ ├── application1.properties
│ │ └── mapper
│ │ ├── mysql
│ │ └── MysqlStudentMapper.xml
│ │ └── oracle
│ │ └── OracleStudentMapper.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── multidatasource
│ └── SpringBootMultiDs1ApplicationTests.java
├── Spring-Boot-MultiDS2-Switch
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── multidatasource
│ │ │ ├── SpringBootMultiDs2SwitchApplication.java
│ │ │ ├── controller
│ │ │ └── DataSourceController.java
│ │ │ ├── dao
│ │ │ └── StudentMapper.java
│ │ │ ├── datasourceConfig
│ │ │ ├── DynamicDataSource.java
│ │ │ ├── DynamicDataSourceAspect.java
│ │ │ ├── DynamicDataSourceContextHolder.java
│ │ │ ├── DynamicDataSourceRegister.java
│ │ │ └── TargetDataSource.java
│ │ │ └── service
│ │ │ ├── StudentService.java
│ │ │ └── impl
│ │ │ └── StudentServiceImpl.java
│ └── resources
│ │ ├── application.properties
│ │ ├── application.yml
│ │ └── mapper
│ │ └── StudentMapper.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── multidatasource
│ └── SpringBootMultiDs2SwitchApplicationTests.java
├── Spring-Boot-Mybatis
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── mybatis
│ │ │ ├── SpringBootMybatisApplication.java
│ │ │ ├── bean
│ │ │ └── Student.java
│ │ │ ├── controller
│ │ │ └── TestController.java
│ │ │ ├── mapper
│ │ │ └── StudentMapper.java
│ │ │ └── service
│ │ │ ├── StudentService.java
│ │ │ └── impl
│ │ │ └── StudentServiceImpl.java
│ └── resources
│ │ ├── application.yml
│ │ └── mapper
│ │ └── StudentMapper.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── mybatis
│ └── SpringBootMybatisApplicationTests.java
├── Spring-Boot-MybatisPlus
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── mybatisplus
│ │ │ ├── SpringBootMybatisPlusApplication.java
│ │ │ ├── controller
│ │ │ └── UserController.java
│ │ │ ├── entity
│ │ │ └── User.java
│ │ │ ├── mapper
│ │ │ └── UserMapper.java
│ │ │ └── service
│ │ │ ├── UserService.java
│ │ │ └── impl
│ │ │ └── UserServiceImpl.java
│ └── resources
│ │ ├── application.properties
│ │ ├── application.yml
│ │ └── mapper
│ │ └── UserMapper.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── mybatisplus
│ └── SpringBootMybatisPlusApplicationTests.java
├── Spring-Boot-Quartz
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── quartz
│ │ │ ├── SpringBootQuartzApplication.java
│ │ │ ├── config
│ │ │ └── SchedulerConfig.java
│ │ │ ├── controller
│ │ │ └── SchedulerController.java
│ │ │ ├── dao
│ │ │ └── JobAndTriggerMapper.java
│ │ │ ├── entity
│ │ │ └── JobAndTrigger.java
│ │ │ ├── job
│ │ │ ├── BaseJob.java
│ │ │ ├── HelloJob.java
│ │ │ └── NewJob.java
│ │ │ └── service
│ │ │ ├── JobAndTriggerService.java
│ │ │ └── impl
│ │ │ └── JobAndTriggerServiceImpl.java
│ └── resources
│ │ ├── application.yml
│ │ ├── file
│ │ ├── JobManager.html
│ │ ├── quartz-mysql.sql
│ │ └── quartzConfig.txt
│ │ ├── mapper
│ │ └── JobAndTriggerMapper.xml
│ │ └── quartz.properties
│ └── test
│ └── java
│ └── com
│ └── example
│ └── quartz
│ └── SpringBootQuartzApplicationTests.java
├── Spring-Boot-Rabbit-Reliable-Delivery
├── Rabbitmq-Common
│ ├── pom.xml
│ └── src
│ │ └── main
│ │ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── common
│ │ │ └── domain
│ │ │ ├── BrokerMessageLog.java
│ │ │ ├── BrokerMessageLogExample.java
│ │ │ ├── Order.java
│ │ │ └── OrderExample.java
│ │ └── resources
│ │ └── application.properties
├── Rabbitmq-Customer
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── customer
│ │ │ │ ├── RabbitmqCustomerApplication.java
│ │ │ │ ├── config
│ │ │ │ └── RabbitMqConfig.java
│ │ │ │ └── consumer
│ │ │ │ └── OrderReceiver.java
│ │ └── resources
│ │ │ └── application.yml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── customer
│ │ └── RabbitmqCustomerApplicationTests.java
├── Rabbitmq-Publisher
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── publisher
│ │ │ │ ├── SpringBootRabbitmqPublisherApplication.java
│ │ │ │ ├── constants
│ │ │ │ └── Constants.java
│ │ │ │ ├── controller
│ │ │ │ └── IndexController.java
│ │ │ │ ├── mapper
│ │ │ │ ├── BrokerMessageLogMapper.java
│ │ │ │ └── OrderMapper.java
│ │ │ │ ├── producer
│ │ │ │ └── OrderSender.java
│ │ │ │ ├── service
│ │ │ │ ├── OrderService.java
│ │ │ │ └── impl
│ │ │ │ │ └── OrderServiceImpl.java
│ │ │ │ └── task
│ │ │ │ ├── TaskConfig.java
│ │ │ │ └── TrySendTask.java
│ │ └── resources
│ │ │ ├── application.yml
│ │ │ ├── generatorConfig.xml
│ │ │ └── mappers
│ │ │ ├── BrokerMessageLogMapper.xml
│ │ │ └── OrderMapper.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── publisher
│ │ └── SpringBootRabbitmqPublisherApplicationTests.java
├── imgs
│ ├── RabbitMQ1.jpg
│ └── RabbitMQ2.jpg
├── pom.xml
└── test.sql
├── Spring-Boot-RabbitMQ
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── rabbitmq
│ │ │ ├── SpringBootRabbitMqApplication.java
│ │ │ ├── config
│ │ │ ├── ListenerConfig.java
│ │ │ └── TtlConfig.java
│ │ │ ├── controller
│ │ │ └── TestController.java
│ │ │ ├── domain
│ │ │ └── Student.java
│ │ │ └── listener
│ │ │ ├── MyAckListener.java
│ │ │ ├── MyDeadLetterListener.java
│ │ │ ├── MyDefaultListener.java
│ │ │ ├── MyDirectListener.java
│ │ │ ├── MyFanoutListener.java
│ │ │ ├── MyHeadListener.java
│ │ │ ├── MyJasonListener.java
│ │ │ ├── MyPluginListener.java
│ │ │ ├── MyTopicListener.java
│ │ │ └── MyWorkListener.java
│ └── resources
│ │ ├── application.properties
│ │ └── application.yml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── rabbitmq
│ └── SpringBootRabbitMqApplicationTests.java
├── Spring-Boot-Redis-Anno
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── redis
│ │ │ ├── SpringBootRedisAnnoApplication.java
│ │ │ ├── bean
│ │ │ └── Student.java
│ │ │ ├── config
│ │ │ └── RedisConfig.java
│ │ │ ├── controller
│ │ │ └── StudentController.java
│ │ │ ├── dao
│ │ │ └── StudentMapper.java
│ │ │ └── service
│ │ │ ├── StudentService.java
│ │ │ └── impl
│ │ │ └── StudentServiceImpl.java
│ └── resources
│ │ ├── application.properties
│ │ ├── application.yml
│ │ └── mapper
│ │ └── StudentMapper.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── redis
│ └── SpringBootRedisAnnoApplicationTests.java
├── Spring-Boot-Smartdoc
├── doc
│ └── markdown
│ │ └── AllInOne-V202001091931.md
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── smartdoc
│ │ │ ├── SpringBootSmartdocApplication.java
│ │ │ ├── controller
│ │ │ └── UserController.java
│ │ │ └── model
│ │ │ └── User.java
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── com
│ └── example
│ └── smartdoc
│ └── SpringBootSmartdocApplicationTests.java
├── Spring-Boot-Socket
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── socket
│ │ │ ├── SpringBootSocketApplication.java
│ │ │ ├── client
│ │ │ └── Client.java
│ │ │ └── server
│ │ │ ├── Server.java
│ │ │ ├── Server1.java
│ │ │ ├── Server2.java
│ │ │ └── Server3.java
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── com
│ └── example
│ └── socket
│ └── SpringBootSocketApplicationTests.java
├── Spring-Boot-Starter
├── myapp-spring-boot-autoconfigure
│ ├── pom.xml
│ └── src
│ │ └── main
│ │ ├── java
│ │ └── com
│ │ │ └── codeming
│ │ │ └── starter
│ │ │ ├── HelloProperties.java
│ │ │ ├── HelloService.java
│ │ │ └── HelloServiceAutoConfiguration.java
│ │ └── resources
│ │ └── META-INF
│ │ └── spring.factories
├── myapp-spring-boot-starter-test
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── codeming
│ │ │ │ └── startertest
│ │ │ │ ├── MyappSpringBootStarterTestApplication.java
│ │ │ │ └── controller
│ │ │ │ └── HelloController.java
│ │ └── resources
│ │ │ └── application.properties
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── codeming
│ │ └── startertest
│ │ └── MyappSpringBootStarterTestApplicationTests.java
└── myapp-spring-boot-starter
│ ├── .idea
│ ├── $CACHE_FILE$
│ ├── compiler.xml
│ ├── encodings.xml
│ ├── inspectionProfiles
│ │ └── Project_Default.xml
│ ├── misc.xml
│ ├── vcs.xml
│ └── workspace.xml
│ ├── myapp-spring-boot-starter.iml
│ └── pom.xml
├── Spring-Boot-Swagger2
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── swagger2
│ │ │ ├── SpringBootSwagger2Application.java
│ │ │ ├── bean
│ │ │ └── User.java
│ │ │ ├── config
│ │ │ └── SwaggerConfig.java
│ │ │ └── controller
│ │ │ └── UserController.java
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── com
│ └── example
│ └── swagger2
│ └── SpringBootSwagger2ApplicationTests.java
├── Spring-Boot-Swaggerdoc
├── docs
│ ├── asciidoc
│ │ ├── generated
│ │ │ ├── all.adoc
│ │ │ ├── definitions.adoc
│ │ │ ├── overview.adoc
│ │ │ ├── paths.adoc
│ │ │ └── security.adoc
│ │ ├── html
│ │ │ ├── all.html
│ │ │ ├── definitions.html
│ │ │ ├── overview.html
│ │ │ ├── paths.html
│ │ │ └── security.html
│ │ └── pdf
│ │ │ ├── all.pdf
│ │ │ ├── definitions.pdf
│ │ │ ├── overview.pdf
│ │ │ ├── paths.pdf
│ │ │ └── security.pdf
│ ├── confluence
│ │ └── generated
│ │ │ ├── all.txt
│ │ │ ├── definitions.txt
│ │ │ ├── overview.txt
│ │ │ ├── paths.txt
│ │ │ └── security.txt
│ └── markdown
│ │ └── generated
│ │ ├── all.md
│ │ ├── definitions.md
│ │ ├── overview.md
│ │ ├── paths.md
│ │ └── security.md
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── swaggerdoc
│ │ │ ├── SpringBootSwaggerdocApplication.java
│ │ │ ├── config
│ │ │ └── SwaggerConfig.java
│ │ │ ├── controller
│ │ │ └── UserController.java
│ │ │ ├── model
│ │ │ └── User.java
│ │ │ └── util
│ │ │ └── SwaggerUtils.java
│ └── resources
│ │ ├── application.properties
│ │ ├── fonts
│ │ ├── KaiGenGothicCN-Bold-Italic.ttf
│ │ ├── KaiGenGothicCN-Bold.ttf
│ │ ├── KaiGenGothicCN-Regular-Italic.ttf
│ │ ├── KaiGenGothicCN-Regular.ttf
│ │ ├── RobotoMono-Bold.ttf
│ │ ├── RobotoMono-BoldItalic.ttf
│ │ ├── RobotoMono-Italic.ttf
│ │ └── RobotoMono-Regular.ttf
│ │ └── themes
│ │ ├── cn-theme.yml
│ │ ├── jp-theme.yml
│ │ ├── kr-theme.yml
│ │ └── tw-theme.yml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── swaggerdoc
│ └── SpringBootSwaggerdocApplicationTests.java
├── Spring-Boot-Test
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── test
│ │ │ ├── SpringBootTestApplication.java
│ │ │ ├── bean
│ │ │ └── User.java
│ │ │ ├── controller
│ │ │ └── UserController.java
│ │ │ ├── dao
│ │ │ └── UserMapper.java
│ │ │ └── service
│ │ │ ├── UserService.java
│ │ │ └── impl
│ │ │ └── UserServiceImpl.java
│ └── resources
│ │ ├── application.properties
│ │ ├── application.yml
│ │ └── mapper
│ │ └── UserMapper.xml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── test
│ └── SpringBootTestApplicationTests.java
├── Spring-Boot-Thymeleaf
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── thymeleaf
│ │ │ ├── SpringBootThymeleafApplication.java
│ │ │ ├── bean
│ │ │ └── User.java
│ │ │ └── controller
│ │ │ └── IndexController.java
│ └── resources
│ │ ├── application.properties
│ │ └── templates
│ │ └── index.html
│ └── test
│ └── java
│ └── com
│ └── example
│ └── thymeleaf
│ └── SpringBootThymeleafApplicationTests.java
├── Spring-Boot-Updownload
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── updownload
│ │ │ ├── SpringBootUpdownloadApplication.java
│ │ │ └── controller
│ │ │ ├── FileDownloadController.java
│ │ │ └── FileUploadController.java
│ └── resources
│ │ ├── application.properties
│ │ └── templates
│ │ ├── download.html
│ │ ├── upload.html
│ │ └── uploadBatch.html
│ └── test
│ └── java
│ └── com
│ └── example
│ └── updownload
│ └── SpringBootUpdownloadApplicationTests.java
├── Spring-Boot-WebService
├── .idea
│ ├── $CACHE_FILE$
│ ├── .gitignore
│ ├── Spring-Boot-WebService.iml
│ ├── compiler.xml
│ ├── encodings.xml
│ ├── libraries
│ │ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml
│ │ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml
│ │ ├── Maven__com_fasterxml_classmate_1_4_0.xml
│ │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_10.xml
│ │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_9_10.xml
│ │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_9_10_1.xml
│ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_10.xml
│ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_10.xml
│ │ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_10.xml
│ │ ├── Maven__com_fasterxml_woodstox_woodstox_core_5_0_3.xml
│ │ ├── Maven__com_jayway_jsonpath_json_path_2_4_0.xml
│ │ ├── Maven__com_sun_activation_javax_activation_1_2_0.xml
│ │ ├── Maven__com_sun_istack_istack_commons_runtime_3_0_7.xml
│ │ ├── Maven__com_sun_xml_fastinfoset_FastInfoset_1_2_15.xml
│ │ ├── Maven__com_sun_xml_messaging_saaj_saaj_impl_1_5_0.xml
│ │ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
│ │ ├── Maven__jakarta_activation_jakarta_activation_api_1_2_1.xml
│ │ ├── Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml
│ │ ├── Maven__javax_activation_javax_activation_api_1_2_0.xml
│ │ ├── Maven__javax_annotation_javax_annotation_api_1_3_2.xml
│ │ ├── Maven__javax_validation_validation_api_2_0_1_Final.xml
│ │ ├── Maven__javax_xml_bind_jaxb_api_2_3_1.xml
│ │ ├── Maven__javax_xml_soap_javax_xml_soap_api_1_4_0.xml
│ │ ├── Maven__javax_xml_ws_jaxws_api_2_3_1.xml
│ │ ├── Maven__junit_junit_4_12.xml
│ │ ├── Maven__net_bytebuddy_byte_buddy_1_9_16.xml
│ │ ├── Maven__net_bytebuddy_byte_buddy_agent_1_9_16.xml
│ │ ├── Maven__net_minidev_accessors_smart_1_2.xml
│ │ ├── Maven__net_minidev_json_smart_2_3.xml
│ │ ├── Maven__org_apache_cxf_cxf_core_3_3_4.xml
│ │ ├── Maven__org_apache_cxf_cxf_rt_bindings_soap_3_3_4.xml
│ │ ├── Maven__org_apache_cxf_cxf_rt_bindings_xml_3_3_4.xml
│ │ ├── Maven__org_apache_cxf_cxf_rt_databinding_jaxb_3_3_4.xml
│ │ ├── Maven__org_apache_cxf_cxf_rt_frontend_jaxws_3_3_4.xml
│ │ ├── Maven__org_apache_cxf_cxf_rt_frontend_simple_3_3_4.xml
│ │ ├── Maven__org_apache_cxf_cxf_rt_transports_http_3_3_4.xml
│ │ ├── Maven__org_apache_cxf_cxf_rt_ws_addr_3_3_4.xml
│ │ ├── Maven__org_apache_cxf_cxf_rt_ws_policy_3_3_4.xml
│ │ ├── Maven__org_apache_cxf_cxf_rt_wsdl_3_3_4.xml
│ │ ├── Maven__org_apache_geronimo_specs_geronimo_jta_1_1_spec_1_1_1.xml
│ │ ├── Maven__org_apache_geronimo_specs_geronimo_ws_metadata_2_0_spec_1_1_3.xml
│ │ ├── Maven__org_apache_logging_log4j_log4j_api_2_11_2.xml
│ │ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xml
│ │ ├── Maven__org_apache_neethi_neethi_3_1_1.xml
│ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_29.xml
│ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_29.xml
│ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_29.xml
│ │ ├── Maven__org_apache_ws_xmlschema_xmlschema_core_2_2_4.xml
│ │ ├── Maven__org_assertj_assertj_core_3_11_1.xml
│ │ ├── Maven__org_codehaus_woodstox_stax2_api_3_1_4.xml
│ │ ├── Maven__org_glassfish_jaxb_jaxb_runtime_2_3_1.xml
│ │ ├── Maven__org_glassfish_jaxb_txw2_2_3_1.xml
│ │ ├── Maven__org_hamcrest_hamcrest_core_1_3.xml
│ │ ├── Maven__org_hamcrest_hamcrest_library_1_3.xml
│ │ ├── Maven__org_hibernate_validator_hibernate_validator_6_0_18_Final.xml
│ │ ├── Maven__org_jacorb_jacorb_omgapi_3_7.xml
│ │ ├── Maven__org_jboss_logging_jboss_logging_3_3_3_Final.xml
│ │ ├── Maven__org_jboss_spec_javax_rmi_jboss_rmi_api_1_0_spec_1_0_6_Final.xml
│ │ ├── Maven__org_jvnet_mimepull_mimepull_1_9_12.xml
│ │ ├── Maven__org_jvnet_staxex_stax_ex_1_8.xml
│ │ ├── Maven__org_mockito_mockito_core_2_23_4.xml
│ │ ├── Maven__org_objenesis_objenesis_2_6.xml
│ │ ├── Maven__org_ow2_asm_asm_7_1.xml
│ │ ├── Maven__org_skyscreamer_jsonassert_1_5_0.xml
│ │ ├── Maven__org_slf4j_jul_to_slf4j_1_7_29.xml
│ │ ├── Maven__org_slf4j_slf4j_api_1_7_29.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_test_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_web_services_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_test_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_11_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_aop_5_1_12_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_beans_5_1_12_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_context_5_1_12_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_core_5_1_12_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_expression_5_1_12_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_jcl_5_1_12_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_oxm_5_1_12_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_test_5_1_12_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_web_5_1_12_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_webmvc_5_1_12_RELEASE.xml
│ │ ├── Maven__org_springframework_ws_spring_ws_core_3_0_8_RELEASE.xml
│ │ ├── Maven__org_springframework_ws_spring_xml_3_0_8_RELEASE.xml
│ │ ├── Maven__org_xmlunit_xmlunit_core_2_6_3.xml
│ │ ├── Maven__org_yaml_snakeyaml_1_23.xml
│ │ ├── Maven__wsdl4j_wsdl4j_1_6_3.xml
│ │ └── Maven__xml_resolver_xml_resolver_1_2.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── vcs.xml
├── WebService-Client
│ ├── .mvn
│ │ └── wrapper
│ │ │ ├── MavenWrapperDownloader.java
│ │ │ ├── maven-wrapper.jar
│ │ │ └── maven-wrapper.properties
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── client
│ │ │ │ ├── WebServiceClientApplication.java
│ │ │ │ └── controller
│ │ │ │ └── TestController.java
│ │ └── resources
│ │ │ └── application.properties
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── client
│ │ └── WebServiceClientApplicationTests.java
└── WebService-Server
│ ├── .mvn
│ └── wrapper
│ │ ├── MavenWrapperDownloader.java
│ │ ├── maven-wrapper.jar
│ │ └── maven-wrapper.properties
│ ├── pom.xml
│ └── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── server
│ │ │ ├── WebServiceServerApplication.java
│ │ │ ├── config
│ │ │ └── CxfConfig.java
│ │ │ └── service
│ │ │ ├── DemoService.java
│ │ │ └── impl
│ │ │ └── DemoServiceImpl.java
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── com
│ └── example
│ └── server
│ └── WebServiceServerApplicationTests.java
├── Spring-Boot-Webflux-MongoDB
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── mongodb
│ │ │ ├── SpringBootMongoDbWebfluxApplication.java
│ │ │ ├── config
│ │ │ ├── AsyncServlet.java
│ │ │ └── SyncServlet.java
│ │ │ ├── controller
│ │ │ └── UserController.java
│ │ │ ├── entity
│ │ │ └── User.java
│ │ │ ├── mapper
│ │ │ └── UserMapper.java
│ │ │ └── service
│ │ │ ├── UserService.java
│ │ │ └── impl
│ │ │ └── UserServiceImpl.java
│ └── resources
│ │ ├── application.properties
│ │ └── application.yml
│ └── test
│ └── java
│ └── com
│ └── example
│ └── mongodb
│ └── SpringBootMongoDbWebfluxApplicationTests.java
├── Spring-Boot-Websocket-Redis
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── websocket
│ │ │ ├── SpringBootWebsocketRedisApplication.java
│ │ │ ├── config
│ │ │ ├── RedisConfig.java
│ │ │ └── WebSocketConfig.java
│ │ │ ├── controller
│ │ │ └── ChatController.java
│ │ │ ├── listener
│ │ │ ├── RedisMessageListener.java
│ │ │ └── WebSocketEventListener.java
│ │ │ ├── model
│ │ │ └── ChatMessage.java
│ │ │ ├── service
│ │ │ └── ChatService.java
│ │ │ └── util
│ │ │ └── JsonUtil.java
│ └── resources
│ │ ├── application.properties
│ │ └── static
│ │ ├── css
│ │ └── main.css
│ │ ├── index.html
│ │ └── js
│ │ └── main.js
│ └── test
│ └── java
│ └── com
│ └── example
│ └── websocket
│ └── SpringBootWebsocketRedisApplicationTests.java
├── Spring-Boot-Websocket
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── websocket
│ │ │ ├── SpringBootWebsocketApplication.java
│ │ │ ├── config
│ │ │ └── WebSocketConfig.java
│ │ │ ├── controller
│ │ │ └── ChatController.java
│ │ │ ├── listener
│ │ │ └── WebSocketEventListener.java
│ │ │ └── model
│ │ │ └── ChatMessage.java
│ └── resources
│ │ ├── application.properties
│ │ └── static
│ │ ├── css
│ │ └── main.css
│ │ ├── index.html
│ │ └── js
│ │ └── main.js
│ └── test
│ └── java
│ └── com
│ └── example
│ └── websocket
│ └── SpringBootWebsocketApplicationTests.java
├── Spring-Boot-XSSFilter
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── example
│ │ │ └── xssfilter
│ │ │ ├── SpringBootXssFilterApplication.java
│ │ │ ├── config
│ │ │ └── XssFilterConfig.java
│ │ │ ├── controller
│ │ │ └── TestController.java
│ │ │ ├── filter
│ │ │ ├── XssFilter.java
│ │ │ └── XssHttpServletRequestWrapper.java
│ │ │ └── utils
│ │ │ └── JsoupUtil.java
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── com
│ └── example
│ └── xssfilter
│ └── SpringBootXssFilterApplicationTests.java
├── Spring-Boot-Zookeeper
├── pom.xml
└── src
│ └── main
│ ├── java
│ └── com
│ │ └── springboot
│ │ ├── SpringBootZookeeperApplication.java
│ │ ├── config
│ │ ├── ZookeeperConfig.java
│ │ └── ZookeeperProps.java
│ │ ├── controller
│ │ └── ZookeeperController.java
│ │ ├── exception
│ │ └── GlobalErrorHandler.java
│ │ └── service
│ │ ├── ZookeeperService.java
│ │ └── impl
│ │ └── ZookeeperServiceImpl.java
│ └── resources
│ └── application.yml
└── doc
├── SpringBootAOP记录用户请求日志.md
├── SpringBoot中处理跨域问题.md
├── SpringBoot中实现异步调用.md
├── SpringBoot中配置过滤器监听器和拦截器.md
├── SpringBoot使用Jsoup防御XSS攻击.md
├── SpringBoot单元测试.md
├── SpringBoot启用HTTPS加密访问.md
├── SpringBoot实现上传下载.md
├── SpringBoot整合Actuator监控应用.md
├── SpringBoot整合Admin监控服务.md
├── SpringBoot整合Devtools热部署.md
├── SpringBoot整合ElasticSearch7.6.md
├── SpringBoot整合FastDFS.md
├── SpringBoot整合Hibernate-Validator.md
├── SpringBoot整合JackSon.md
├── SpringBoot整合Jasypt实现盐值加密.md
├── SpringBoot整合JdbcTemplate.md
├── SpringBoot整合Kafka.md
├── SpringBoot整合Logback.md
├── SpringBoot整合Mail发送邮件.md
├── SpringBoot整合MongoDB.md
├── SpringBoot整合MyBatis和Druid.md
├── SpringBoot整合Mybatis-Plus.md
├── SpringBoot整合Quartz实现分布式定时任务.md
├── SpringBoot整合RabbitMQ.md
├── SpringBoot整合Socket.md
├── SpringBoot整合Swagger2构建RESTfulAPI.md
├── SpringBoot整合WebService.md
├── SpringBoot整合模板引擎Thymeleaf.md
├── SpringBoot整合缓存框架(注解版).md
├── SpringBoot整合通用Mapper和PageHelper.md
├── SpringBoot的基础配置.md
├── SpringBoot统一异常处理之ErrorController.md
├── SpringBoot统一异常处理之ErrorHandler.md
├── SpringBoot自定义线程池实现多线程调用.md
├── SpringBoot配置多数据源.md
├── SpringBoot配置多数据源动态切换.md
├── SpringBoot集成Webflux整合MongoDB.md
├── SpringBoot项目打包部署.md
├── 开启SpringBoot.md
└── 深入学习SpringBoot自动装配.md
/.gitignore:
--------------------------------------------------------------------------------
1 | */.idea
2 | */.mvn
3 | */target
4 | */HELP.md
5 | */mvnw
6 | */mvnw.cmd
7 | */.gitignore
8 |
--------------------------------------------------------------------------------
/Spring-Boot-ActiveMQ/src/main/java/com/example/activemq/SpringBootActiveMqApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.activemq;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootActiveMqApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootActiveMqApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-ActiveMQ/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-ActiveMQ/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | spring:
2 | activemq:
3 | #ActiveMQ通讯地址
4 | broker-url: tcp://localhost:61616
5 | #用户名
6 | user: admin
7 | #密码
8 | password: admin
9 | #是否启用内存模式(就是不安装MQ,项目启动时同时启动一个MQ实例)
10 | in-memory: false
11 | packages:
12 | #信任所有的包
13 | trust-all: true
14 | pool:
15 | #是否替换默认的连接池,使用ActiveMQ的连接池需引入的依赖
16 | enabled: true
17 | max-connections: 10
18 | server:
19 | port: 8099
--------------------------------------------------------------------------------
/Spring-Boot-ActiveMQ/src/test/java/com/example/activemq/SpringBootActiveMqApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.activemq;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class SpringBootActiveMqApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Admin/Spring-Boot-Admin-Client/src/main/java/com/example/client/SpringBootAdminClientApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.client;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootAdminClientApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootAdminClientApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Admin/Spring-Boot-Admin-Client/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Admin/Spring-Boot-Admin-Client/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | management:
2 | endpoint:
3 | shutdown:
4 | enabled: true
5 | health:
6 | show-details: always
7 | endpoints:
8 | web:
9 | exposure:
10 | include: '*'
11 | spring:
12 | boot:
13 | admin:
14 | client:
15 | instance:
16 | service-base-url: http://localhost:8081/
17 | url: http://localhost:8080/admin-server #服务端监控地址
18 | server:
19 | port: 8081
20 | info:
21 | app:
22 | name: "@project.name@"
23 | description: "@project.description@"
24 | version: "@project.version@"
25 | spring-boot-version: "@project.parent.version@"
26 |
--------------------------------------------------------------------------------
/Spring-Boot-Admin/Spring-Boot-Admin-Client/src/test/java/com/example/client/SpringBootAdminClientApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.client;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class SpringBootAdminClientApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Admin/Spring-Boot-Admin-Server/src/main/java/com/example/server/SpringBootAdminServerApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.server;
2 |
3 | import de.codecentric.boot.admin.server.config.EnableAdminServer;
4 | import org.springframework.boot.SpringApplication;
5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
6 |
7 | @EnableAdminServer
8 | @SpringBootApplication
9 | public class SpringBootAdminServerApplication {
10 |
11 | public static void main(String[] args) {
12 | SpringApplication.run(SpringBootAdminServerApplication.class, args);
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Spring-Boot-Admin/Spring-Boot-Admin-Server/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Admin/Spring-Boot-Admin-Server/src/test/java/com/example/server/SpringBootAdminServerApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.server;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class SpringBootAdminServerApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Aop-Log/src/main/java/com/example/aoplog/SpringBootAopLogApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.aoplog;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootAopLogApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootAopLogApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Aop-Log/src/main/java/com/example/aoplog/annotation/Log.java:
--------------------------------------------------------------------------------
1 | package com.example.aoplog.annotation;
2 |
3 | import java.lang.annotation.ElementType;
4 | import java.lang.annotation.Retention;
5 | import java.lang.annotation.RetentionPolicy;
6 | import java.lang.annotation.Target;
7 |
8 | /**
9 | * Created by dengzhiming on 2019/4/11
10 | */
11 | @Target(ElementType.METHOD)
12 | @Retention(RetentionPolicy.RUNTIME)
13 | public @interface Log {
14 | String value() default "";
15 | }
16 |
--------------------------------------------------------------------------------
/Spring-Boot-Aop-Log/src/main/java/com/example/aoplog/dao/SysLogMapper.java:
--------------------------------------------------------------------------------
1 | package com.example.aoplog.dao;
2 |
3 | import com.example.aoplog.bean.SysLog;
4 | import org.apache.ibatis.annotations.Mapper;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * Created by dengzhiming on 2019/4/11
9 | */
10 | @Repository
11 | @Mapper
12 | public interface SysLogMapper {
13 | void saveSysLog(SysLog syslog);
14 | }
15 |
16 |
--------------------------------------------------------------------------------
/Spring-Boot-Aop-Log/src/main/java/com/example/aoplog/utils/HttpContextUtils.java:
--------------------------------------------------------------------------------
1 | package com.example.aoplog.utils;
2 |
3 | import org.springframework.web.context.request.RequestContextHolder;
4 | import org.springframework.web.context.request.ServletRequestAttributes;
5 |
6 | import javax.servlet.http.HttpServletRequest;
7 |
8 | public class HttpContextUtils {
9 | public static HttpServletRequest getHttpServletRequest() {
10 | return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Spring-Boot-Aop-Log/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Aop-Log/src/main/resources/mapper/SysLogMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | insert into SYS_LOG(id,userName,operation,time,method,params,ip,createTime)
7 | values(#{id},#{userName},#{operation},#{time},#{method},#{params},#{ip},#{createTime})
8 |
9 |
--------------------------------------------------------------------------------
/Spring-Boot-Aop-Log/src/test/java/com/example/aoplog/SpringBootAopLogApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.aoplog;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class SpringBootAopLogApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Async/src/main/java/com/example/async/SpringBootAsyncApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.async;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 | import org.springframework.scheduling.annotation.EnableAsync;
6 |
7 | @EnableAsync
8 | @SpringBootApplication
9 | public class SpringBootAsyncApplication {
10 |
11 | public static void main(String[] args) {
12 | SpringApplication.run(SpringBootAsyncApplication.class, args);
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Spring-Boot-Async/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Async/src/test/java/com/example/async/SpringBootAsyncApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.async;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | public class SpringBootAsyncApplicationTests {
8 |
9 | @Test
10 | public void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Autoconfig/src/main/java/com/example/autoconfig/SpringBootAutoconfigApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.autoconfig;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | /**
7 | * @author dengzhiming
8 | * @date 2020/02/03
9 | */
10 | @SpringBootApplication
11 | public class SpringBootAutoconfigApplication {
12 |
13 | public static void main(String[] args) {
14 | SpringApplication.run(SpringBootAutoconfigApplication.class, args);
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/Spring-Boot-Autoconfig/src/main/java/com/example/autoconfig/annotation/CustomService.java:
--------------------------------------------------------------------------------
1 | package com.example.autoconfig.annotation;
2 |
3 | import org.springframework.stereotype.Service;
4 | import java.lang.annotation.*;
5 |
6 | /**
7 | * @author dengzhiming
8 | * @date 2020/02/03
9 | */
10 | @Target({ElementType.TYPE})
11 | @Retention(RetentionPolicy.RUNTIME)
12 | @Documented
13 | @Service
14 | public @interface CustomService {
15 | String value() default "";
16 | }
17 |
--------------------------------------------------------------------------------
/Spring-Boot-Autoconfig/src/main/java/com/example/autoconfig/annotation/EnableHelloWorld.java:
--------------------------------------------------------------------------------
1 | package com.example.autoconfig.annotation;
2 |
3 | import com.example.autoconfig.selector.HelloWorldImportSelector;
4 | import org.springframework.context.annotation.Import;
5 |
6 | import java.lang.annotation.*;
7 |
8 | /**
9 | * @author dengzhiming
10 | * @date 2020/02/03
11 | */
12 | @Target({ElementType.TYPE})
13 | @Retention(RetentionPolicy.RUNTIME)
14 | @Documented
15 | //@Import(HelloWorldConfiguration.class)
16 | @Import(HelloWorldImportSelector.class)
17 | public @interface EnableHelloWorld {
18 | }
19 |
--------------------------------------------------------------------------------
/Spring-Boot-Autoconfig/src/main/java/com/example/autoconfig/configuration/HelloWorldAutoConfiguration.java:
--------------------------------------------------------------------------------
1 | package com.example.autoconfig.configuration;
2 |
3 | import com.example.autoconfig.annotation.EnableHelloWorld;
4 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
5 | import org.springframework.context.annotation.Configuration;
6 |
7 | /**
8 | * @author dengzhiming
9 | * @date 2020/02/03
10 | */
11 | @Configuration
12 | @EnableHelloWorld
13 | @ConditionalOnProperty(name = "helloworld", havingValue = "true")
14 | public class HelloWorldAutoConfiguration {
15 | }
16 |
--------------------------------------------------------------------------------
/Spring-Boot-Autoconfig/src/main/java/com/example/autoconfig/configuration/HelloWorldConfiguration.java:
--------------------------------------------------------------------------------
1 | package com.example.autoconfig.configuration;
2 |
3 | import org.springframework.context.annotation.Bean;
4 | import org.springframework.context.annotation.Configuration;
5 |
6 | /**
7 | * @author dengzhiming
8 | * @date 2020/02/03
9 | */
10 | @Configuration
11 | public class HelloWorldConfiguration {
12 | @Bean
13 | public String hello() {
14 | return "hello world";
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Spring-Boot-Autoconfig/src/main/java/com/example/autoconfig/selector/HelloWorldImportSelector.java:
--------------------------------------------------------------------------------
1 | package com.example.autoconfig.selector;
2 |
3 | import com.example.autoconfig.configuration.HelloWorldConfiguration;
4 | import org.springframework.context.annotation.ImportSelector;
5 | import org.springframework.core.type.AnnotationMetadata;
6 |
7 | /**
8 | * @author dengzhiming
9 | * @date 2020/02/03
10 | */
11 | public class HelloWorldImportSelector implements ImportSelector {
12 | @Override
13 | public String[] selectImports(AnnotationMetadata importingClassMetadata) {
14 | return new String[]{HelloWorldConfiguration.class.getName()};
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Spring-Boot-Autoconfig/src/main/java/com/example/autoconfig/service/TestService.java:
--------------------------------------------------------------------------------
1 | package com.example.autoconfig.service;
2 |
3 | import com.example.autoconfig.annotation.CustomService;
4 |
5 | /**
6 | * @author dengzhiming
7 | * @date 2020/02/03
8 | */
9 | @CustomService
10 | //@Service
11 | public class TestService {
12 | }
13 |
--------------------------------------------------------------------------------
/Spring-Boot-Autoconfig/src/main/resources/META-INF/spring.factories:
--------------------------------------------------------------------------------
1 | # Auto Configure
2 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
3 | com.example.autoconfig.configuration.HelloWorldAutoConfiguration
4 |
--------------------------------------------------------------------------------
/Spring-Boot-Autoconfig/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | helloworld=true
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Autoconfig/src/test/java/com/example/autoconfig/SpringBootAutoconfigApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.autoconfig;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class SpringBootAutoconfigApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Cors-Support/src/main/java/com/example/corssupport/SpringBootCorsSupportApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.corssupport;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootCorsSupportApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootCorsSupportApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Cors-Support/src/main/java/com/example/corssupport/config/WebConfigurer.java:
--------------------------------------------------------------------------------
1 | package com.example.corssupport.config;
2 |
3 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
4 |
5 | /**
6 | * Created by dengzhiming on 2019/6/30
7 | */
8 | //@Configuration
9 | public class WebConfigurer implements WebMvcConfigurer {
10 | /*@Override
11 | public void addCorsMappings(CorsRegistry registry) {
12 | registry.addMapping("/**")
13 | .allowedOrigins("*")
14 | .allowedMethods("GET");
15 | }*/
16 | }
17 |
--------------------------------------------------------------------------------
/Spring-Boot-Cors-Support/src/main/java/com/example/corssupport/controller/TestController.java:
--------------------------------------------------------------------------------
1 | package com.example.corssupport.controller;
2 |
3 | import org.springframework.stereotype.Controller;
4 | import org.springframework.web.bind.annotation.GetMapping;
5 | import org.springframework.web.bind.annotation.ResponseBody;
6 |
7 | /**
8 | * Created by dengzhiming on 2019/6/30
9 | */
10 | @Controller
11 | public class TestController {
12 | @GetMapping("index")
13 | public String index() {
14 | return "index";
15 | }
16 |
17 | @GetMapping("hello")
18 | @ResponseBody
19 | //@CrossOrigin(value = "*")
20 | public String hello() {
21 | return "hello";
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Spring-Boot-Cors-Support/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Cors-Support/src/main/resources/templates/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 跨域测试
6 |
7 |
8 |
9 |
10 |
11 |
18 |
--------------------------------------------------------------------------------
/Spring-Boot-Cors-Support/src/test/java/com/example/corssupport/SpringBootCorsSupportApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.corssupport;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | public class SpringBootCorsSupportApplicationTests {
8 |
9 | @Test
10 | public void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Ehcache-Anno/src/main/java/com/example/ehcache/SpringBootEhcacheAnnoApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.ehcache;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 | import org.springframework.cache.annotation.EnableCaching;
6 |
7 | @EnableCaching
8 | @SpringBootApplication
9 | public class SpringBootEhcacheAnnoApplication {
10 |
11 | public static void main(String[] args) {
12 | SpringApplication.run(SpringBootEhcacheAnnoApplication.class, args);
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Spring-Boot-Ehcache-Anno/src/main/java/com/example/ehcache/dao/StudentMapper.java:
--------------------------------------------------------------------------------
1 | package com.example.ehcache.dao;
2 |
3 | import com.example.ehcache.bean.Student;
4 | import org.apache.ibatis.annotations.Mapper;
5 | import org.springframework.stereotype.Repository;
6 |
7 | /**
8 | * Created by dengzhiming on 2019/4/17
9 | */
10 | @Repository
11 | @Mapper
12 | public interface StudentMapper {
13 | int add(Student student);
14 |
15 | int update(Student student);
16 |
17 | int deleteById(String sno);
18 |
19 | Student queryStudentById(String id);
20 | }
21 |
--------------------------------------------------------------------------------
/Spring-Boot-Ehcache-Anno/src/main/java/com/example/ehcache/service/StudentService.java:
--------------------------------------------------------------------------------
1 | package com.example.ehcache.service;
2 |
3 | import com.example.ehcache.bean.Student;
4 |
5 | /**
6 | * Created by dengzhiming on 2019/4/17
7 | */
8 | public interface StudentService {
9 |
10 | Student add(Student student);
11 |
12 | Student update(Student student);
13 |
14 | void deleteById(String sno);
15 |
16 | Student queryStudentById(String sno);
17 | }
18 |
--------------------------------------------------------------------------------
/Spring-Boot-Ehcache-Anno/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Ehcache-Anno/src/main/resources/ehcache.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
12 |
13 |
21 |
--------------------------------------------------------------------------------
/Spring-Boot-Ehcache-Anno/src/main/resources/mapper/StudentMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | insert into student1 (sno,name,sex) values(#{sno},#{name},#{sex})
7 |
8 |
9 | update student1 set name=#{name},sex=#{sex} where sno=#{sno}
10 |
11 |
12 | delete from student1 where sno=#{sno}
13 |
14 |
17 |
--------------------------------------------------------------------------------
/Spring-Boot-Ehcache-Anno/src/test/java/com/example/ehcache/SpringBootEhcacheAnnoApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.ehcache;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | public class SpringBootEhcacheAnnoApplicationTests {
8 |
9 | @Test
10 | public void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/java/com/example/elasticsearch/SpringBootElasticsearchApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.elasticsearch;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootElasticsearchApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootElasticsearchApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/java/com/example/elasticsearch/domain/BookDto.java:
--------------------------------------------------------------------------------
1 | package com.example.elasticsearch.domain;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | import java.io.Serializable;
9 |
10 | @Data
11 | @Builder
12 | @NoArgsConstructor
13 | @AllArgsConstructor
14 | public class BookDto implements Serializable {
15 |
16 | /**
17 | * Id
18 | */
19 | private Long id;
20 |
21 | /**
22 | * 名称
23 | */
24 | private String name;
25 |
26 | /**
27 | * 描述
28 | */
29 | private String desc;
30 | }
31 |
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/java/com/example/elasticsearch/domain/Constant.java:
--------------------------------------------------------------------------------
1 | package com.example.elasticsearch.domain;
2 |
3 | public interface Constant {
4 | String INDEX = "book";
5 | }
6 |
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/java/com/example/elasticsearch/domain/ResponseBean.java:
--------------------------------------------------------------------------------
1 | package com.example.elasticsearch.domain;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Builder;
5 | import lombok.Data;
6 | import lombok.NoArgsConstructor;
7 |
8 | @Data
9 | @Builder
10 | @NoArgsConstructor
11 | @AllArgsConstructor
12 | public class ResponseBean {
13 | /**
14 | * HTTP状态码
15 | */
16 | private Integer code;
17 |
18 | /**
19 | * 返回信息
20 | */
21 | private String msg;
22 |
23 | /**
24 | * 返回的数据
25 | */
26 | private Object data;
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/java/com/example/elasticsearch/exception/CustomException.java:
--------------------------------------------------------------------------------
1 | package com.example.elasticsearch.exception;
2 |
3 |
4 | public class CustomException extends RuntimeException {
5 | public CustomException(String msg){
6 | super(msg);
7 | }
8 | public CustomException() {
9 | super();
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/java/com/example/elasticsearch/exception/SystemException.java:
--------------------------------------------------------------------------------
1 | package com.example.elasticsearch.exception;
2 |
3 | public class SystemException extends RuntimeException {
4 | public SystemException(String msg){
5 | super(msg);
6 | }
7 | public SystemException() {
8 | super();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | server:
2 | port: 8080
3 | spring:
4 | application:
5 | name: springboot-elasticsearch
6 | thymeleaf:
7 | # 开发时关闭缓存不然没法看到实时页面
8 | cache: off
9 | # 启用不严格检查
10 | mode: HTML
11 | # Elasticsearch配置
12 | elasticsearch:
13 | hostname: localhost
14 | port: 9200
15 |
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/resources/static/element-ui/fonts/element-icons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaCodeMing/SpringBootLearning/9df90391b107f5d68f5ae7e7e8b9c33e3b790829/Spring-Boot-Elasticsearch/src/main/resources/static/element-ui/fonts/element-icons.ttf
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/resources/static/element-ui/fonts/element-icons.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaCodeMing/SpringBootLearning/9df90391b107f5d68f5ae7e7e8b9c33e3b790829/Spring-Boot-Elasticsearch/src/main/resources/static/element-ui/fonts/element-icons.woff
--------------------------------------------------------------------------------
/Spring-Boot-Elasticsearch/src/main/resources/static/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaCodeMing/SpringBootLearning/9df90391b107f5d68f5ae7e7e8b9c33e3b790829/Spring-Boot-Elasticsearch/src/main/resources/static/favicon.ico
--------------------------------------------------------------------------------
/Spring-Boot-Error-Controller/src/main/java/com/example/errorcontroller/SpringBootErrorControllerApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.errorcontroller;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootErrorControllerApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootErrorControllerApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Error-Controller/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Error-Controller/src/main/resources/templates/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | GlobalError
5 |
6 |
7 | 服务异常,请稍后再试!
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Spring-Boot-Error-Controller/src/test/java/com/example/errorcontroller/SpringBootErrorControllerApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.errorcontroller;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | public class SpringBootErrorControllerApplicationTests {
8 |
9 | @Test
10 | public void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Error-Handler/src/main/java/com/example/errorhandler/SpringBootErrorHandlerApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.errorhandler;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootErrorHandlerApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootErrorHandlerApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Error-Handler/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Error-Handler/src/main/resources/templates/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | GlobalError
5 |
6 |
7 | 服务异常,请稍后再试!
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Spring-Boot-Error-Handler/src/test/java/com/example/errorhandler/SpringBootErrorHandlerApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.errorhandler;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | public class SpringBootErrorHandlerApplicationTests {
8 |
9 | @Test
10 | public void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-FastDFS/src/main/java/com/example/fastdfs/SpringBootFastDfsApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.fastdfs;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootFastDfsApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootFastDfsApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-FastDFS/src/main/resources/templates/upload.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Spring Boot file upload example
5 |
6 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Spring-Boot-FastDFS/src/main/resources/templates/uploadStatus.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Spring Boot - Upload Status
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Spring-Boot-FastDFS/src/test/java/com/example/fastdfs/SpringBootFastDfsApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.fastdfs;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class SpringBootFastDfsApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Filter-Listener-Interceptor/src/main/java/com/example/filterlistenerinterceptor/SpringBootFilterListenerInterceptorApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.filterlistenerinterceptor;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | //@ServletComponentScan
7 | @SpringBootApplication
8 | public class SpringBootFilterListenerInterceptorApplication {
9 |
10 | public static void main(String[] args) {
11 | SpringApplication.run(SpringBootFilterListenerInterceptorApplication.class, args);
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/Spring-Boot-Filter-Listener-Interceptor/src/main/java/com/example/filterlistenerinterceptor/controller/TestController.java:
--------------------------------------------------------------------------------
1 | package com.example.filterlistenerinterceptor.controller;
2 |
3 | import org.springframework.web.bind.annotation.GetMapping;
4 | import org.springframework.web.bind.annotation.RestController;
5 |
6 | /**
7 | * Created by dengzhiming on 2019/5/31
8 | */
9 | @RestController
10 | public class TestController {
11 |
12 | @GetMapping("/test")
13 | public String test() {
14 | System.out.println("controller 执行");
15 | return "controller return";
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Spring-Boot-Filter-Listener-Interceptor/src/main/java/com/example/filterlistenerinterceptor/interceptor/InterceptorConf.java:
--------------------------------------------------------------------------------
1 | package com.example.filterlistenerinterceptor.interceptor;
2 |
3 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
4 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
5 |
6 | /**
7 | * Created by dengzhiming on 2019/6/1
8 | */
9 | //@Configuration
10 | public class InterceptorConf extends WebMvcConfigurationSupport {
11 | @Override
12 | protected void addInterceptors(InterceptorRegistry registry) {
13 | registry.addInterceptor(new CustomHandlerInterceptor());
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Spring-Boot-Filter-Listener-Interceptor/src/main/java/com/example/filterlistenerinterceptor/interceptor/InterceptorConf1.java:
--------------------------------------------------------------------------------
1 | package com.example.filterlistenerinterceptor.interceptor;
2 |
3 | import org.springframework.context.annotation.Configuration;
4 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
5 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
6 |
7 | /**
8 | * Created by dengzhiming on 2019/6/1
9 | */
10 | @Configuration
11 | public class InterceptorConf1 implements WebMvcConfigurer {
12 | @Override
13 | public void addInterceptors(InterceptorRegistry registry) {
14 | registry.addInterceptor(new CustomHandlerInterceptor());
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Spring-Boot-Filter-Listener-Interceptor/src/main/java/com/example/filterlistenerinterceptor/listener/CustomListener.java:
--------------------------------------------------------------------------------
1 | package com.example.filterlistenerinterceptor.listener;
2 |
3 | import org.springframework.stereotype.Component;
4 |
5 | import javax.servlet.ServletRequestEvent;
6 | import javax.servlet.ServletRequestListener;
7 | import javax.servlet.annotation.WebListener;
8 |
9 | /**
10 | * Created by dengzhiming on 2019/6/1
11 | */
12 | @Component
13 | @WebListener
14 | public class CustomListener implements ServletRequestListener {
15 | @Override
16 | public void requestDestroyed(ServletRequestEvent sre) {
17 | System.out.println("Listener 销毁");
18 | }
19 |
20 | @Override
21 | public void requestInitialized(ServletRequestEvent sre) {
22 | System.out.println("Listener 初始化");
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Spring-Boot-Filter-Listener-Interceptor/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Filter-Listener-Interceptor/src/main/resources/application.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaCodeMing/SpringBootLearning/9df90391b107f5d68f5ae7e7e8b9c33e3b790829/Spring-Boot-Filter-Listener-Interceptor/src/main/resources/application.yml
--------------------------------------------------------------------------------
/Spring-Boot-Filter-Listener-Interceptor/src/test/java/com/example/filterlistenerinterceptor/SpringBootFilterListenerInterceptorApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.filterlistenerinterceptor;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | public class SpringBootFilterListenerInterceptorApplicationTests {
8 |
9 | @Test
10 | public void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Hibernate-Validator/src/main/java/com/example/hibernatevalidator/SpringBootHibernateValidatorApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.hibernatevalidator;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootHibernateValidatorApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootHibernateValidatorApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Hibernate-Validator/src/main/java/com/example/hibernatevalidator/config/MyConstraint.java:
--------------------------------------------------------------------------------
1 | package com.example.hibernatevalidator.config;
2 |
3 | import javax.validation.Constraint;
4 | import javax.validation.Payload;
5 | import java.lang.annotation.ElementType;
6 | import java.lang.annotation.Retention;
7 | import java.lang.annotation.RetentionPolicy;
8 | import java.lang.annotation.Target;
9 |
10 | /**
11 | * Created by dengzhiming on 2019/6/29
12 | */
13 | @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
14 | @Retention(RetentionPolicy.RUNTIME)
15 | @Constraint(validatedBy = MyConstraintValidator.class)
16 | public @interface MyConstraint {
17 | String message();
18 |
19 | Class>[] groups() default {};
20 |
21 | Class extends Payload>[] payload() default {};
22 | }
23 |
--------------------------------------------------------------------------------
/Spring-Boot-Hibernate-Validator/src/main/java/com/example/hibernatevalidator/config/MyConstraintValidator.java:
--------------------------------------------------------------------------------
1 | package com.example.hibernatevalidator.config;
2 |
3 | import javax.validation.ConstraintValidator;
4 | import javax.validation.ConstraintValidatorContext;
5 |
6 | /**
7 | * Created by dengzhiming on 2019/6/29
8 | */
9 | public class MyConstraintValidator implements ConstraintValidator {
10 | @Override
11 | public void initialize(MyConstraint constraintAnnotation) {
12 | System.out.println("my validator init");
13 | }
14 |
15 | @Override
16 | public boolean isValid(Object o, ConstraintValidatorContext constraintValidatorContext) {
17 | return !o.toString().contains("k");
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Spring-Boot-Hibernate-Validator/src/main/java/com/example/hibernatevalidator/controller/TestBeanController.java:
--------------------------------------------------------------------------------
1 | package com.example.hibernatevalidator.controller;
2 |
3 | import com.example.hibernatevalidator.bean.User;
4 | import org.springframework.stereotype.Controller;
5 | import org.springframework.web.bind.annotation.GetMapping;
6 | import org.springframework.web.bind.annotation.ResponseBody;
7 |
8 | import javax.validation.Valid;
9 |
10 | /**
11 | * Created by dengzhiming on 2019/6/29
12 | */
13 | @Controller
14 | public class TestBeanController {
15 | @GetMapping("test2")
16 | @ResponseBody
17 | public String test2(@Valid User user) {
18 | return "success";
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Spring-Boot-Hibernate-Validator/src/main/java/com/example/hibernatevalidator/controller/TestCustomController.java:
--------------------------------------------------------------------------------
1 | package com.example.hibernatevalidator.controller;
2 |
3 | import com.example.hibernatevalidator.config.MyConstraint;
4 | import org.springframework.stereotype.Controller;
5 | import org.springframework.validation.annotation.Validated;
6 | import org.springframework.web.bind.annotation.GetMapping;
7 | import org.springframework.web.bind.annotation.ResponseBody;
8 |
9 | /**
10 | * Created by dengzhiming on 2019/6/29
11 | */
12 | @Controller
13 | @Validated
14 | public class TestCustomController {
15 | @GetMapping("test3")
16 | @ResponseBody
17 | public String test3(@MyConstraint(message = "{illegal}") String name) {
18 | return "success";
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Spring-Boot-Hibernate-Validator/src/main/resources/ValidationMessages.properties:
--------------------------------------------------------------------------------
1 | required=\u4e0d\u80fd\u4e3a\u7a7a
2 | invalid=\u683c\u5f0f\u4e0d\u5408\u6cd5
3 | illegal=\u4e0d\u80fd\u5305\u542b\u5b57\u7b26\u006b
--------------------------------------------------------------------------------
/Spring-Boot-Hibernate-Validator/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Spring-Boot-Hibernate-Validator/src/test/java/com/example/hibernatevalidator/SpringBootHibernateValidatorApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.hibernatevalidator;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | public class SpringBootHibernateValidatorApplicationTests {
8 |
9 | @Test
10 | public void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Https/src/main/java/com/example/https/SpringBootHttpsApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.https;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootHttpsApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootHttpsApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Https/src/main/java/com/example/https/controller/HttpsController.java:
--------------------------------------------------------------------------------
1 | package com.example.https.controller;
2 |
3 | import org.springframework.web.bind.annotation.GetMapping;
4 | import org.springframework.web.bind.annotation.RestController;
5 |
6 | /**
7 | * @author dengzhiming
8 | * @date 2020/3/5 21:11
9 | */
10 | @RestController
11 | public class HttpsController {
12 | @GetMapping(value = "/hello")
13 | public String hello() {
14 | return "Hello HTTPS";
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Spring-Boot-Https/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | # \u914D\u7F6E HTTPS \u76F8\u5173\u4FE1\u606F
2 | server:
3 | port: 443
4 | # \u4E3A\u4E86\u540E\u9762\u7684\u914D\u7F6E\u4F7F\u7528,\u6682\u65F6\u65E0\u7528
5 | http-port: 80
6 | ssl:
7 | enabled: true
8 | # \u8BC1\u4E66\u6587\u4EF6
9 | key-store: classpath:springboot_https.keystore
10 | # \u5BC6\u7801
11 | key-password: 123456
12 | # \u5BC6\u94A5\u5E93\u7C7B\u578B
13 | key-store-type: JKS
14 | key-alias: springboot_https
15 |
--------------------------------------------------------------------------------
/Spring-Boot-Https/src/main/resources/springboot_https.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaCodeMing/SpringBootLearning/9df90391b107f5d68f5ae7e7e8b9c33e3b790829/Spring-Boot-Https/src/main/resources/springboot_https.keystore
--------------------------------------------------------------------------------
/Spring-Boot-Https/src/test/java/com/example/https/SpringBootHttpsApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.https;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class SpringBootHttpsApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Jackson/src/main/java/com/example/jackson/SpringBootJacksonApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.jackson;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootJacksonApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootJacksonApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Jackson/src/main/java/com/example/jackson/config/JacksonConfig.java:
--------------------------------------------------------------------------------
1 | package com.example.jackson.config;
2 |
3 | import com.fasterxml.jackson.databind.ObjectMapper;
4 | import org.springframework.context.annotation.Bean;
5 | import org.springframework.context.annotation.Configuration;
6 |
7 | import java.text.SimpleDateFormat;
8 |
9 | /**
10 | * Created by dengzhiming on 2019/4/23
11 | */
12 | @Configuration
13 | public class JacksonConfig {
14 | @Bean
15 | public ObjectMapper getObjectMapper() {
16 | ObjectMapper objectMapper = new ObjectMapper();
17 | objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
18 | return objectMapper;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Spring-Boot-Jackson/src/main/java/com/example/jackson/config/UserSerializer.java:
--------------------------------------------------------------------------------
1 | package com.example.jackson.config;
2 |
3 | import com.example.jackson.bean.User;
4 | import com.fasterxml.jackson.core.JsonGenerator;
5 | import com.fasterxml.jackson.databind.JsonSerializer;
6 | import com.fasterxml.jackson.databind.SerializerProvider;
7 |
8 | import java.io.IOException;
9 |
10 | /**
11 | * Created by dengzhiming on 2019/4/24
12 | */
13 | public class UserSerializer extends JsonSerializer {
14 | @Override
15 | public void serialize(User user, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
16 | jsonGenerator.writeStartObject();
17 | jsonGenerator.writeStringField("user-name", user.getUserName());
18 | jsonGenerator.writeEndObject();
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Spring-Boot-Jackson/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | server.servlet.context-path=/web
--------------------------------------------------------------------------------
/Spring-Boot-Jackson/src/test/java/com/example/jackson/SpringBootJacksonApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example.jackson;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | public class SpringBootJacksonApplicationTests {
8 |
9 | @Test
10 | public void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-Jasypt/src/main/java/com/example/jasypt/controller/TestController.java:
--------------------------------------------------------------------------------
1 | package com.example.jasypt.controller;
2 |
3 | import org.springframework.beans.factory.annotation.Value;
4 | import org.springframework.web.bind.annotation.GetMapping;
5 | import org.springframework.web.bind.annotation.RequestMapping;
6 | import org.springframework.web.bind.annotation.RestController;
7 | import reactor.core.publisher.Mono;
8 |
9 | /**
10 | * Created by dengzhiming on 2020/1/18
11 | */
12 | @RestController
13 | @RequestMapping("/jasypt")
14 | public class TestController {
15 | @Value("${name}")
16 | private String password;
17 | @GetMapping("/name")
18 | public Mono sendNormalText() {
19 | System.out.println(password);
20 | return Mono.just(password);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Spring-Boot-Jasypt/src/main/resources/application.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaCodeMing/SpringBootLearning/9df90391b107f5d68f5ae7e7e8b9c33e3b790829/Spring-Boot-Jasypt/src/main/resources/application.properties
--------------------------------------------------------------------------------
/Spring-Boot-Jasypt/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | name: ENC(Xt2kU2GFjee7eZj/oc/rQg==)
2 | jasypt:
3 | encryptor:
4 | password: password
5 | algorithm: PBEWithMD5AndDES
6 | key-obtention-iterations: 1000
7 | pool-size: 1
8 | provider-name: SunJCE
9 | salt-generator-classname: org.jasypt.salt.RandomSaltGenerator
10 | iv-generator-classname: org.jasypt.iv.NoIvGenerator
11 | string-output-type: base64
--------------------------------------------------------------------------------
/Spring-Boot-JdbcTemplate/src/main/java/com/example/jdbctemplate/SpringBootJdbcTemplateApplication.java:
--------------------------------------------------------------------------------
1 | package com.example.jdbctemplate;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringBootJdbcTemplateApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringBootJdbcTemplateApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Spring-Boot-JdbcTemplate/src/main/java/com/example/jdbctemplate/bean/StudentObj.java:
--------------------------------------------------------------------------------
1 | package com.example.jdbctemplate.bean;
2 |
3 | import org.springframework.jdbc.core.RowMapper;
4 |
5 | import java.sql.ResultSet;
6 | import java.sql.SQLException;
7 |
8 | /**
9 | * Created by dengzhiming on 2019/3/24
10 | */
11 | public class StudentObj implements RowMapper {
12 |
13 | @Override
14 | public Student mapRow(ResultSet rs, int rowNum) throws SQLException {
15 | Student student = new Student();
16 | student.setSno(rs.getString("sno"));
17 | student.setName(rs.getString("sname"));
18 | student.setSex(rs.getString("ssex"));
19 | return student;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Spring-Boot-JdbcTemplate/src/main/java/com/example/jdbctemplate/mapper/StudentMapper.java:
--------------------------------------------------------------------------------
1 | package com.example.jdbctemplate.mapper;
2 |
3 | import com.example.jdbctemplate.bean.Student;
4 |
5 | import java.util.List;
6 | import java.util.Map;
7 |
8 | /**
9 | * Created by dengzhiming on 2019/3/24
10 | */
11 | public interface StudentMapper {
12 | int add(Student student);
13 |
14 | int update(Student student);
15 |
16 | int deleteBysno(String sno);
17 |
18 | List