For questions relating to the Spring Boot Starter POMs.
Questions tagged [spring-boot-starter]
221 questions
13
votes
6 answers
Spring Boot Security cause java.lang.NoClassDefFoundError: org/springframework/security/web/access/WebInvocationPrivilegeEvaluator
I like to add spring security into my web project, when I add security and extends the WebSecurityConfigurerAdapter I get the following error when I start the tomcat server:
java.lang.NoClassDefFoundError:…

Mchn
- 131
- 1
- 1
- 3
7
votes
4 answers
javax.net.ssl.SSLHandshakeException:No appropriate protocol. How to force Java to use TLSv1.2 for sending mail?
I am trying to use JavaMailSender to send mails in spring boot, but I am getting this error:
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate). Failed messages:…

VishnuVS
- 1,055
- 2
- 14
- 29
7
votes
2 answers
Spring boot auto configuration with dependency and without @ComponentScan
Spring boot provides @ComponentScan to find packages to be scanned.
I am building a library which has @RestControllers inside with package com.mylib.controller. There are other classes as well with stereotype annotations in different packages.
So,…

Nitul
- 997
- 12
- 35
6
votes
1 answer
Error with a excluded dependency in Spring Boot project: exclusion.artifactId with value '*' does not match a valid id pattern
If I want to build my project with maven package, I get the warning from Maven:
Some problems were encountered while building the effective model for
ch.mobi.ama:logcollector:jar:1.0.0-SNAPSHOT…

Juerg
- 75
- 1
- 5
6
votes
1 answer
Disable spring boot starter Cassandra for unit testing
I need to use Cassandra in a project with the following gradle dependecy:
compile "org.springframework.boot:spring-boot-starter-data-cassandra"
The problem is that although Cassandra AutoConfiguration classes are marked to be excluded from a unit…

navida2b
- 61
- 1
- 2
6
votes
2 answers
How to have another parent dependency as well as Spring Boot parent in maven pom.xml file?
I am currently developing a Spring Boot multi-module project.
When you set up a Spring Boot project, in your pom.xml you are required to have a parent reference to Spring Boot, e.g.
org.springframework.boot
…
user5156198
5
votes
1 answer
Custom Spring Boot 3 Starter does not create ConfigurationProperties beans
I am creating a Maven artifact with following classes and configuration in custom Spring Starter project:
@ConfigurationProperties(prefix = "commons.time.formats")
@Getter
@Setter
public class TimeFormatConf {
...…

Alisher
- 480
- 5
- 16
5
votes
1 answer
Spring boot custom starter org.springframework.boot.autoconfigure.AutoConfiguration.import not detecting configuration classes version 2.7.2
I've read that I should not open an issue on github so I ask here. I've digged into the code and for example spring-boot-actuator-autoconfigure doesn't define the @Configuration\@AutoConfiguration classes inside META-INF/spring.factories follow the…

Pp88
- 830
- 6
- 19
5
votes
2 answers
Starter autoconfig bean always takes precedence over custom autoconfig bean
I'm trying to make a custom spring boot starter that will be used by multiple projects to authenticate with Azure AD. All the Azure AD config has been set up and an individual project hardcoded with all the settings to work with Azure AD works fine…

AForsberg
- 1,074
- 2
- 13
- 25
5
votes
1 answer
What is the purpose of "spring-boot-starter-integration" dependency?
I am refactoring a legacy Spring boot project which implements Spring integration. In one of the module, I have removed the following dependency to fix the CVE-2019-3772 vulnerability. The projects still compile and run without any failures. I have…

Vimal David
- 555
- 2
- 7
- 20
5
votes
4 answers
NoHandlerForCommandException with axon-spring-boot-starter
I am creating a simple app using Axon + Spring Boot, just to make sure I understand the basic components in Axon framework before I use it in a real project.
There is a method annotated with @CommandHandler within the class TaskAggregate that is…

Rodney
- 53
- 1
- 5
4
votes
1 answer
kotlin spring boot 3 - cannot resolve spring-boot-gradle-plugin:3.0.0
I'm getting a weird resolution error when trying to upgrade to spring boot 3. I have a kotlin/spring project. The only thing sort of related is this, but it's not the same dependency.
Here's the error:
Could not resolve…

TheJeff
- 3,665
- 34
- 52
4
votes
1 answer
why are the github projects of spring-boot-starter projects empty?
On looking at the spring-boot-starter-web, spring-boot-starter-security projects on github, i find them to be empty with just a build.gradle file present there.
I hope this is as expected, but this leads me to understand where the actual source code…

samshers
- 1
- 6
- 37
- 84
3
votes
0 answers
Problem with multiple databse when used spring-boot-autoconfigure 2.7.+
I try to change spring-boot-starter-parent from 2.6.9 to 2.7.2.
Spring-boot-autoconfigure also changes to 2.7.2 together with parent.
I have a bean which injected the bean EntityManagerFactoryBuilder
@Primary
@Bean(name =…

polyackov_ot
- 103
- 5
3
votes
1 answer
Convert library to autoconfiguration/starter while in use
Our project has a library that defines several beans.
Historically, it's a simple artifact, no autoconfig enabled and all other applications are using this artifact together with @ComponentScan.
Now, I realize, that it should rather be an…

Pavlo Zasiadko
- 93
- 1
- 9