Questions tagged [spring-boot-starter]

1

votes
0

answer
656

Views

Spring Security OAuth2 Could not obtain access token

I have a spring security oauth client which is authenticating against a custom auth0 provider. For getting the UserAuthorizationUri, i need to make a post request to a rest endpoint which is a wrapper on top of auth0. So i have extended OAuth2ClientContextFilter and used a custom redirect strategy.N...
Pradeep S
1

votes
0

answer
338

Views

Spring boot custom starter , application doesn't find required bean

http://www.baeldung.com/spring-boot-custom-starter I have followed tutorial and github example provided from the link above and have implemented similar way. I am using spring-boot-starter-parent :2.0.0.M3. Even after including my custom starter dependency in the pom for the app, it doesn't find req...
Amit
1

votes
1

answer
193

Views

hot swapping not working for Spring boot with Intellij and spring-boot-starter-web

My spring boot microservice uses spring-boot-starter-web and I'm trying to enable hot swapping in intellij. I tried adding the this dependency: org.springframework.boot spring-boot-devtools runtime and then in Intellij I: checked 'Build project automatically' in compiler settings AND checked the co...
Ron Stevenson
1

votes
0

answer
270

Views

Running Spring Boot App in AWS does not start

I have a Spring Boot application that starts without problem when executed locally. I want to run the app via AWS Lambda. I used the https://github.com/awslabs/aws-serverless-java-container and added the corresponding code as described in this sample: https://keyholesoftware.com/2018/04/26/aws-lamb...
Stefan Fuchs
1

votes
0

answer
85

Views

Migrating Java and Spring Boot

Trying to upgrade the versions of Java and SpringBoot. While Updating SpringBoot Starter parent version as 2.1.1.Release from 1.5.5 getting this below Error when trying to build the project Maven clean install incompatible types: boolean cannot be converted to org.springframework.boot.WebApplication...
Thiru
1

votes
0

answer
33

Views

What is the best practice for a custom starter to provide http endpoints

Let's say I have a custom starter: compile ('com.github.hippoom:sms-verification-starter:0.7.0') You'll have a sms verification feature once you import it to your project. It will provide some beans by convention. The following code snippet in the starter project provides a SmsVerificationCodeSender...
Yugang Zhou
0

votes
2

answer
12

Views

I can't create my custom spring-boot starter

