https://github.com/mpalourdio/springboottemplate
Spring Boot example application with spring cloud integration
https://github.com/mpalourdio/springboottemplate
hibernate jpa junit mockito spring-boot spring-cloud springboottest wtf
Last synced: 4 months ago
JSON representation
Spring Boot example application with spring cloud integration
- Host: GitHub
- URL: https://github.com/mpalourdio/springboottemplate
- Owner: mpalourdio
- License: mit
- Created: 2015-10-10T15:24:54.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2025-02-27T08:40:31.000Z (5 months ago)
- Last Synced: 2025-03-18T18:54:45.582Z (4 months ago)
- Topics: hibernate, jpa, junit, mockito, spring-boot, spring-cloud, springboottest, wtf
- Language: Java
- Homepage:
- Size: 637 KB
- Stars: 6
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/mpalourdio/SpringBootTemplate/actions/workflows/main.yml)
Spring Boot 3.x example application.
=======================================More a reminder for some dirty tricks than anything else...
Include examples for :
- @SpringBootTest
- @DataJpaTest
- @AutoConfigureMockMvc
- JUnit & Mockito 2
- EventListener : non void ``@EventListener`` method triggers automatically another event
- Async Event (Annotation Driven)
- Request Forwarding
- DataSource auto-configuration
- Thymeleaf
- HttpSecurity Cache Control
- Externalized configuration
- Travis CI Build
- Custom logging configuration
- Logout example
- GZip compression for some content-type
- org.hibernate.java8 to handle LocalDate API in entities
- Mock EntityManager (@PersistenceContext)
- File Download with HttpServletResponse and ResponseEntity
- Excel Generation with Apache POI
- Basic auth protected endpoint (/basicauth) and how to test this kind of (silly) protection (lol)
- Async static Logger event driven
- Spring Cloud configuration server integration
- Refreshable controller with @RefreshScope
- Mockito 2 integration with Strict Stubs checking
- @EnableConfigurationProperties examples
- JSON Serialization/Unserialization examples
- Custom MediaType
- ...# DB
`docker run -it --name postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=taskmanager -p 5432:5432 -d postgres`