├── springboot-action-cache
├── .gitignore
├── README.md
├── .settings
│ ├── org.eclipse.m2e.core.prefs
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
├── src
│ └── main
│ │ ├── java
│ │ └── com
│ │ │ └── lianggzone
│ │ │ └── springboot
│ │ │ └── cache
│ │ │ ├── config
│ │ │ └── CacheConfiguration.java
│ │ │ ├── main
│ │ │ └── WebMain.java
│ │ │ ├── guava
│ │ │ ├── GuavaCacheConfig.java
│ │ │ ├── CacheService.java
│ │ │ └── CacheController.java
│ │ │ ├── ehcache
│ │ │ ├── CacheService.java
│ │ │ └── CacheController.java
│ │ │ ├── redis
│ │ │ ├── CacheService.java
│ │ │ └── CacheController.java
│ │ │ └── concurrenmapcache
│ │ │ ├── CacheService.java
│ │ │ └── CacheController.java
│ │ └── resources
│ │ ├── ehcache.xml
│ │ └── application.properties
├── .project
├── .classpath
└── pom.xml
├── springboot-action-sample
├── .gitignore
├── src
│ ├── main
│ │ ├── filters
│ │ │ ├── filter-product.properties
│ │ │ ├── filter-test.properties
│ │ │ ├── filter-development.properties
│ │ │ ├── filter-preproduction.properties
│ │ │ └── resources
│ │ │ │ ├── product
│ │ │ │ └── application.properties
│ │ │ │ ├── test
│ │ │ │ └── application.properties
│ │ │ │ ├── preproduction
│ │ │ │ └── application.properties
│ │ │ │ └── development
│ │ │ │ ├── application.yml
│ │ │ │ └── application.properties
│ │ ├── resources
│ │ │ ├── application-test.properties
│ │ │ ├── application-product.properties
│ │ │ ├── application-development.properties
│ │ │ ├── application-preproduction.properties
│ │ │ ├── config
│ │ │ │ ├── redis.properties
│ │ │ │ └── source.properties
│ │ │ ├── templates
│ │ │ │ └── welcome.ftl
│ │ │ ├── init
│ │ │ │ ├── springboot-db-20161213.sql
│ │ │ │ ├── springboot_db1-2016-12-19.sql
│ │ │ │ └── springboot_db2-2016-12-19.sql
│ │ │ └── mybatis
│ │ │ │ └── AuthorMapper.xml
│ │ ├── webapp
│ │ │ ├── index.jsp
│ │ │ └── WEB-INF
│ │ │ │ └── web.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── lianggzone
│ │ │ └── springboot
│ │ │ ├── action
│ │ │ ├── core
│ │ │ │ ├── mail
│ │ │ │ │ └── package-info.java
│ │ │ │ └── async
│ │ │ │ │ ├── config
│ │ │ │ │ └── AsyncConfig.java
│ │ │ │ │ ├── MsgServer.java
│ │ │ │ │ └── MsgFutureServer.java
│ │ │ ├── data
│ │ │ │ ├── config
│ │ │ │ │ ├── ElasticSearchConfig.java
│ │ │ │ │ ├── JPAConfig.java
│ │ │ │ │ ├── ElasticsearchConfig2.java
│ │ │ │ │ ├── BeanConfig.java
│ │ │ │ │ ├── BeanConfig2.java
│ │ │ │ │ ├── MongoConfig.java
│ │ │ │ │ └── RedisConfig.java
│ │ │ │ ├── redis
│ │ │ │ │ ├── model
│ │ │ │ │ │ └── package-info.java
│ │ │ │ │ └── dao
│ │ │ │ │ │ ├── ValueRedisDao.java
│ │ │ │ │ │ └── RedisBaseDao.java
│ │ │ │ ├── jpa
│ │ │ │ │ ├── repository
│ │ │ │ │ │ ├── AuthorDao.java
│ │ │ │ │ │ ├── AuthorRepository.java
│ │ │ │ │ │ └── AuthorDaoImpl.java
│ │ │ │ │ ├── service
│ │ │ │ │ │ ├── AuthorService2.java
│ │ │ │ │ │ └── AuthorService.java
│ │ │ │ │ ├── entity
│ │ │ │ │ │ └── Author.java
│ │ │ │ │ └── controller
│ │ │ │ │ │ ├── AuthorController.java
│ │ │ │ │ │ └── AuthorController2.java
│ │ │ │ ├── mybatis
│ │ │ │ │ ├── dao
│ │ │ │ │ │ ├── AuthorMapper2.java
│ │ │ │ │ │ └── AuthorMapper.java
│ │ │ │ │ ├── service
│ │ │ │ │ │ ├── AuthorService2.java
│ │ │ │ │ │ └── AuthorService.java
│ │ │ │ │ ├── entity
│ │ │ │ │ │ └── Author.java
│ │ │ │ │ └── controller
│ │ │ │ │ │ ├── AuthorController2.java
│ │ │ │ │ │ └── AuthorController.java
│ │ │ │ ├── jdbc
│ │ │ │ │ ├── dao
│ │ │ │ │ │ ├── AuthorDao.java
│ │ │ │ │ │ └── impl
│ │ │ │ │ │ │ └── AuthorDaoImpl.java
│ │ │ │ │ ├── service
│ │ │ │ │ │ ├── AuthorService.java
│ │ │ │ │ │ └── impl
│ │ │ │ │ │ │ └── AuthorServiceImpl.java
│ │ │ │ │ ├── entity
│ │ │ │ │ │ └── Author.java
│ │ │ │ │ └── controller
│ │ │ │ │ │ └── AuthorController.java
│ │ │ │ ├── elasticsearch
│ │ │ │ │ ├── dao
│ │ │ │ │ │ └── NewsRepository.java
│ │ │ │ │ ├── service
│ │ │ │ │ │ └── NewsService.java
│ │ │ │ │ ├── entity
│ │ │ │ │ │ └── News.java
│ │ │ │ │ └── controller
│ │ │ │ │ │ └── NewsController.java
│ │ │ │ ├── transactional
│ │ │ │ │ ├── dao
│ │ │ │ │ │ └── AuthorDao.java
│ │ │ │ │ ├── entity
│ │ │ │ │ │ └── Author.java
│ │ │ │ │ └── service
│ │ │ │ │ │ └── AuthorService.java
│ │ │ │ └── mongodb
│ │ │ │ │ ├── entity
│ │ │ │ │ └── Author.java
│ │ │ │ │ ├── service
│ │ │ │ │ └── AuthorService.java
│ │ │ │ │ ├── dao
│ │ │ │ │ └── AuthorDao.java
│ │ │ │ │ └── controller
│ │ │ │ │ └── AuthorController.java
│ │ │ └── template
│ │ │ │ └── freemarker
│ │ │ │ └── controller
│ │ │ │ ├── WelcomeController.java
│ │ │ │ └── Welcome2Controller.java
│ │ │ ├── demo
│ │ │ ├── ApplicationDemo.java
│ │ │ └── RestfulApiWebDemo.java
│ │ │ ├── custom
│ │ │ └── AuthorAutoConfigDemo.java
│ │ │ └── main
│ │ │ └── WebMain.java
│ └── test
│ │ └── java
│ │ └── com
│ │ └── lianggzone
│ │ └── springboot
│ │ ├── core
│ │ └── async
│ │ │ ├── AsyncTest.java
│ │ │ └── AsyncFutureTest.java
│ │ ├── data
│ │ ├── redis
│ │ │ └── RedisTest.java
│ │ ├── jdbc
│ │ │ └── JdbcTest.java
│ │ └── transactional
│ │ │ └── TransactionalTest.java
│ │ └── demo
│ │ └── PropertiesTest.java
├── .settings
│ ├── org.eclipse.wst.jsdt.ui.superType.name
│ ├── org.eclipse.wst.validation.prefs
│ ├── org.eclipse.wst.jsdt.ui.superType.container
│ ├── org.eclipse.m2e.core.prefs
│ ├── org.eclipse.jdt.ui.prefs
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.wst.common.project.facet.core.xml
│ ├── .jsdtscope
│ └── org.eclipse.wst.common.component
├── README.md
├── .classpath
└── .project
├── springboot-action-web
├── .gitignore
├── src
│ └── main
│ │ ├── filters
│ │ ├── filter-test.properties
│ │ ├── filter-development.properties
│ │ ├── filter-product.properties
│ │ ├── filter-preproduction.properties
│ │ └── resources
│ │ │ ├── test
│ │ │ └── application.properties
│ │ │ ├── product
│ │ │ └── application.properties
│ │ │ ├── preproduction
│ │ │ └── application.properties
│ │ │ └── development
│ │ │ └── application.properties
│ │ ├── webapp
│ │ ├── index.jsp
│ │ └── WEB-INF
│ │ │ └── web.xml
│ │ └── java
│ │ └── com
│ │ └── lianggzone
│ │ └── springboot
│ │ └── web
│ │ └── tomcat
│ │ ├── ServletInitializer.java
│ │ ├── TomcatConfig.java
│ │ └── RestfulApiWebController.java
├── .settings
│ ├── org.eclipse.wst.jsdt.ui.superType.name
│ ├── org.eclipse.wst.validation.prefs
│ ├── org.eclipse.wst.jsdt.ui.superType.container
│ ├── org.eclipse.m2e.core.prefs
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.wst.common.project.facet.core.xml
│ ├── org.eclipse.jdt.core.prefs
│ ├── .jsdtscope
│ └── org.eclipse.wst.common.component
├── README.md
├── .classpath
├── .project
└── pom.xml
├── springboot-action-actuator
├── .gitignore
├── README.md
├── src
│ └── main
│ │ ├── resources
│ │ ├── application.yml
│ │ └── application.properties
│ │ └── java
│ │ └── com
│ │ └── lianggzone
│ │ └── springboot
│ │ └── actuator
│ │ ├── endpoint
│ │ ├── EndpointConfig.java
│ │ └── ServerTimeEndpoint.java
│ │ ├── main
│ │ └── RestfulApiWebDemo.java
│ │ └── health
│ │ ├── CusStatusHealthIndicator.java
│ │ └── CusDiskSpaceHealthIndicator.java
├── .settings
│ ├── org.eclipse.m2e.core.prefs
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
├── .project
├── .classpath
└── pom.xml
├── springboot-action-autoconfig
├── .gitignore
├── README.md
├── .settings
│ ├── org.eclipse.m2e.core.prefs
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
├── src
│ └── main
│ │ ├── resources
│ │ └── META-INF
│ │ │ └── spring.factories
│ │ └── java
│ │ └── com
│ │ └── lianggzone
│ │ └── springboot
│ │ └── autoconfig
│ │ └── author
│ │ ├── AuthorServer.java
│ │ ├── AuthorProperties.java
│ │ └── AuthorAutoConfiguration.java
├── .project
├── .classpath
└── pom.xml
├── springboot-action-autoload
├── .gitignore
├── README.md
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.m2e.core.prefs
│ └── org.eclipse.jdt.core.prefs
├── src
│ └── main
│ │ └── java
│ │ └── com
│ │ └── lianggzone
│ │ └── springboot
│ │ └── autoload
│ │ └── demo
│ │ └── RestfulApiWebDemo.java
├── .project
├── .classpath
└── pom.xml
├── springboot-action-messagequeue
├── .gitignore
├── README.md
├── .settings
│ ├── org.eclipse.m2e.core.prefs
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
├── src
│ ├── main
│ │ ├── resources
│ │ │ └── application.properties
│ │ └── java
│ │ │ └── com
│ │ │ └── lianggzone
│ │ │ └── springboot
│ │ │ └── mq
│ │ │ ├── rabbitmq
│ │ │ ├── exchange
│ │ │ │ ├── Receiver.java
│ │ │ │ └── Sender.java
│ │ │ └── simple
│ │ │ │ ├── Receiver.java
│ │ │ │ └── Sender.java
│ │ │ ├── config
│ │ │ ├── RabbitMQConfig.java
│ │ │ └── RabbitMQConfig2.java
│ │ │ └── RunMain.java
│ └── test
│ │ └── java
│ │ └── com
│ │ └── lianggzone
│ │ └── springboot
│ │ └── mq
│ │ └── rabbitmq
│ │ ├── simple
│ │ └── RabbitMQTest.java
│ │ └── exchange
│ │ └── RabbitMQTest.java
├── .project
├── .classpath
└── pom.xml
├── springboot-action-statemachine
├── .gitignore
├── README.md
├── .settings
│ ├── org.eclipse.m2e.core.prefs
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
├── src
│ └── main
│ │ └── java
│ │ └── com
│ │ └── lianggzone
│ │ └── springboot
│ │ └── statemachine
│ │ └── reg
│ │ ├── enums
│ │ ├── RegStatusEnum.java
│ │ └── RegEventEnum.java
│ │ ├── RunMain.java
│ │ └── config
│ │ ├── StateMachineEventConfig.java
│ │ └── StateMachineConfig.java
├── .project
├── .classpath
└── pom.xml
├── springboot-action-tomcat-https
├── .gitignore
├── .settings
│ ├── org.eclipse.wst.jsdt.ui.superType.name
│ ├── org.eclipse.wst.jsdt.ui.superType.container
│ ├── org.eclipse.wst.validation.prefs
│ ├── org.eclipse.m2e.core.prefs
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.wst.common.project.facet.core.xml
│ ├── org.eclipse.jdt.core.prefs
│ ├── .jsdtscope
│ └── org.eclipse.wst.common.component
├── README.md
├── src
│ └── main
│ │ ├── resources
│ │ ├── keystore.p12
│ │ └── application.properties
│ │ └── java
│ │ └── com
│ │ └── lianggzone
│ │ └── springboot
│ │ └── web
│ │ └── tomcat
│ │ └── WebMain.java
├── .classpath
├── .project.bak
├── .project
└── pom.xml
└── README.md
/springboot-action-cache/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/springboot-action-sample/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/springboot-action-web/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/springboot-action-actuator/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/springboot-action-autoconfig/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/springboot-action-autoload/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/springboot-action-messagequeue/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/springboot-action-statemachine/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/springboot-action-web/src/main/filters/filter-test.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/filters/filter-product.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/filters/filter-test.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-web/src/main/filters/filter-development.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-web/src/main/filters/filter-product.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/filters/filter-development.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/filters/filter-preproduction.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-web/src/main/filters/filter-preproduction.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-web/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/springboot-action-web/src/main/filters/resources/test/application.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-sample/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/filters/resources/product/application.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/filters/resources/test/application.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-web/src/main/filters/resources/product/application.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/filters/resources/preproduction/application.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/springboot-action-web/src/main/filters/resources/preproduction/application.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/springboot-action-sample/README.md:
--------------------------------------------------------------------------------
1 | # springboot-action-sample
2 |
3 | Spring Boot 揭秘与实战 源代码(实战案例)
--------------------------------------------------------------------------------
/springboot-action-web/README.md:
--------------------------------------------------------------------------------
1 | # springboot-action-web
2 |
3 | Spring Boot 揭秘与实战 源代码(Web开发 实战案例)
--------------------------------------------------------------------------------
/springboot-action-cache/README.md:
--------------------------------------------------------------------------------
1 | # springboot-action-cache
2 |
3 | Spring Boot 揭秘与实战 源代码(缓存管理 实战案例)
--------------------------------------------------------------------------------
/springboot-action-web/src/main/filters/resources/development/application.properties:
--------------------------------------------------------------------------------
1 | #server.port=8089
--------------------------------------------------------------------------------
/springboot-action-actuator/README.md:
--------------------------------------------------------------------------------
1 | # spring-boot-sample-actuator
2 |
3 | Spring Boot 揭秘与实战 源代码(监控 实战案例)
--------------------------------------------------------------------------------
/springboot-action-autoload/README.md:
--------------------------------------------------------------------------------
1 | # springboot-action-autoload
2 |
3 | Spring Boot 揭秘与实战 源代码(热部署 实战案例)
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/resources/application-test.properties:
--------------------------------------------------------------------------------
1 | project.env=\u6d4b\u8bd5\u73af\u5883
--------------------------------------------------------------------------------
/springboot-action-autoconfig/README.md:
--------------------------------------------------------------------------------
1 | # springboot-action-autoconfig
2 |
3 | Spring Boot 揭秘与实战 源代码(自动配置 实战案例)
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/resources/application-product.properties:
--------------------------------------------------------------------------------
1 | project.env=\u751f\u4ea7\u73af\u5883
--------------------------------------------------------------------------------
/springboot-action-statemachine/README.md:
--------------------------------------------------------------------------------
1 | # springboot-action-statemachine
2 |
3 | Spring Boot 揭秘与实战 源代码(状态机 实战案例)
--------------------------------------------------------------------------------
/springboot-action-messagequeue/README.md:
--------------------------------------------------------------------------------
1 | # springboot-action-messagequeue
2 |
3 | Spring Boot 揭秘与实战 源代码(消息队列 实战案例)
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/resources/application-development.properties:
--------------------------------------------------------------------------------
1 | project.env=\u5f00\u53d1\u73af\u5883
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/README.md:
--------------------------------------------------------------------------------
1 | # springboot-action-tomcat-https
2 |
3 | Spring Boot 揭秘与实战 源代码(HTTPS配置 实战案例)
--------------------------------------------------------------------------------
/springboot-action-sample/.settings/org.eclipse.wst.validation.prefs:
--------------------------------------------------------------------------------
1 | disabled=06target
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/resources/application-preproduction.properties:
--------------------------------------------------------------------------------
1 | project.env=\u9884\u751f\u4ea7\u73af\u5883
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/webapp/index.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World!
4 |
5 |
6 |
--------------------------------------------------------------------------------
/springboot-action-web/.settings/org.eclipse.wst.validation.prefs:
--------------------------------------------------------------------------------
1 | disabled=06target
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/springboot-action-web/src/main/webapp/index.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World!
4 |
5 |
6 |
--------------------------------------------------------------------------------
/springboot-action-sample/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/springboot-action-web/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/.settings/org.eclipse.wst.validation.prefs:
--------------------------------------------------------------------------------
1 | disabled=06target
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/springboot-action-actuator/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | info.author:
2 | email: lianggzone@163.com
3 | blog: http://blog.720ui.com
4 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/resources/config/redis.properties:
--------------------------------------------------------------------------------
1 | redis.host=localhost
2 | redis.port=6379
3 | redis.password=
4 | redis.database=1
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/core/mail/package-info.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.core.mail;
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/filters/resources/development/application.yml:
--------------------------------------------------------------------------------
1 | author:
2 | email: lianggzone@163.com
3 | blog: http://blog.720ui.com
4 |
--------------------------------------------------------------------------------
/springboot-action-cache/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/springboot-action-sample/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/springboot-action-web/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/springboot-action-actuator/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/springboot-action-autoconfig/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/springboot-action-autoload/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding/=UTF-8
4 |
--------------------------------------------------------------------------------
/springboot-action-autoload/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/springboot-action-messagequeue/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/springboot-action-statemachine/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/src/main/resources/keystore.p12:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lianggzone/springboot-action/HEAD/springboot-action-tomcat-https/src/main/resources/keystore.p12
--------------------------------------------------------------------------------
/springboot-action-sample/.settings/org.eclipse.jdt.ui.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | formatter_profile=org.eclipse.jdt.ui.default.eclipse_profile
3 | formatter_settings_version=12
4 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/resources/templates/welcome.ftl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Date: ${time?date}
5 | Message: ${message}
6 |
7 |
--------------------------------------------------------------------------------
/springboot-action-cache/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/springboot-action-actuator/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/springboot-action-autoconfig/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/springboot-action-statemachine/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/springboot-action-messagequeue/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | #rabbitmq
2 | spring.rabbitmq.host=localhost
3 | spring.rabbitmq.port=5672
4 | spring.rabbitmq.username=guest
5 | spring.rabbitmq.password=guest
--------------------------------------------------------------------------------
/springboot-action-autoconfig/src/main/resources/META-INF/spring.factories:
--------------------------------------------------------------------------------
1 | # CUSTOM
2 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
3 | com.lianggzone.springboot.autoconfig.author.AuthorAutoConfiguration
--------------------------------------------------------------------------------
/springboot-action-messagequeue/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding//src/test/java=UTF-8
5 | encoding/=UTF-8
6 |
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | server.port:8443
2 | server.ssl.key-store: classpath:keystore.p12
3 | server.ssl.key-store-password: 123456
4 | server.ssl.keyStoreType: PKCS12
5 | server.ssl.keyAlias: springboot
--------------------------------------------------------------------------------
/springboot-action-actuator/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | info.author.realname=\u6881\u6842\u948a
2 | info.author.nickname=LiangGzone
3 |
4 | endpoints.shutdown.enabled=true
5 |
6 | #management.context-path=/manage
7 | #management.port=9090
8 | #management.port=-1
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding//src/test/java=UTF-8
5 | encoding//src/test/resources=UTF-8
6 | encoding/=UTF-8
7 |
--------------------------------------------------------------------------------
/springboot-action-web/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Archetype Created Web Application
7 |
8 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Archetype Created Web Application
7 |
8 |
--------------------------------------------------------------------------------
/springboot-action-cache/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3 | org.eclipse.jdt.core.compiler.compliance=1.7
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.7
6 |
--------------------------------------------------------------------------------
/springboot-action-actuator/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3 | org.eclipse.jdt.core.compiler.compliance=1.7
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.7
6 |
--------------------------------------------------------------------------------
/springboot-action-autoconfig/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3 | org.eclipse.jdt.core.compiler.compliance=1.7
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.7
6 |
--------------------------------------------------------------------------------
/springboot-action-autoload/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3 | org.eclipse.jdt.core.compiler.compliance=1.7
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.7
6 |
--------------------------------------------------------------------------------
/springboot-action-messagequeue/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3 | org.eclipse.jdt.core.compiler.compliance=1.7
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.7
6 |
--------------------------------------------------------------------------------
/springboot-action-statemachine/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3 | org.eclipse.jdt.core.compiler.compliance=1.7
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.7
6 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/data/config/ElasticSearchConfig.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.data.config;
2 |
3 | //@Configuration
4 | //@EnableElasticsearchRepositories("com.lianggzone.springboot.action.data.elasticsearch")
5 | public class ElasticSearchConfig {
6 |
7 | }
--------------------------------------------------------------------------------
/springboot-action-web/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/filters/resources/development=UTF-8
3 | encoding//src/main/java=UTF-8
4 | encoding//src/main/resources=UTF-8
5 | encoding//src/test/java=UTF-8
6 | encoding//src/test/resources=UTF-8
7 | encoding/=UTF-8
8 |
--------------------------------------------------------------------------------
/springboot-action-sample/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/filters/resources/development=UTF-8
3 | encoding//src/main/java=UTF-8
4 | encoding//src/main/resources=UTF-8
5 | encoding//src/test/java=UTF-8
6 | encoding//src/test/resources=UTF-8
7 | encoding/=UTF-8
8 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/data/redis/model/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * 概要:
3 | * 功能:
4 | * 履历:
5 | * 2016年12月13日 v0.1 版本内容: 新建
6 | * @author 粱桂钊
7 | * @since 0.1
8 | */
9 | package com.lianggzone.springboot.action.data.redis.model;
--------------------------------------------------------------------------------
/springboot-action-cache/src/main/java/com/lianggzone/springboot/cache/config/CacheConfiguration.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.cache.config;
2 |
3 | import org.springframework.cache.annotation.EnableCaching;
4 | import org.springframework.context.annotation.Configuration;
5 |
6 | @Configuration
7 | @EnableCaching
8 | public class CacheConfiguration {}
--------------------------------------------------------------------------------
/springboot-action-cache/src/main/resources/ehcache.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/resources/config/source.properties:
--------------------------------------------------------------------------------
1 | # mysql
2 | source.driverClassName = com.mysql.jdbc.Driver
3 | source.url = jdbc:mysql://localhost:3306/springboot_db?useUnicode = true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
4 | source.username = root
5 | source.password = root
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/springboot-action-cache/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | #redis
2 | spring.redis.host=localhost
3 | spring.redis.port=6379
4 | spring.redis.password=
5 | spring.redis.database=1
6 | spring.redis.pool.max-active=8
7 | spring.redis.pool.max-wait=-1
8 | spring.redis.pool.max-idle=500
9 | spring.redis.pool.min-idle=0
10 | spring.redis.timeout=0
11 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/core/async/config/AsyncConfig.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.core.async.config;
2 |
3 | import org.springframework.context.annotation.Configuration;
4 | import org.springframework.scheduling.annotation.EnableAsync;
5 |
6 | @Configuration
7 | @EnableAsync
8 | public class AsyncConfig {
9 |
10 | }
--------------------------------------------------------------------------------
/springboot-action-web/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/springboot-action-sample/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/springboot-action-messagequeue/src/main/java/com/lianggzone/springboot/mq/rabbitmq/exchange/Receiver.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.mq.rabbitmq.exchange;
2 |
3 | import org.springframework.stereotype.Service;
4 |
5 | @Service
6 | public class Receiver {
7 |
8 | public void receiveMessage(String message) {
9 | System.out.println("Received <" + message + ">");
10 | }
11 | }
--------------------------------------------------------------------------------
/springboot-action-web/src/main/java/com/lianggzone/springboot/web/tomcat/ServletInitializer.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.web.tomcat;
2 |
3 | public class ServletInitializer {}/*extends SpringBootServletInitializer {
4 |
5 | @Override
6 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
7 | return application.sources(RestfulApiWebDemo.class);
8 | }
9 |
10 | }*/
--------------------------------------------------------------------------------
/springboot-action-messagequeue/src/main/java/com/lianggzone/springboot/mq/rabbitmq/simple/Receiver.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.mq.rabbitmq.simple;
2 |
3 | import org.springframework.amqp.rabbit.annotation.RabbitListener;
4 |
5 | //@Service
6 | public class Receiver {
7 |
8 | @RabbitListener(queues = "spring-boot-simple")
9 | public void receiveMessage(String message) {
10 | System.out.println("Received <" + message + ">");
11 | }
12 | }
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/demo/ApplicationDemo.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.demo;
2 |
3 | import org.springframework.boot.autoconfigure.SpringBootApplication;
4 |
5 | @SpringBootApplication
6 | public class ApplicationDemo {
7 |
8 | /*public static void main(String[] args) throws Exception {
9 | System.out.println(" springApplication run !");
10 | SpringApplication.run(ApplicationDemo.class, args);
11 | }*/
12 | }
--------------------------------------------------------------------------------
/springboot-action-messagequeue/src/main/java/com/lianggzone/springboot/mq/config/RabbitMQConfig.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.mq.config;
2 |
3 | import org.springframework.amqp.core.Queue;
4 | import org.springframework.context.annotation.Bean;
5 |
6 | //@Configuration
7 | public class RabbitMQConfig {
8 |
9 | public static final String QUEUE_NAME = "spring-boot-simple";
10 |
11 | @Bean
12 | public Queue queue() {
13 | return new Queue(QUEUE_NAME);
14 | }
15 | }
--------------------------------------------------------------------------------
/springboot-action-web/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4 | org.eclipse.jdt.core.compiler.compliance=1.7
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
8 | org.eclipse.jdt.core.compiler.source=1.7
9 |
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4 | org.eclipse.jdt.core.compiler.compliance=1.7
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
8 | org.eclipse.jdt.core.compiler.source=1.7
9 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/resources/init/springboot-db-20161213.sql:
--------------------------------------------------------------------------------
1 | CREATE DATABASE /*!32312 IF NOT EXISTS*/`springboot_db` /*!40100 DEFAULT CHARACTER SET utf8 */;
2 |
3 | USE `springboot_db`;
4 |
5 | DROP TABLE IF EXISTS `t_author`;
6 |
7 | CREATE TABLE `t_author` (
8 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',
9 | `real_name` varchar(32) NOT NULL COMMENT '用户名称',
10 | `nick_name` varchar(32) NOT NULL COMMENT '用户匿名',
11 | PRIMARY KEY (`id`)
12 | ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/data/config/JPAConfig.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.data.config;
2 |
3 | import org.springframework.boot.orm.jpa.EntityScan;
4 | import org.springframework.context.annotation.Configuration;
5 | import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
6 |
7 | @Configuration
8 | @EnableJpaRepositories("com.lianggzone.springboot.action.data.jpa")
9 | @EntityScan("com.lianggzone.springboot.action.data.jpa.entity")
10 | public class JPAConfig {}
--------------------------------------------------------------------------------
/springboot-action-statemachine/src/main/java/com/lianggzone/springboot/statemachine/reg/enums/RegStatusEnum.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.statemachine.reg.enums;
2 |
3 | /**
4 | * 概要:
RegStatusEnum
5 | * 功能:
注册状态枚举
6 | * 履历:
7 | * 2017年3月21日 v0.1 版本内容: 新建
8 | * @author 粱桂钊
9 | * @since 0.1
10 | */
11 | public enum RegStatusEnum {
12 |
13 | // 未连接
14 | UNCONNECTED,
15 | // 已连接
16 | CONNECTED,
17 | // 注册中
18 | REGISTERING,
19 | // 已注册
20 | REGISTERED;
21 |
22 | }
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/data/jpa/repository/AuthorDao.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.data.jpa.repository;
2 |
3 | import java.util.List;
4 |
5 | import com.lianggzone.springboot.action.data.jpa.entity.Author;
6 |
7 | /**
8 | * 概要:
AuthorDao
9 | * 功能:
AuthorDao
10 | * 履历:
11 | * 2017年01月03日 v0.1 版本内容: 新建
12 | * @author 粱桂钊
13 | * @since 0.1
14 | */
15 | public interface AuthorDao {
16 | List findAll();
17 | Author findAuthor(Long id);
18 | }
19 |
--------------------------------------------------------------------------------
/springboot-action-statemachine/src/main/java/com/lianggzone/springboot/statemachine/reg/enums/RegEventEnum.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.statemachine.reg.enums;
2 |
3 | /**
4 | * 概要:
RegEventEnum
5 | * 功能:
注册事件枚举
6 | * 履历:
7 | * 2017年3月21日 v0.1 版本内容: 新建
8 | * @author 粱桂钊
9 | * @since 0.1
10 | */
11 | public enum RegEventEnum {
12 | // 连接
13 | CONNECT,
14 | // 注册
15 | REGISTER,
16 | // 注册成功
17 | REGISTER_SUCCESS,
18 | // 注册失败
19 | REGISTER_FAILED,
20 | // 注销
21 | UN_REGISTER;
22 | }
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/custom/AuthorAutoConfigDemo.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.custom;
2 |
3 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
4 | import org.springframework.web.bind.annotation.RestController;
5 |
6 | @RestController
7 | @EnableAutoConfiguration
8 | public class AuthorAutoConfigDemo {
9 |
10 | /*@Resource
11 | private AuthorServer authorServer;
12 |
13 | @RequestMapping("/custom/author")
14 | String home() {
15 | return "发布者:"+ authorServer.getAuthor();
16 | }*/
17 | }
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/data/mybatis/dao/AuthorMapper2.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.data.mybatis.dao;
2 |
3 | import org.apache.ibatis.annotations.Param;
4 |
5 | import com.lianggzone.springboot.action.data.mybatis.entity.Author;
6 |
7 | /**
8 | * 概要:
AuthorMapper
9 | * 功能:
AuthorMapper(通过XML配置文件的方式)
10 | * 履历:
11 | * 2016年12月13日 v0.1 版本内容: 新建
12 | * @author 粱桂钊
13 | * @since 0.1
14 | */
15 | public interface AuthorMapper2 {
16 | Author findAuthor(@Param("id") Long id);
17 | }
--------------------------------------------------------------------------------
/springboot-action-autoconfig/src/main/java/com/lianggzone/springboot/autoconfig/author/AuthorServer.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.autoconfig.author;
2 |
3 | /**
4 | * 概要:
AuthorServer
5 | * 功能:
自定义作者服务
6 | * 履历:
7 | * 2016年12月31日 v0.1 版本内容: 新建
8 | * @author 粱桂钊
9 | * @since 0.1
10 | */
11 | public class AuthorServer {
12 |
13 | public String author;
14 |
15 | public String getAuthor() {
16 | return author;
17 | }
18 |
19 | public void setAuthor(String author) {
20 | this.author = author;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/springboot-action-messagequeue/src/main/java/com/lianggzone/springboot/mq/rabbitmq/simple/Sender.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.mq.rabbitmq.simple;
2 |
3 | import org.springframework.amqp.core.AmqpTemplate;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 |
6 | import com.lianggzone.springboot.mq.config.RabbitMQConfig;
7 |
8 | //@Service
9 | public class Sender {
10 |
11 | @Autowired
12 | private AmqpTemplate rabbitTemplate;
13 |
14 | public void send() {
15 | System.out.println("梁桂钊 发送消息...");
16 | rabbitTemplate.convertAndSend(RabbitMQConfig.QUEUE_NAME, "你好, 梁桂钊!");
17 | }
18 |
19 | }
--------------------------------------------------------------------------------
/springboot-action-messagequeue/src/main/java/com/lianggzone/springboot/mq/RunMain.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.mq;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
6 | import org.springframework.context.annotation.ComponentScan;
7 |
8 | @SpringBootApplication
9 | @EnableAutoConfiguration
10 | @ComponentScan(basePackages = { "com.lianggzone.springboot" })
11 | public class RunMain {
12 | public static void main(String[] args) {
13 | SpringApplication.run(RunMain.class, args);
14 | }
15 | }
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/data/jdbc/dao/AuthorDao.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.data.jdbc.dao;
2 |
3 | import java.util.List;
4 |
5 | import com.lianggzone.springboot.action.data.jdbc.entity.Author;
6 |
7 | /**
8 | * 概要:
AuthorDao
9 | * 功能:
AuthorDao
10 | * 履历:
11 | * 2016年12月13日 v0.1 版本内容: 新建
12 | * @author 粱桂钊
13 | * @since 0.1
14 | */
15 | public interface AuthorDao {
16 | int add(Author author);
17 | int update(Author author);
18 | int delete(Long id);
19 | Author findAuthor(Long id);
20 | List findAuthorList();
21 | }
--------------------------------------------------------------------------------
/springboot-action-web/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/springboot-action-sample/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/data/redis/dao/ValueRedisDao.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.data.redis.dao;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.stereotype.Repository;
5 |
6 | @Repository
7 | public class ValueRedisDao {
8 |
9 | @Autowired
10 | public RedisBaseDao redisBaseDao;
11 |
12 | private String getKey(){
13 | return "param";
14 | }
15 |
16 | public void save(String param){
17 | this.redisBaseDao.addValue(this.getKey(), param);
18 | }
19 |
20 | public String getParam(){
21 | return this.redisBaseDao.getValue(this.getKey());
22 | }
23 | }
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/demo/RestfulApiWebDemo.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.demo;
2 |
3 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
4 | import org.springframework.web.bind.annotation.RequestMapping;
5 | import org.springframework.web.bind.annotation.RestController;
6 |
7 | @RestController
8 | @EnableAutoConfiguration
9 | public class RestfulApiWebDemo {
10 |
11 | @RequestMapping("/demo/hello")
12 | String home() {
13 | return "Hello World!";
14 | }
15 |
16 | /*public static void main(String[] args) throws Exception {
17 | SpringApplication.run(RestfulApiWebDemo.class, args);
18 | }*/
19 | }
--------------------------------------------------------------------------------
/springboot-action-tomcat-https/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/data/jdbc/service/AuthorService.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.data.jdbc.service;
2 |
3 | import java.util.List;
4 |
5 | import com.lianggzone.springboot.action.data.jdbc.entity.Author;
6 |
7 | /**
8 | * 概要:
AuthorService
9 | * 功能:
AuthorService
10 | * 履历:
11 | * 2016年12月13日 v0.1 版本内容: 新建
12 | * @author 粱桂钊
13 | * @since 0.1
14 | */
15 | public interface AuthorService {
16 | int add(Author author);
17 | int update(Author author);
18 | int delete(Long id);
19 | Author findAuthor(Long id);
20 | List findAuthorList();
21 | }
--------------------------------------------------------------------------------
/springboot-action-messagequeue/src/main/java/com/lianggzone/springboot/mq/rabbitmq/exchange/Sender.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.mq.rabbitmq.exchange;
2 |
3 | import org.springframework.amqp.core.AmqpTemplate;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.stereotype.Service;
6 |
7 | import com.lianggzone.springboot.mq.config.RabbitMQConfig2;
8 |
9 | @Service
10 | public class Sender {
11 |
12 | @Autowired
13 | private AmqpTemplate rabbitTemplate;
14 |
15 | public void send() {
16 | System.out.println("梁桂钊 发送消息...");
17 | rabbitTemplate.convertAndSend(RabbitMQConfig2.QUEUE_NAME, "你好, 梁桂钊!");
18 | }
19 |
20 | }
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/data/redis/dao/RedisBaseDao.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.data.redis.dao;
2 |
3 | import javax.annotation.Resource;
4 |
5 | import org.springframework.data.redis.core.ValueOperations;
6 | import org.springframework.stereotype.Repository;
7 |
8 | @Repository
9 | public class RedisBaseDao {
10 |
11 | @Resource(name="redisTemplate")
12 | protected ValueOperations valueOperations;
13 |
14 | public void addValue(String key, String value){
15 | valueOperations.set(key, value);
16 | }
17 |
18 | public String getValue(String key){
19 | return valueOperations.get(key);
20 | }
21 | }
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/java/com/lianggzone/springboot/action/data/elasticsearch/dao/NewsRepository.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.action.data.elasticsearch.dao;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
6 |
7 | import com.lianggzone.springboot.action.data.elasticsearch.entity.News;
8 |
9 | /**
10 | * 概要:
NewsRepository
11 | * 功能:
NewsRepository
12 | * 履历:
13 | * 2016年12月14日 v0.1 版本内容: 新建
14 | * @author 粱桂钊
15 | * @since 0.1
16 | */
17 | public interface NewsRepository extends ElasticsearchRepository {
18 | public List findByTitle(String title);
19 | }
20 |
--------------------------------------------------------------------------------
/springboot-action-autoload/src/main/java/com/lianggzone/springboot/autoload/demo/RestfulApiWebDemo.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.autoload.demo;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
5 | import org.springframework.web.bind.annotation.RequestMapping;
6 | import org.springframework.web.bind.annotation.RestController;
7 |
8 | @RestController
9 | @EnableAutoConfiguration
10 | public class RestfulApiWebDemo {
11 |
12 | @RequestMapping("/home")
13 | String home() {
14 | return "Hello World!!!";
15 | }
16 |
17 | public static void main(String[] args) throws Exception {
18 | SpringApplication.run(RestfulApiWebDemo.class, args);
19 | }
20 | }
--------------------------------------------------------------------------------
/springboot-action-sample/src/main/resources/mybatis/AuthorMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
--------------------------------------------------------------------------------
/springboot-action-actuator/src/main/java/com/lianggzone/springboot/actuator/endpoint/EndpointConfig.java:
--------------------------------------------------------------------------------
1 | package com.lianggzone.springboot.actuator.endpoint;
2 |
3 | import java.util.Map;
4 |
5 | import org.springframework.boot.actuate.endpoint.Endpoint;
6 | import org.springframework.context.annotation.Bean;
7 | import org.springframework.context.annotation.Configuration;
8 |
9 | /**
10 | * 概要:
EndpointConfig
11 | * 功能:
端点配置类
12 | * 履历:
13 | * 2017年1月13日 v0.1 版本内容: 新建
14 | * @author 粱桂钊
15 | * @since 0.1
16 | */
17 | @Configuration
18 | public class EndpointConfig {
19 |
20 | @Bean
21 | public static Endpoint