I try to create spring-boot-starter. I create a simple spring-boot module with this Gradle file: plugins { id 'org.springframework.boot' version '2.1.3.RELEASE' id 'java' } apply plugin: 'io.spring.dependency-management' group = 'my.domain' version = '0.0.1-SNAPSHOT' dependencies { implementation 'o...
ip696
1

votes
2

answer
312

Views

spring-boot-starter-cache with camunda shows java.lang.NoClassDefFoundError: org/apache/log4j/Priority class not found

I'm using camunda (a business process flow tool, not sure if that has anything to do with it). pom.xml is below (only removed header & maven build plugin). When I build & deploy in Tomcat I get 'java.lang.NoClassDefFoundError: org/apache/log4j/Priorityorg/apache/log4j/Priority'. Stack trace is b...
A.P
1

votes
2

answer
4k

Views

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: org/springframework/security/web/access/WebInvocationPrivilegeEvaluator at java.lang.Class.get...
Mchn
1

votes
2

answer
403

Views

Spring boot starter web - make a configuration bean that alters properties initialized first

I am using embedded tomcat in my spring boot application. My requirement is to read all configuration properties from db as well as property files. I managed to read properties from db and append the properties to MutablePropertySources with a @Configuration bean as follows: @Configuration public cl...
simpleusr
1

votes
1

answer
39

Views

Understanding @Enable… annotations concurrency

We have a project that uses spring-boot-cache-starter, registering an ehCache CacheManager implementation, and spreading @Cacheables accross the code. Then, some other team created an starter, that basically relies on the default configuration autconfigured by spring-boot-cache starter (hashmap) for...
Whimusical
1

votes
1

answer
249

Views

Should I create a new spring-boot starter or use optional dependencies?

I'm currently maintaining a fork of the jodconverter project which offers a spring-boot-starter module, allowing a spring-boot based app to use an Open/Libre Office installation (on the same server) to automate document conversions. Now, the project have grown and a new module was born, named jodcon...
sbraconnier
1

votes
2

answer
903

Views

Unable to start spring boot application NoClassDefFoundError

I have changed spring-boot-starter-parent from 1.4.3 to 1.5.4 org.springframework.boot spring-boot-starter-parent 1.5.4.RELEASE This is my java application file @SpringBootApplication @ComponentScan('com.test') @EnableCaching @EnableAsync @EnableAspectJAutoProxy @EnableAutoConfiguration(exclude = {...
Kiran
1

votes
2

answer
281

Views

Spring Boot Factory Bean Creation Order

I am trying to dynamically register Beans in Spring Boot, however the order of how the beans are created always result in a NoSuchBeanDefinitionException if it try to autowire one of the dynamic beans. My setup consists of two projects, one spring-boot-starter project and the actual spring-boot appl...
MaVe
1

votes
1

answer
833

Views

Spring-boot security won't respect roles with custom AuthenticationProvider [duplicate]

This question already has an answer here: Springboot Security hasRole not working 1 answer I am creating my own custom authentication provider. Right now i am just checking for a static username and password but later this will be replaced with something more advanced, so while i dont need to use a...
1

votes
1

answer
435

Views

Custom annotation for method in controller that extends an abstract controller

What I have to do is pretty simple using interceptors but I was really hoping for a more elegant solution based on annotations. The thing is that my 'solution' doesn't really work and I do not know why. Maybe this isn't even possible. My basic stack is: spring boot 1.4.1: spring-boot-starter-web s...
Buzzo
1

votes
1

answer
896

Views

is there any conflict between spring-boot-starter-parent version 2 and spring-security-jwt and spring-security-oauth2

I am trying to fix an issue I am facing with Spring Boot + Java 8 and Hibernate (my original question regard this issue is org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value did not match expected type java.time.LocalDateTime). Since I read Since 5.2, 'the hibernate-java8 mo...
Jim C
1

votes
2

answer
1.1k

Views

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, if some one is developing SpringBoot Application wit...
Nitul
3

votes
2

answer
4k

Views

spring-boot-starter-quartz jdbc example

Starting with spring-boot 2.x.x they started offering spring-boot-starter-quartz which is great! Out of the box it does an in-memory store. I want to change it to be a clustered environment but I'm having issues with the configuration I think mostly because I need to put the qrtz_ tables in a differ...
Tim Levett
3

votes
0

answer
43

Views

Handling different Spring Boot versions in custom Spring Boot Autoconfiguration projects

In custom Spring Boot Autoconfiguration projects I usually have some dependencies which are marked as optional. As I need them for compilation, but expect users of my autoconfig to include them manually in their own POM, or they will be provided by the Spring Boot dependencies. How do I ensure that...
jhyot
2

votes
3

answer
669

Views

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 supposed to be called when I send a command through t...
Rodney
2

votes
1

answer
558

Views

Cannot start tomcat server when having “spring-boot-starter-test” dependency in classpath

My spring boot web application stopped immediately without any error message when starting: :: Spring Boot :: (v2.0.1.RELEASE) 2018-04-19 17:15:34.009 INFO 5600 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2018-04-19 17:15:34.013 INFO 5600 --- [...
Neo
2

votes
0

answer
539

Views

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 test, Somehow spring still tries to instantiate class...
navida2b
1

votes
1

answer
183

Views

Spring boot 2 actuator without autoconfiguration

Can anyone help me to figure out how to enable actuator endpoints without using autoconfiguration dependencies? I'm working on a Spring-Boot 2 project but starter poms and autocnfiguration dependencies are forbidden.
Lost_dev
2

votes
1

answer
76

Views

Including profiles via a Spring Boot starter

I'm having issues with a custom Spring Boot starter. How can a starter cause a profile to be included and pull related configuration from a config server? Perhaps my use case is unique, because I haven't found any helpful information online. I'm working in an enterprise environment and this starter...
Ryan O.
2

votes
2

answer
1.3k

Views

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 spring-boot-starter-parent 1.5.10.RELEASE What I would like to have is my project be a submo...
0

votes
1

answer
205

Views

Multiple ActiveMQ listeners for multiple topics couldn't connect in spring boot project when clientId is set

I am using spring-boot-starter-activemq. When I am trying to listen using multiple listeners each for a different topic with clientId then only ONE listener is able to connect to a topic at random remaining doesn't connect saying already connected with given clientId. Below are properties set spring...
Vas K