Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 16 days ago
JSON representation

Spring Boot example application with spring cloud integration

Awesome Lists containing this project

README

        

[![CI](https://github.com/mpalourdio/SpringBootTemplate/actions/workflows/main.yml/badge.svg)](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
- ...