For questions relating to the Spring Boot Starter POMs.
Questions tagged [spring-boot-starter]
221 questions
0
votes
1 answer
Spring Boot Validation - How to retrieve input message in MethodArgumentNotValidException handler
I am using spring-boot-starter-validation dependency to validate java beans for my application
My Controller code as below
@PostMapping("/testMessage")
ResponseEntity testMethod(@Valid @RequestBody InternalMsg internalMsg) {
…

LearnToCode
- 169
- 1
- 5
- 19
0
votes
2 answers
Is @SpringBootApplication able to find and AutoConfigure all dependency's beans without META-INF/spring.factories?
Why do we need META-INF/spring.factories when create starters for Spring Boot applications? What if omit it at all or leave empty?
Doesn't the target application's @SpringBootApplication which is
a combination of three annotations @Configuration…

J.J. Beam
- 2,612
- 2
- 26
- 55
0
votes
0 answers
Apache Royale and JDK 8 compatibility
I'm trying to create an Apache Royale project with Java back end.
I've used in my pom blazeds-spring-boot-starter but I have a compatibility issue about the JDK compatibility in org.springframework.flex.config.FlexConfigurationManager class in the…

Joe Taras
- 15,166
- 7
- 42
- 55
0
votes
1 answer
why spring-boot-starter-tomcat is not optional in spring-boot?
According by https://docs.spring.io/spring-boot/docs/2.0.0.M5/reference/html/howto-embedded-web-servers.html and the pom of spring-boot-starter-web: https://search.maven.org/artifact/org.springframework.boot/spring-boot-starter-web/2.4.4/jar.
We…

kevinissun
- 21
- 3
0
votes
1 answer
I need to use the beans created in a jar file to be used in my main application. I tried auto-wiring it but I am getting null object
I have a ID Generator application which will be packaged as a Jar, I have some beans created which needs to be used in my Main application. I am not able to inject the beans from my Jar into my main application. Can anyone please point me in the…

Kishore Jagadeesan
- 23
- 1
- 4
0
votes
0 answers
Custom spring initializr instance - adding custom java class
I am trying to create my own instance of spring initializr as described in https://docs.spring.io/initializr/docs/current/reference/html/#create-instance. My need is to add custom java classes in the generated project (Other than the default…

Vishal
- 549
- 3
- 13
0
votes
1 answer
How using spring-boot-starter-jpa in custom spring-boot-starter?
I have my custom starter. Inside it, I define a repository. How should I define it in the configuration? This is how I did the usual bean before.
@Bean
@ConditionalOnMissingBean(HelloWorldController.class)
public HelloWorldController…
0
votes
1 answer
Can I perform a one-to-many join query using a QuerydslPredicate?
I see in this guide that providing paths as part of the predicate can generate a join:
get("/users?address.country=Spain") generates:
select user0_.id as id1_1_,
user0_.name as name2_1_
from user user0_
cross join address address1_…

Marinos An
- 9,481
- 6
- 63
- 96
0
votes
1 answer
spring boot starter security not generating default password in logs
After running the spring boot application, the default password is not generating in logs.
Please find the following logs:-
enter image description here
POM.XML
org.springframework.boot
spring-boot-starter
…

rahul soni
- 23
- 8
0
votes
1 answer
Spring Boot Starters for Azure java 11
I was following this document from Microsoft on spring boot on Azure, which state that I must use java 8 and not java 11 in order to use Spring Boot Starters for Azure, from the doc:
"Spring Initializr uses Java 11 as the default version. To use the…

Liav
- 3
- 1
0
votes
1 answer
Spring Boot Log4j2 Thread Blocked
In our Prod environment suddenly application got stuck and none of the requests were getting processed So, I took a thread dump of the PID
I see a Log4j is Blocked on Object that is locked by some other thread
Sharing the Parts of threaddump
…

user2787257
- 11
- 1
- 4
0
votes
2 answers
Spring boot with thymeleaf starter excludes javassist from other dependencies
I have 2 project, the 1st project is depending on javassist and 2nd project is dependint on the 1st and spring-boot-starter-thymeleaf.
The build gradle is like below
1st project
plugins {
id 'org.springframework.boot' version '2.3.3.RELEASE'
…

koji lin
- 667
- 1
- 8
- 12
0
votes
1 answer
spring-boot-starter-data-mongodb doesn't seem to include persistence-api to use @PrePersist @PreUpdate
What is the correct way to include and use JPA Entity Lifecycle Events when using spring-boot-starter-data-mongodb?
my pom.xml dependencies
org.springframework.boot
…

Anand Rockzz
- 6,072
- 5
- 64
- 71
0
votes
0 answers
No adapter for handler with spring-boot custom starter
I am developing a spring-boot custom starter, and I want my components/beans to be initialized only if some conditions are met. These beans include a REST controller. I have made a @Configuration class for that…

dcordonu
- 43
- 7
0
votes
0 answers
Custom Spring Boot Starter with custom Annotation
I want to add a new annotation based stereotype like @Service, into my starter project, but i don't know how to handle the registration process of that bean.
I found a solution loike
final ClassPathScanningCandidateComponentProvider provider = new…

PunkPengu
- 32
- 1