├── _git_pull.cmd
├── spring-boot-18-MQ
├── .gitignore
├── spring-boot-18-MQ-kafka
│ ├── .gitignore
│ ├── README.md
│ └── src
│ │ └── main
│ │ ├── resources
│ │ ├── application.properties
│ │ └── logback.xml
│ │ └── java
│ │ └── cn
│ │ └── timebusker
│ │ ├── mq
│ │ ├── KafkaConsumerService.java
│ │ └── KafkaProducerService.java
│ │ ├── web
│ │ └── indexController.java
│ │ ├── task
│ │ └── KafkaTaskService.java
│ │ └── App.java
├── spring-boot-18-MQ-activemq
│ ├── .gitignore
│ ├── README.md
│ ├── src
│ │ └── main
│ │ │ ├── resources
│ │ │ ├── application.properties
│ │ │ └── logback.xml
│ │ │ └── java
│ │ │ └── cn
│ │ │ └── timebusker
│ │ │ ├── mq
│ │ │ ├── queue
│ │ │ │ ├── ActiveMQQueueConsumerBackup.java
│ │ │ │ ├── ActiveMQQueueConsumerMaster.java
│ │ │ │ └── ActiveMQQueueProducer.java
│ │ │ └── topic
│ │ │ │ ├── ActiveMQTopicConsumerBackup.java
│ │ │ │ ├── ActiveMQTopicConsumerMaster.java
│ │ │ │ └── ActiveMQTopicProducer.java
│ │ │ ├── web
│ │ │ └── indexController.java
│ │ │ ├── App.java
│ │ │ └── ActiveMQConfiguration.java
│ └── pom.xml
├── spring-boot-18-MQ-rabbitmq
│ ├── .gitignore
│ ├── src
│ │ └── main
│ │ │ ├── resources
│ │ │ ├── application.properties
│ │ │ ├── logback.xml
│ │ │ └── application-dev.properties
│ │ │ └── java
│ │ │ └── cn
│ │ │ └── timebusker
│ │ │ ├── App.java
│ │ │ ├── web
│ │ │ └── indexController.java
│ │ │ ├── mq
│ │ │ ├── topic
│ │ │ │ └── TopicRabbitMQConsumer.java
│ │ │ ├── fanout
│ │ │ │ └── FanoutRabbitMQConsumer.java
│ │ │ ├── sample
│ │ │ │ ├── MessageConsumer.java
│ │ │ │ └── MessageProducer.java
│ │ │ └── direct
│ │ │ │ └── DirectRabbitMQConsumer.java
│ │ │ └── model
│ │ │ └── MessageEntity.java
│ └── pom.xml
└── spring-boot-18-MQ-rocketmq
│ ├── .gitignore
│ ├── src
│ └── main
│ │ ├── java
│ │ └── cn
│ │ │ └── timebusker
│ │ │ ├── App.java
│ │ │ └── web
│ │ │ └── indexController.java
│ │ └── resources
│ │ ├── application.properties
│ │ └── logback.xml
│ ├── README.md
│ └── pom.xml
├── spring-boot-8-AOP
├── .gitignore
└── src
│ └── main
│ ├── java
│ └── cn
│ │ └── timebusker
│ │ ├── service
│ │ ├── user
│ │ │ ├── UserInfoService.java
│ │ │ └── Impl
│ │ │ │ └── UserInfoServiceImpl.java
│ │ ├── order
│ │ │ ├── OrderInfoService.java
│ │ │ └── Impl
│ │ │ │ └── OrderInfoServiceImpl.java
│ │ └── CommonService.java
│ │ ├── utils
│ │ ├── CommonUtil.java
│ │ └── DateUtil.java
│ │ ├── annotation
│ │ ├── timebuskerMethod.java
│ │ └── timebuskerBean.java
│ │ └── aop
│ │ └── ServiceHandlerAop.java
│ └── resources
│ ├── logback.xml
│ ├── application.properties
│ └── application-dev.properties
├── static
├── 10
│ └── spring-data-jpa.png
├── 12
│ ├── 1.png
│ └── 2.png
├── 15
│ └── redis.zip
├── 18
│ ├── MQ对比.jpg
│ └── rabbitmq
│ │ ├── direct.png
│ │ ├── fanout.png
│ │ └── topic.png
├── logo.png
├── 111111.png
├── spring-boot.png
├── spring-boot-8-AOP
│ ├── aop.png
│ ├── advice.png
│ └── aop-mine.png
├── spring-boot-3-logs
│ ├── SLF4J.png
│ ├── logging.png
│ ├── spring-boot-3-logs-Log4j
│ │ ├── Log4j.png
│ │ ├── log4j-mine.png
│ │ └── log4j-root.png
│ ├── spring-boot-3-logs-Log4j2
│ │ └── Log4j2.png
│ └── spring-boot-3-logs-Logback
│ │ ├── Logback.png
│ │ └── logback_cn.pdf
├── spring-boot-2-RESTful
│ ├── get.png
│ ├── head.png
│ ├── post.png
│ ├── put.png
│ ├── delete.png
│ ├── get-all.png
│ ├── get-one.png
│ ├── add-post.png
│ ├── delete-one.png
│ ├── insert-post.png
│ ├── restful-api.png
│ └── update-put.png
├── spring-boot-7-EhCache
│ └── ehcache.jpg
├── spring-boot-1-QuickStart
│ └── app-main.png
├── spring-boot-5-Async
│ └── async-test-res.png
├── spring-boot-13-MyBatis
│ └── mybatis-logo.png
├── spring-boot-6-GlobalException
│ └── error.png
├── spring-boot-4-Scheduled
│ ├── spring-core-tast.png
│ └── spring-core-tast-res.png
└── spring-boot-17-monitor
│ └── spring-boot-17-monitor-actuator
│ └── spring-boot-actuator.png
├── spring-boot-13-MyBatis
├── .gitignore
└── src
│ └── main
│ ├── resources
│ ├── logback.xml
│ └── application.properties
│ └── java
│ └── cn
│ └── timebusker
│ └── common
│ └── DatasourceConfiguration.java
├── spring-boot-15-Redis
├── .gitignore
├── spring-boot-15-Redis-cache
│ ├── .gitignore
│ ├── src
│ │ └── main
│ │ │ ├── java
│ │ │ └── cn
│ │ │ │ └── timebusker
│ │ │ │ ├── App.java
│ │ │ │ └── service
│ │ │ │ └── UserService.java
│ │ │ └── resources
│ │ │ ├── application.properties
│ │ │ └── logback.xml
│ └── pom.xml
├── spring-boot-15-Redis-mq
│ ├── .gitignore
│ ├── src
│ │ └── main
│ │ │ ├── java
│ │ │ └── cn
│ │ │ │ └── timebusker
│ │ │ │ ├── App.java
│ │ │ │ └── web
│ │ │ │ └── indexController.java
│ │ │ └── resources
│ │ │ ├── application.properties
│ │ │ └── logback.xml
│ └── pom.xml
└── spring-boot-15-Redis-sample
│ ├── .gitignore
│ ├── src
│ └── main
│ │ ├── java
│ │ └── cn
│ │ │ └── timebusker
│ │ │ └── App.java
│ │ └── resources
│ │ ├── application.properties
│ │ ├── logback.xml
│ │ └── application-dev.properties
│ └── pom.xml
├── spring-boot-17-monitor
├── .gitignore
├── spring-boot-17-monitor-AdminClient
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ ├── resources
│ │ ├── application.properties
│ │ └── application-dev.properties
│ │ └── java
│ │ └── cn
│ │ └── timebusker
│ │ ├── util
│ │ └── LoggingUtil.java
│ │ ├── actuator
│ │ └── MineHealthIndicators.java
│ │ └── web
│ │ └── LogsController.java
├── spring-boot-17-monitor-AdminServer
│ ├── .gitignore
│ ├── src
│ │ └── main
│ │ │ └── resources
│ │ │ ├── application.properties
│ │ │ └── application-dev.properties
│ └── README.md
├── spring-boot-17-monitor-actuator
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ ├── resources
│ │ ├── application.properties
│ │ └── application-dev.properties
│ │ └── java
│ │ └── cn
│ │ └── timebusker
│ │ ├── util
│ │ └── LoggingUtil.java
│ │ ├── actuator
│ │ └── MineHealthIndicators.java
│ │ ├── web
│ │ └── LogsController.java
│ │ └── metrics
│ │ └── MineMetrics.java
└── pom.xml
├── spring-boot-2-RESTful
├── .gitignore
└── src
│ └── main
│ ├── resources
│ ├── application-prod.properties
│ ├── application-test.properties
│ ├── application-dev.properties
│ └── application.properties
│ └── java
│ └── cn
│ └── timebusker
│ ├── conf
│ └── WebConfig.java
│ ├── service
│ ├── DemoInfoService.java
│ └── Impl
│ │ └── DemoInfoServiceImpl.java
│ └── entity
│ └── DemoInfo.java
├── spring-boot-3-logs
├── .gitignore
├── spring-boot-3-logs-Log4j
│ ├── src
│ │ └── main
│ │ │ ├── resources
│ │ │ ├── application-prod.properties
│ │ │ ├── application-test.properties
│ │ │ ├── application-dev.properties
│ │ │ └── application.properties
│ │ │ └── java
│ │ │ └── cn
│ │ │ └── timebusker
│ │ │ ├── util
│ │ │ └── LoggingUtil.java
│ │ │ └── web
│ │ │ └── LogsController.java
│ └── .gitignore
├── spring-boot-3-logs-Log4j2
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ ├── resources
│ │ ├── application-dev.properties
│ │ ├── application-prod.properties
│ │ ├── application-test.properties
│ │ ├── log4j2-prod.xml
│ │ ├── log4j2-test.xml
│ │ └── application.properties
│ │ └── java
│ │ └── cn
│ │ └── timebusker
│ │ ├── util
│ │ └── LoggingUtil.java
│ │ └── web
│ │ └── LogsController.java
├── spring-boot-3-logs-Logback
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ ├── resources
│ │ ├── application-dev.properties
│ │ ├── application-prod.properties
│ │ ├── application-test.properties
│ │ └── application.properties
│ │ └── java
│ │ └── cn
│ │ └── timebusker
│ │ ├── util
│ │ └── LoggingUtil.java
│ │ └── web
│ │ └── LogsController.java
└── pom.xml
├── spring-boot-5-Async
├── .gitignore
└── src
│ └── main
│ └── resources
│ ├── application-dev.properties
│ ├── application-prod.properties
│ ├── application-test.properties
│ └── application.properties
├── spring-boot-7-EhCache
├── .gitignore
└── src
│ └── main
│ ├── resources
│ └── application.properties
│ └── java
│ └── cn
│ └── timebusker
│ ├── dao
│ └── UserRepository.java
│ ├── service
│ └── UserService.java
│ └── entity
│ └── User.java
├── spring-boot-1-QuickStart
├── .gitignore
├── src
│ └── main
│ │ ├── resources
│ │ ├── application-prod.properties
│ │ ├── application-test.properties
│ │ ├── dubbo.properties
│ │ └── application-dev.properties
│ │ └── java
│ │ └── cn
│ │ └── timebusker
│ │ └── web
│ │ ├── ConfController.java
│ │ └── HelloController.java
└── README.md
├── spring-boot-10-SpringData
├── .gitignore
└── src
│ ├── test
│ └── java
│ │ └── cn
│ │ └── timebusker
│ │ └── test
│ │ ├── One2manyTest.java
│ │ ├── Many2manyTest.java
│ │ └── CommonTest.java
│ └── main
│ ├── java
│ └── cn
│ │ └── timebusker
│ │ ├── model
│ │ ├── many2many
│ │ │ ├── Commodity.java
│ │ │ └── category.java
│ │ ├── one2one
│ │ │ └── test.java
│ │ └── one2many
│ │ │ ├── company.java
│ │ │ ├── position.java
│ │ │ ├── detailInfo.java
│ │ │ └── department.java
│ │ ├── repository
│ │ ├── one2one
│ │ │ ├── AddressRepository.java
│ │ │ └── UserRepository.java
│ │ ├── one2many
│ │ │ ├── positionRepository.java
│ │ │ ├── departmentRepository.java
│ │ │ ├── detailInfoRepository.java
│ │ │ ├── companyRepository.java
│ │ │ └── employeeRepository.java
│ │ └── BasicRepository.java
│ │ ├── App.java
│ │ └── web
│ │ └── DownloadData.java
│ └── resources
│ ├── application.properties
│ ├── logback.xml
│ └── application-dev.properties
├── spring-boot-12-Swagger2
├── .gitignore
└── src
│ └── main
│ ├── resources
│ ├── application-dev.properties
│ ├── logback.xml
│ └── application.properties
│ └── java
│ └── cn
│ └── timebusker
│ ├── web
│ ├── SwaggerController.java
│ └── LogsController.java
│ └── domain
│ └── User.java
├── spring-boot-14-JdbcTemplate
├── .gitignore
└── src
│ └── main
│ ├── resources
│ ├── application-dev.properties
│ ├── logback.xml
│ └── application.properties
│ └── java
│ └── cn
│ └── timebusker
│ ├── util
│ └── LoggingUtil.java
│ └── web
│ └── LogsController.java
├── spring-boot-16-Transcation
├── .gitignore
└── src
│ └── main
│ ├── resources
│ ├── application-dev.properties
│ ├── logback.xml
│ └── application.properties
│ └── java
│ └── cn
│ └── timebusker
│ ├── util
│ └── LoggingUtil.java
│ └── web
│ └── LogsController.java
├── spring-boot-4-Scheduled
├── .gitignore
└── src
│ └── main
│ ├── resources
│ ├── application-dev.properties
│ ├── application-prod.properties
│ ├── application-test.properties
│ └── application.properties
│ └── java
│ └── cn
│ └── timebusker
│ ├── quartz
│ └── AutoQuartz.java
│ └── springTask
│ └── SpringTaskSample.java
├── .gitignore
├── spring-boot-11-SpringSecurity
├── .gitignore
└── src
│ └── main
│ ├── java
│ └── cn
│ │ └── timebusker
│ │ ├── security
│ │ └── constant
│ │ │ └── RoleConstant.java
│ │ ├── App.java
│ │ ├── service
│ │ └── UserService.java
│ │ ├── web
│ │ ├── UserController.java
│ │ └── HomeController.java
│ │ └── mapper
│ │ └── UserMapper.java
│ └── resources
│ ├── logback.xml
│ └── application.properties
├── spring-boot-6-GlobalException
├── .gitignore
└── src
│ └── main
│ ├── resources
│ ├── templates
│ │ ├── index.html
│ │ └── error.html
│ ├── application-dev.properties
│ └── application.properties
│ └── java
│ └── cn
│ └── timebusker
│ └── exception
│ └── ErrorMassage.java
├── spring-boot-9-JavaMailSender
├── .gitignore
├── src
│ └── main
│ │ └── resources
│ │ ├── static
│ │ └── img
│ │ │ └── logo.png
│ │ ├── logback.xml
│ │ ├── application.properties
│ │ └── application-dev.properties
└── README.md
├── spring-boot-19-Definition-Starter
├── .gitignore
├── spring-boot-19-Definition-Starter-Test
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ └── resources
│ │ ├── logback.xml
│ │ └── application.properties
└── spring-boot-19-Definition-Starter-Service
│ ├── .gitignore
│ └── src
│ └── main
│ ├── resources
│ ├── META-INF
│ │ └── spring.factories
│ ├── application.properties
│ └── logback.xml
│ └── java
│ └── cn
│ └── timebusker
│ ├── config
│ └── CalculateProperties.java
│ └── service
│ └── CalculateService.java
├── spring-boot-20-Freemarker
├── doc
│ ├── 1.png
│ ├── Freemarker快速入门.pdf
│ ├── freemarker中文手册.pdf
│ └── 不错的FreeMarker教程.pdf
├── src
│ └── main
│ │ ├── resources
│ │ ├── application.properties
│ │ └── templates
│ │ │ └── free5.html
│ │ └── java
│ │ └── com
│ │ └── timebusker
│ │ ├── App.java
│ │ ├── method
│ │ └── SortMethod.java
│ │ ├── web
│ │ ├── IndexController.java
│ │ └── UserController.java
│ │ └── entity
│ │ └── UserInfo.java
└── pom.xml
├── spring-boot-23-MongoDB
├── src
│ └── main
│ │ ├── resources
│ │ └── application.properties
│ │ └── java
│ │ └── com
│ │ └── timebusker
│ │ ├── repository
│ │ ├── PersonRepository.java
│ │ ├── AbstractBasicRepository.java
│ │ └── UserRepository.java
│ │ ├── App.java
│ │ └── entity
│ │ ├── PersonEntity.java
│ │ └── UserEntity.java
└── pom.xml
├── spring-boot-22-FarstPlus
└── src
│ └── main
│ ├── resources
│ ├── templates
│ │ ├── static
│ │ │ ├── logo.png
│ │ │ ├── favicon.ico
│ │ │ ├── fonts
│ │ │ │ ├── FontAwesome.otf
│ │ │ │ ├── fontawesome-webfont.eot
│ │ │ │ ├── fontawesome-webfont.ttf
│ │ │ │ ├── fontawesome-webfont.woff
│ │ │ │ ├── fontawesome-webfont.woff2
│ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ │ └── glyphicons-halflings-regular.woff2
│ │ │ ├── apple-icon-144x144.png
│ │ │ ├── img
│ │ │ │ └── logoin-background.png
│ │ │ └── plugins
│ │ │ │ ├── treegrid
│ │ │ │ ├── img
│ │ │ │ │ ├── file.png
│ │ │ │ │ ├── expand.png
│ │ │ │ │ ├── folder.png
│ │ │ │ │ └── collapse.png
│ │ │ │ ├── jquery.treegrid.bootstrap3.js
│ │ │ │ └── jquery.treegrid.css
│ │ │ │ ├── layer
│ │ │ │ └── skin
│ │ │ │ │ ├── default
│ │ │ │ │ ├── icon.png
│ │ │ │ │ ├── icon-ext.png
│ │ │ │ │ ├── loading-0.gif
│ │ │ │ │ ├── loading-1.gif
│ │ │ │ │ └── loading-2.gif
│ │ │ │ │ └── moon
│ │ │ │ │ └── default.png
│ │ │ │ ├── ztree
│ │ │ │ └── css
│ │ │ │ │ ├── metroStyle
│ │ │ │ │ └── img
│ │ │ │ │ │ ├── loading.gif
│ │ │ │ │ │ ├── metro.gif
│ │ │ │ │ │ ├── metro.png
│ │ │ │ │ │ └── line_conn.png
│ │ │ │ │ ├── zTreeStyle
│ │ │ │ │ └── img
│ │ │ │ │ │ ├── diy
│ │ │ │ │ │ ├── 2.png
│ │ │ │ │ │ ├── 3.png
│ │ │ │ │ │ ├── 4.png
│ │ │ │ │ │ ├── 5.png
│ │ │ │ │ │ ├── 6.png
│ │ │ │ │ │ ├── 7.png
│ │ │ │ │ │ ├── 8.png
│ │ │ │ │ │ ├── 9.png
│ │ │ │ │ │ ├── 1_close.png
│ │ │ │ │ │ └── 1_open.png
│ │ │ │ │ │ ├── loading.gif
│ │ │ │ │ │ ├── line_conn.gif
│ │ │ │ │ │ ├── zTreeStandard.gif
│ │ │ │ │ │ └── zTreeStandard.png
│ │ │ │ │ └── awesomeStyle
│ │ │ │ │ └── img
│ │ │ │ │ └── loading.gif
│ │ │ │ └── jqgrid
│ │ │ │ └── ui.jqgrid-bootstrap-ui.css
│ │ └── views
│ │ │ └── main.html
│ ├── logback-spring.xml
│ └── application.properties
│ └── java
│ └── com
│ └── timebusker
│ ├── service
│ ├── UserTokenService.java
│ └── impl
│ │ └── UserTokenServiceImpl.java
│ ├── App.java
│ ├── oauth2
│ └── OAuth2Token.java
│ ├── exception
│ └── ErrorMassage.java
│ ├── entity
│ └── OssEntity.java
│ └── utils
│ └── SQLFilter.java
├── spring-boot-24-WebSocket
├── src
│ └── main
│ │ └── java
│ │ └── com
│ │ └── timebusker
│ │ ├── App.java
│ │ └── conf
│ │ └── WebSocketConfig.java
└── pom.xml
├── _git_push.cmd
├── spring-boot-21-MultiDataSource
├── src
│ └── main
│ │ ├── java
│ │ └── com
│ │ │ └── timebusker
│ │ │ ├── repository
│ │ │ ├── BaseRepository.java
│ │ │ ├── qj
│ │ │ │ └── QjSubInfoRepository.java
│ │ │ └── km
│ │ │ │ ├── KmSubInfoRepository.java
│ │ │ │ ├── KmSubExpTaskRepository.java
│ │ │ │ └── KmSubExportRepository.java
│ │ │ └── App.java
│ │ └── resources
│ │ └── logback.xml
└── README.md
└── spring-boot-13-MyBatis-XML
└── pom.xml
/_git_pull.cmd:
--------------------------------------------------------------------------------
1 | color 0a
2 | @echo off & setlocal
3 | git pull
--------------------------------------------------------------------------------
/spring-boot-18-MQ/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-8-AOP/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/static/12/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/12/1.png
--------------------------------------------------------------------------------
/static/12/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/12/2.png
--------------------------------------------------------------------------------
/static/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/logo.png
--------------------------------------------------------------------------------
/spring-boot-13-MyBatis/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-15-Redis/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-17-monitor/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-2-RESTful/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-3-logs/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-3-logs/spring-boot-3-logs-Log4j/src/main/resources/application-prod.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/spring-boot-3-logs/spring-boot-3-logs-Log4j/src/main/resources/application-test.properties:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/spring-boot-5-Async/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-7-EhCache/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/static/111111.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/111111.png
--------------------------------------------------------------------------------
/spring-boot-1-QuickStart/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-1-QuickStart/src/main/resources/application-prod.properties:
--------------------------------------------------------------------------------
1 | # 服务端口
2 | server.port=82
--------------------------------------------------------------------------------
/spring-boot-1-QuickStart/src/main/resources/application-test.properties:
--------------------------------------------------------------------------------
1 | # 服务端口
2 | server.port=81
--------------------------------------------------------------------------------
/spring-boot-10-SpringData/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-12-Swagger2/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-14-JdbcTemplate/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-16-Transcation/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-2-RESTful/src/main/resources/application-prod.properties:
--------------------------------------------------------------------------------
1 | # 服务端口
2 | server.port=3333
--------------------------------------------------------------------------------
/spring-boot-2-RESTful/src/main/resources/application-test.properties:
--------------------------------------------------------------------------------
1 | # 服务端口
2 | server.port=2222
--------------------------------------------------------------------------------
/spring-boot-4-Scheduled/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/static/15/redis.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/15/redis.zip
--------------------------------------------------------------------------------
/static/18/MQ对比.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/18/MQ对比.jpg
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | logs/
6 | ./logs/
7 | .idea
8 | *.iml
--------------------------------------------------------------------------------
/spring-boot-11-SpringSecurity/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-6-GlobalException/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-9-JavaMailSender/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/static/spring-boot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot.png
--------------------------------------------------------------------------------
/spring-boot-19-Definition-Starter/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-3-logs/spring-boot-3-logs-Log4j/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
--------------------------------------------------------------------------------
/spring-boot-3-logs/spring-boot-3-logs-Log4j2/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
--------------------------------------------------------------------------------
/spring-boot-3-logs/spring-boot-3-logs-Logback/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
--------------------------------------------------------------------------------
/spring-boot-18-MQ/spring-boot-18-MQ-kafka/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-15-Redis/spring-boot-15-Redis-cache/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-15-Redis/spring-boot-15-Redis-mq/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-18-MQ/spring-boot-18-MQ-activemq/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-18-MQ/spring-boot-18-MQ-rabbitmq/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-18-MQ/spring-boot-18-MQ-rocketmq/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/static/10/spring-data-jpa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/10/spring-data-jpa.png
--------------------------------------------------------------------------------
/static/18/rabbitmq/direct.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/18/rabbitmq/direct.png
--------------------------------------------------------------------------------
/static/18/rabbitmq/fanout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/18/rabbitmq/fanout.png
--------------------------------------------------------------------------------
/static/18/rabbitmq/topic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/18/rabbitmq/topic.png
--------------------------------------------------------------------------------
/spring-boot-15-Redis/spring-boot-15-Redis-sample/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/static/spring-boot-8-AOP/aop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-8-AOP/aop.png
--------------------------------------------------------------------------------
/spring-boot-17-monitor/spring-boot-17-monitor-AdminClient/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-17-monitor/spring-boot-17-monitor-AdminServer/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-17-monitor/spring-boot-17-monitor-actuator/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/spring-boot-20-Freemarker/doc/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/spring-boot-20-Freemarker/doc/1.png
--------------------------------------------------------------------------------
/static/spring-boot-3-logs/SLF4J.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-3-logs/SLF4J.png
--------------------------------------------------------------------------------
/static/spring-boot-8-AOP/advice.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-8-AOP/advice.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/get.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/get.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/head.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/head.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/post.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/post.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/put.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/put.png
--------------------------------------------------------------------------------
/static/spring-boot-3-logs/logging.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-3-logs/logging.png
--------------------------------------------------------------------------------
/static/spring-boot-8-AOP/aop-mine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-8-AOP/aop-mine.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/delete.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/get-all.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/get-all.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/get-one.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/get-one.png
--------------------------------------------------------------------------------
/static/spring-boot-7-EhCache/ehcache.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-7-EhCache/ehcache.jpg
--------------------------------------------------------------------------------
/spring-boot-19-Definition-Starter/spring-boot-19-Definition-Starter-Test/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/add-post.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/add-post.png
--------------------------------------------------------------------------------
/spring-boot-19-Definition-Starter/spring-boot-19-Definition-Starter-Service/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | .classpath
4 | .project
5 | *.iml
--------------------------------------------------------------------------------
/static/spring-boot-1-QuickStart/app-main.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-1-QuickStart/app-main.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/delete-one.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/delete-one.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/insert-post.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/insert-post.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/restful-api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/restful-api.png
--------------------------------------------------------------------------------
/static/spring-boot-2-RESTful/update-put.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-2-RESTful/update-put.png
--------------------------------------------------------------------------------
/static/spring-boot-5-Async/async-test-res.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-5-Async/async-test-res.png
--------------------------------------------------------------------------------
/static/spring-boot-13-MyBatis/mybatis-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-13-MyBatis/mybatis-logo.png
--------------------------------------------------------------------------------
/static/spring-boot-6-GlobalException/error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-6-GlobalException/error.png
--------------------------------------------------------------------------------
/spring-boot-10-SpringData/src/test/java/cn/timebusker/test/One2manyTest.java:
--------------------------------------------------------------------------------
1 | package cn.timebusker.test;
2 |
3 | public class One2manyTest {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/spring-boot-20-Freemarker/doc/Freemarker快速入门.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/spring-boot-20-Freemarker/doc/Freemarker快速入门.pdf
--------------------------------------------------------------------------------
/spring-boot-20-Freemarker/doc/freemarker中文手册.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/spring-boot-20-Freemarker/doc/freemarker中文手册.pdf
--------------------------------------------------------------------------------
/spring-boot-20-Freemarker/doc/不错的FreeMarker教程.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/spring-boot-20-Freemarker/doc/不错的FreeMarker教程.pdf
--------------------------------------------------------------------------------
/spring-boot-3-logs/spring-boot-3-logs-Log4j2/src/main/resources/application-dev.properties:
--------------------------------------------------------------------------------
1 | #开发环境
2 |
3 | # 应用自定义配置
4 | logging.config=classpath:log4j2-dev.xml
--------------------------------------------------------------------------------
/spring-boot-3-logs/spring-boot-3-logs-Log4j2/src/main/resources/application-prod.properties:
--------------------------------------------------------------------------------
1 | #生产环境
2 |
3 | # 应用自定义配置
4 | logging.config=classpath:log4j2-prod.xml
--------------------------------------------------------------------------------
/spring-boot-3-logs/spring-boot-3-logs-Log4j2/src/main/resources/application-test.properties:
--------------------------------------------------------------------------------
1 | #测试环境
2 |
3 | # 应用自定义配置
4 | logging.config=classpath:log4j2-test.xml
--------------------------------------------------------------------------------
/static/spring-boot-4-Scheduled/spring-core-tast.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-4-Scheduled/spring-core-tast.png
--------------------------------------------------------------------------------
/spring-boot-10-SpringData/src/test/java/cn/timebusker/test/Many2manyTest.java:
--------------------------------------------------------------------------------
1 | package cn.timebusker.test;
2 |
3 | public class Many2manyTest {
4 |
5 |
6 | }
7 |
--------------------------------------------------------------------------------
/static/spring-boot-4-Scheduled/spring-core-tast-res.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-4-Scheduled/spring-core-tast-res.png
--------------------------------------------------------------------------------
/spring-boot-10-SpringData/src/main/java/cn/timebusker/model/many2many/Commodity.java:
--------------------------------------------------------------------------------
1 | package cn.timebusker.model.many2many;
2 |
3 | public class Commodity {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/spring-boot-10-SpringData/src/main/java/cn/timebusker/model/many2many/category.java:
--------------------------------------------------------------------------------
1 | package cn.timebusker.model.many2many;
2 |
3 | public class category {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/static/spring-boot-3-logs/spring-boot-3-logs-Log4j/Log4j.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/timebusker/spring-boot/HEAD/static/spring-boot-3-logs/spring-boot-3-logs-Log4j/Log4j.png
--------------------------------------------------------------------------------
/spring-boot-3-logs/spring-boot-3-logs-Log4j2/src/main/resources/log4j2-prod.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 | * 在做项目时创建对象的功能会交给Spring去管理在扫描Repository层包时会扫描到BaseRepository接口 ;
12 | * 所有对象类接口都会继承此接口 为了告诉JPA不要创建对应接口的bean对象 就在类上加注解@NoRepositoryBean
13 | *
14 | * @param 项目介绍
15 |
16 |
21 | 自定义指令
17 | 1.用户123456 是否拥有admin角色,并且返回admin的权限
18 |
19 | <@role user='123456' role='admin';result1,result2>
20 | <#if result1>
21 | 我的角色是admin
30 |
31 |
--------------------------------------------------------------------------------
/spring-boot-22-FarstPlus/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | #\u670D\u52A1\u7AEF\u53E3
2 | server.port=80
3 | server.context-path=/fastplus
4 | server.error.path=/error
5 | server.jetty.acceptors=10
6 |
7 | #freemarker\u914D\u7F6E
8 | # jackson\u65F6\u95F4\u683C\u5F0F\u5316
9 | spring.jackson.time-zone=GMT+8
10 | spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
11 | spring.http.multipart.max-file-size=100MB
12 | spring.http.multipart.max-request-size=100MB
13 | spring.http.multipart.enabled=true
14 | spring.resources.static-locations=classpath:/templates/static/,classpath:/templates/views/
15 |
16 | spring.freemarker.cache=false
17 | spring.freemarker.checkTemplateLocation=true
18 | spring.freemarker.contentType=text/html
19 | spring.freemarker.suffix=.html
20 | spring.freemarker.templateEncoding=UTF-8
21 | spring.freemarker.templateLoaderPath=classpath:/templates/views/
--------------------------------------------------------------------------------
/spring-boot-12-Swagger2/src/main/java/cn/timebusker/web/LogsController.java:
--------------------------------------------------------------------------------
1 | package cn.timebusker.web;
2 |
3 |
4 | import org.slf4j.Logger;
5 | import org.slf4j.LoggerFactory;
6 | import org.springframework.web.bind.annotation.RequestMapping;
7 | import org.springframework.web.bind.annotation.RequestMethod;
8 | import org.springframework.web.bind.annotation.RestController;
9 |
10 | @RestController
11 | public class LogsController {
12 |
13 | private final static Logger logger = LoggerFactory.getLogger(LogsController.class);
14 |
15 | @RequestMapping(value = { "/", "/" }, method = RequestMethod.GET)
16 | public Long createLogs() {
17 | logger.info("----------------------------------INFO");
18 | logger.debug("----------------------------------DEBUG");
19 | logger.error("----------------------------------ERROR");
20 | return System.currentTimeMillis();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/spring-boot-3-logs/spring-boot-3-logs-Log4j/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | #Spring Boot 会自动扫描classpath下的application.properties文件,如果有就加载文件配置
2 | # 项目contextPath,一般在正式发布版本中,我们不配置
3 | server.context-path=/log4j
4 | # 错误页,指定发生错误时,跳转的URL。请查看BasicErrorController源码便知
5 | server.error.path=/error
6 | # 服务端口
7 | server.port=80
8 | # session最大超时时间(分钟),默认为30
9 | server.session-timeout=60
10 | # 该服务绑定IP地址,启动服务器时如本机不是该IP地址则抛出异常启动失败,只有特殊需求的情况下才配置
11 | # server.address=192.168.16.11
12 |
13 | ########################################################################################
14 | #Spring Boot中多环境配置文件名需要满足application-{profile}.properties的格式
15 | #{profile}对应你的环境标识
16 | #application-dev.properties:开发环境
17 | #application-test.properties:测试环境
18 | #application-prod.properties:生产环境
19 | # 多环境配置文件激活属性---开发、测试、生产
20 | spring.profiles.active=dev
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/spring-boot-22-FarstPlus/src/main/resources/templates/static/plugins/jqgrid/ui.jqgrid-bootstrap-ui.css:
--------------------------------------------------------------------------------
1 | /*
2 | To change this license header, choose License Headers in Project Properties.
3 | To change this template file, choose Tools | Templates
4 | and open the template in the editor.
5 | */
6 | /*
7 | Created on : Mar 16, 2015, 10:24:01 AM
8 | Author : tony
9 | */
10 |
11 | .ui-jqgrid tr.jqgrow td { height: 26px;}
12 | .ui-jqgrid .ui-pg-input,.ui-jqgrid .ui-jqgrid-toppager .ui-pg-input { height:20px }
13 | .ui-state-hover
14 | {
15 | border: .15em solid;
16 | border-color: inherit;
17 |
18 | }
19 | .ui-jqdialog .ui-jqdialog-titlebar {
20 | height:29px;
21 | border-color: inherit;
22 | }
23 |
24 | .ui-jqdialog-content input.FormElement {
25 | padding: 0.25em;
26 | }
27 |
28 | .fm-button {
29 | height:30px;
30 | }
31 | #nData, #pData { height:20px; width:18px; }
--------------------------------------------------------------------------------
/spring-boot-4-Scheduled/src/main/java/cn/timebusker/springTask/SpringTaskSample.java:
--------------------------------------------------------------------------------
1 | package cn.timebusker.springTask;
2 |
3 | import java.util.Date;
4 |
5 | import org.springframework.context.annotation.Configuration;
6 | import org.springframework.scheduling.annotation.EnableScheduling;
7 | import org.springframework.scheduling.annotation.Scheduled;
8 |
9 | /**
10 | *
11 | * spring task简单使用
12 | *
13 | */
14 | @Configuration
15 | @EnableScheduling
16 | public class SpringTaskSample {
17 |
18 | /**
19 | * 每10秒打印一次:时间取决于运行系统时间
20 | */
21 | @Scheduled(cron = "0/10 * * * * *")
22 | public void task1() {
23 | System.out.println(getClass()+ "----task1" + new Date());
24 | }
25 |
26 | /**
27 | * 每1分钟打印一次:时间取决于运行系统时间
28 | */
29 | @Scheduled(cron = "0 0/1 * * * *")
30 | public void task2() {
31 | System.out.println(getClass()+ "----task2" + new Date());
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/spring-boot-13-MyBatis/src/main/java/cn/timebusker/common/DatasourceConfiguration.java:
--------------------------------------------------------------------------------
1 | /*package cn.timebusker.common;
2 |
3 | import javax.sql.DataSource;
4 |
5 | import org.springframework.beans.factory.annotation.Qualifier;
6 | import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
7 | import org.springframework.boot.context.properties.ConfigurationProperties;
8 | import org.springframework.context.annotation.Bean;
9 | import org.springframework.context.annotation.Configuration;
10 | import org.springframework.context.annotation.Primary;
11 |
12 | @Configuration
13 | public class DatasourceConfiguration {
14 |
15 | @Bean(name = "dataSource")
16 | @Qualifier(value = "dataSource")
17 | @Primary
18 | @ConfigurationProperties(prefix = "c3p0")
19 | public DataSource dataSource() {
20 | return DataSourceBuilder.create().type(com.mchange.v2.c3p0.ComboPooledDataSource.class).build();
21 | }
22 | }*/
--------------------------------------------------------------------------------
/spring-boot-10-SpringData/src/main/java/cn/timebusker/model/one2many/position.java:
--------------------------------------------------------------------------------
1 | package cn.timebusker.model.one2many;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.CascadeType;
6 | import javax.persistence.Column;
7 | import javax.persistence.Entity;
8 | import javax.persistence.GeneratedValue;
9 | import javax.persistence.GenerationType;
10 | import javax.persistence.Id;
11 | import javax.persistence.ManyToMany;
12 | import javax.persistence.Table;
13 |
14 | /**
15 | * 职级表(一个员工可对应着多个职级)
16 | *
17 | * @author Administrator
18 | */
19 | @Entity
20 | @Table(name = "t_position")
21 | public class position {
22 |
23 | @Id
24 | @GeneratedValue(strategy = GenerationType.IDENTITY)
25 | private long posId;
26 |
27 | @Column(nullable = false, length = 32)
28 | private String posName;
29 |
30 | @ManyToMany(cascade=CascadeType.ALL,mappedBy="position")
31 | private List
22 | #if>
23 | 我拥有的权限是:
24 |
25 | <#list result2 as item>
26 | ${item},
27 | #list>
28 |
29 |