How to introduce custom parametrization in @ConditionalOn.. annotation in Spring Boot
I have to add handling of new version of external API for one of clients. So we had beans with @Component annotation had additional annotation:
How to disable login menu ins spring-boot oauth
Is it possible to disable login-menu, which explained [here|https://www.baeldung.com/spring-security-5-oauth2-login] and a lot of another places.
IDE complaining on @Async for @Scheduled method
I defined this scheduled task:
Why Spring Boot DevTools has its dependency as spring-boot-devtools and not as spring-boot-starter-devtools?
About Spring Boot for starters exists the Build Systems – Starters section where shows the following tables:
Spring boot test can not cast GenericWebApplicationContext
I’m new with spring boot. I follow clean architecture with spring boot in this link https://www.baeldung.com/spring-boot-clean-architecture In this tutorial, spring context load bean with bean factory. Then when I want to test API with MockMvc. I write test class follow this:
Error jakarta.persistence.TransactionRequiredException: No EntityManager with actual transaction Upgrading springframework from 3.1.11 to 3.3.3
Getting the below error while upgrade the springframework from 3.1.11 to 3.3.3
Is there anyway to access the configurable values
public class HumanAgentSocket extends TextWebSocketHandler { @Value(“${human.agents.available}”) private int availableHumanAgents; private List<WebSocketSession> sessions = new ArrayList<>(); private List<String> sessionIds = new ArrayList<>(); private HashMap<WebSocketSession,WebSocketSession> socketConnections = new HashMap<WebSocketSession,WebSocketSession>(); private int noOfHumanAgents = 1; private ObjectMapper objectMapper = new ObjectMapper(); @Override public void afterConnectionEstablished(WebSocketSession session) throws IOException { if (noOfHumanAgents<=5){ System.out.println(“Agents “+availableHumanAgents); sessions.add(session); sessionIds.add(session.getId()); System.out.println(“List “+sessionIds); […]
spring-boot: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile
I am just running through the basic spring-boot tutorial Developing Your First Spring Boot Application using Maven and getting stuck at “Running the Example” using mvn spring-boot:run. Here is the error(s):
Is there a way to avoid a lot of calls to other microservices from one single service request?
This question was migrated from Stack Overflow because it can be answered on Software Engineering Stack Exchange. Migrated 33 mins ago. I’m developing a Microservices Web Chat Application using Spring boot and Websockets. Right now my concern is the following: it seems like each one of my microservices need to make a lot of calls […]
i am getting error Error creating bean with name ‘userDetailsService’ defined in class path resource [com/example/sprigBoot/AppSecurityConfig.class
below is my code