All posts tagged with 'Spring'

Separation of concerns in Spring applications


TL;DR: Don’t surprise your fellow developers. Yesterday I learned – or realized again, don’t know – that one can add @CompenenScan to all Spring components and not only to @Configuration components: TIL A @​ComponentScan on a @​Service class in #Spring actually works and contributes to the application context. 🤯 — Michael Simons (@rotnroll666) May 16, […]

Read the complete article »

Validate nested Transaction settings with Spring and Spring Boot


The Spring Framework has had an outstanding, declarative Transaction management for years now. The configurable options maybe overwhelming at first, but important to accommodate many different scenarios. Three of them stick out: propagation, isolation and to some lesser extend, read-only mode (more on that a bit later) propagation describes what happens if a transaction is […]

Read the complete article »

NetBeans IDE plugin supporting programming with Spring Boot


There are several plugins out there for supporting Spring development in NetBeans, but the NB-SpringBoot by Alessandro Falappa seems to be the most feature complete. At the moment installation must be done via manual download from here but that should be fixed soon. You’ll get a really nice Spring property support: Great integration with […]

Read the complete article »

Spring 4.2.x, Spring Boot and the Stomp broker relay


If you’re using a StompBrokerRelay on the MessageBrokerRegistry, be careful with your dependencies: If you’re using Spring Boot 1.2.x, you must have <dependency> <groupId>org.projectreactor</groupId> <artifactId>reactor-net</artifactId> </dependency><dependency> <groupId>org.projectreactor</groupId> <artifactId>reactor-net</artifactId> </dependency> on the classpath, in case of Spring Boot 1.3.x, which depends on Spring 4.2 which depends on Reactor 2, it must be <dependency> <groupId>io.projectreactor</groupId> <artifactId>reactor-net</artifactId> </dependency> […]

Read the complete article »

Upgrading to Tomcat 8.0.24


If you upgrade your Tomcat installation to 8.0.24, released on July 6th, and all your POST requests suddenly starts to fail, check maxPostSize of your connectors. The Tomcat team actually fixed it’s behavior: The meaning of the value zero for the maxPostSize has also been changed to mean a limit of zero rather than no […]

Read the complete article »