I'm making a reddit clone for practice and when I run it I'm getting the following exception: java.lang.ClassCastException: class java.lang.String cannot be cas
I am using the cloud SwaggerHub Codegen Editor and wrote API like this: /foodlogs: get: tags: - foodlog summary: searches food logs operationId: searc
i am using the spring security. I added the dependency in the pom.xml but the GrantedAuthority class is not importing in the code. pom.xml is <?xml vers
In my spring boot Application i have a scheduler which calls an API to generate token which expires in 15 min. Time of scheduler is also 15 min. please find bel
I am trying to run an IT test using a MongoDB test container. However, I get the following error when I run the test com.github.dockerjava.api.exception.Interna
I understand the error message and i know how to solve it, but i want to know why it occurs in this specific place especially on a find method. I created a mini
I use Spring Boot and included jackson-datatype-jsr310 with Maven: <dependency> <groupId>com.fasterxml.jackson.datatype</groupId> <
I'm using java 11, and Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (X64) Jul 9 2008 14:17:44 Copyright (c) 1988-2008 Microsoft Corporation Enterprise E
I´m using protobufs with this concrete definition. message Hash { string category = 1; repeated KVPair content = 2; } message KVPair { strin
I have a component that I what to be able to enable/disable from the applikation.properties in my spring boot application.. In my application.properties I ha
My use case is running custom code before a controller method by annotating methods. HandlerInterceptor seems the way to go but it seems impossible to inject d
I am trying to implement Spring Security within my REST API. My project was working perfectly until I started to implement Spring. I believe the issue has somet
I'm trying to connect to a Ldap server (host by the company, don't have much info about it), using Spring Security, I have this bean: @Override public void con
I've created a simple Spring Boot Web Application in intelliJ. I've placed a simple .jsp file in the /src/main/resources/templates/ folder which contains some b
I am working on a Spring boot application. We are using Spring cloud open Feign for making rest calls. We are using the default GsonEncoder(), but for some reas
I am writing a rest client in spring boot that call secure server API over ssl. Here is my code: @Value("${secret: not configured}") private String secret
I am trying to create a table through following query on aws keyspace. it is throw an exception that "com.datastax.oss.driver.api.core.servererrors.AlreadyExist
I want to test my Spring application. When I add the @SpringBootTest to my test class, tests hang and not starting even if I wait for more than an hour! Removin
Springfox 3.0.0 is not working with Spring Boot 2.6.0, after upgrading I am getting the following error org.springframework.context.Applicatio
Is there a way to make @EnableScheduling conditional based on an application property? also is it possible to disable controllers based on properties too? What