Modules for the Spring application development framework.
Questions tagged [spring-modules]
18 questions
14
votes
3 answers
annotation based Spring bean validation
I'm investigating an annotation-based approach to validating Spring beans using spring modules. In this tutorial, the following bean (getters and setters omitted) is used as an example:
public final class User {
@NotBlank
@Length(max = 80) …

Dónal
- 185,044
- 174
- 569
- 824
4
votes
1 answer
How do I invalidate a single entry from springmodules method cache?
We are using springmodules method caching (Spring 2.0.7) in combination with ehcache to cache data which is requested often, in order to take load from the database.
E.g. we are caching the method result of public Profile getUserProfile(User u)…

peterp
- 3,101
- 3
- 22
- 37
3
votes
4 answers
Caching with Spring Framework
Spring Modules had a @Cacheable annotation:
org.springmodules.cache.annotations.Cacheable
Now that Spring Module is deprecated, what is the recommendation for caching? And is still still possible to work with ehCache?

Francois
- 2,289
- 4
- 20
- 21
2
votes
2 answers
Spring-modules caching not working... silently
I'm trying to use declarative caching from the Spring Modules project.
It's not working ie. nothing appears to be getting cached.
Here's my configuration:

bpapa
- 21,409
- 25
- 99
- 147
2
votes
2 answers
Decode Regex expression - ^[a-zA-Z0-9 "'&!#$%()*+,-./:;?@[\\]^_`{|}~]+$
Using Java
I am not a regular on regex, I came across the following regex as part of migration of springmodules-validation stuff to latest.
^[a-zA-Z0-9 "'&!#$%()*+,-./:;?@[\\]^_`{|}~]+$
What exactly is this doing? I need to…

Diablo
- 443
- 7
- 21
2
votes
1 answer
Spring modules as maven dependencies reference
I'm referencing an existing spring project that has many maven dependencies on different components of the Spring framework.
I like the fact that Spring exposes their modules this way so you can use what you need and discard what you don't.
So far…

HiChews123
- 1,598
- 4
- 20
- 39
1
vote
2 answers
What happened to springmodules package in spring 3
Recently while I was updating a project from spring 2.5.6 to 3, I couldn't find the relavent
org.springmodules package... Because of using spring 2.5 dependency I cannot use org.springmodules 0.8 version... Can anyone please tell me any what…

Pradeep
- 647
- 1
- 7
- 17
1
vote
1 answer
Autowire a Repository to a library project in Spring Boot
I'm working on a Spring Boot multi-module project. I have created separate modules as follows
com.foodshop.api - (this is a Spring Boot project, the starting point and both com.foodshop.application and com.foodshop.persistence are added as…

PIKP
- 753
- 2
- 15
- 24
1
vote
0 answers
MetadataCacheAttributeSource class
My application hosted on weblogic 12c server shows a stuck thread that is caused by attribute method of MetadataCacheAttributeSource class:
at…

vaibhav kalyani
- 31
- 2
0
votes
1 answer
spring validation configuration issue
i have a problem with a small spring project, it worked fine until i tried to add the Validation framework
So i addedd adding the jar: spring-modules-validation0.8.jar
And the following in servlet-context.xml

JBoy
- 5,398
- 13
- 61
- 101
0
votes
0 answers
Spring module could not load properties
I have multi modules app whera I wrote some library. I have properties there, and it comes from parent-app. My library service looks like that:
@Slf4j
@Service
public class SmsMessageService {
@Value("${smsservice.oauth-token}")
private…

danny
- 4,337
- 3
- 9
- 10
0
votes
1 answer
Spring Boot: Architecting Application with Both Web and non-Web CLI processes as a monolith
I am looking for the best way to implement a single-module Spring Boot project, which can run as multiple processes (1) serving REST API or (2) running one of many CLI processes.
Details:
We have three components in a simplified version of our…

Nawab
- 1
0
votes
2 answers
Microservice, module and error compilation: The injection point has the following annotations:
I spent my day trying to understand but I can't understand my problem.
I have 1 spring module (https://spring.io/guides/gs/multi-module/) [I also have JPA in the sub module] and 2 microservices (A and B).
In microservice A, I arrive at @Autowired…

Olivier4477
- 11
- 6
0
votes
0 answers
java module system - why do we need to explicitly specify the default modules in -add-modules
Recently I was converting a spring boot(2.1.3 version) dummy project into a spring boot muti module project on java 11. To make it work I have to explicitly add --add-modules=java.instrument as run time vm argument. Please find the related so…

nantitv
- 3,539
- 4
- 38
- 61
0
votes
1 answer
How do i access an object in validation.xml in bean validation framework
My class:
public class Employee {
private String firstName;
private String lastName;
private Department department;
//with getters and setters
}
My employee-validation.xml