Spring-WS SAAJ problem in JBoss
I recently used Spring-WS in an application that we wanted to deploy under JBoss 4.0.1sp1 / JDK 1.5 and JBoss 5.1.0GA / JDK 1.6. I had a good few problems getting the dependencies just right but the...
View ArticleDbUnit
I’ve decided to revisit the JUnit testing Hibernate and Spring recipe that I posted a while back. A problem with the previous recipe is that it did not provide any means to initialize the test...
View ArticleSpring-WS and Security
Spring Web Services (Spring-WS) are a neat way of declaratively creating SOAP web services using Spring with a minimum of boilerplate code usually associated with web services. I’d recommend it as the...
View ArticleProtecting Service Methods with Spring Security Annotations
Spring Security is typically used to protect Web Applications by restricting access to URLs based on a user role. However, it can also be used to secure methods and classes so that coding or...
View ArticleSpring MVC Maven Archetype
I’ve started using Spring MVC as my main web development framework. I’ve found it straightforward to learn and pleasant to use. However, I was a little disappointed that no standard Maven Archetype...
View ArticleTesting with mock users in Spring / Spring MVC
A common unit test scenario for Spring / Spring MVC applications is to verify behavior when logged in as a particular user. The new spring-security-test library available with Spring Security version 4...
View ArticleHashing and Salting passwords with Spring Security PasswordEncoder
A standard Spring Security configuration uses username / password based authentication. This always presents a tricky problem: how to securely store a user’s password in such a way that it can’t be...
View ArticleNo code REST services with Spring Boot and Spring Data REST
CRUD REST services are the backbone of a microservice architecture. If we want to use microservices rather than monolithic applications, it’s essential that we can create a basic service with a minimum...
View ArticleTesting Spring reactive WebClient
Spring WebClient is the reactive replacement for the legacy RestTemplate. It has a more modern fluent API and first class support for Reactive Streams. This means it supports non-blocking,...
View ArticleSpring4Shell
The Spring4Shell (CVE-2022-22965) critical severity vulnerability in Spring Framework allows remote code execution (RCE). At time of writing, it can be exploited only in very specific scenarios....
View Article
More Pages to Explore .....