Category "spring"

No qualifying bean of type 'javax.sql.DataSource' available

I am using spring mvc version 5. I am struggling in an autowire problem. I am following a spring security JDBC tutorial. Here is the AppConfiguration.class:

Returning proper value from @AfterThrowing

I am new to String, SpringBoot. Can we suppress thrown exception in a method annotated with @AfterThrowing? I mean when an exception is thrown, it will suppres

Spring Security 5 sha256 encoder

I have a problem with Spring Security 5 Basic authentication. I've configured Spring like this: @Configuration public class SecurityConfig extends WebS

Does Redis cache have advantage over Spring cache if used only for simple cache?

I am new to caching thing and learning some different solutions for my spring boot app. I was looking at Spring Cache and it is simple caching mechanism (that w

Cross origin blocked between Ajax and Spring Controller

I want a Javascript function to send data to a Spring controller and get a response. However, due to the strict-origin-when-cross-origin Referrer policy, the re

Spring @DependsOn For Different Profiles

I have two different beans for the same class with different configurations depending on the given profile. @Bean @Profile("!local") public VaultPropertySource

Spring transaction closes connection once commit for Propagation type REQUIRED_NEW

In my application i am processing messages from queue using camel and process it in multiple threads. I tried to persist the data to a table during the process

Generalize Specifications with joins

I'm using Spring Specifications to filter and sort through a class using multiple joins. For example, I have the class ContextData public class ContextData impl

Encountered invalid @Scheduled method 'methodName': Only no-arg methods may be annotated with @Scheduled

plz I don't know wath is the exact problem in the code if I add Scheduled annotatiçon in my code suddenly this error appears if you have any soulustion p

Open Bootstrap dialog window from Spring MVC BE

I have a Spring MVC controller and bootstrap page. When I submit the form and send some payload to this endpoint if some condition is not met I would like to di

Spring Cache Caffeine bulk retrieval

Is it possible to use Caffeine's CacheLoader::loadAll with @Cacheable annotated method with collection parameter, like @Cacheable(cacheNames = "exampleCache", c

Spring Boot allow Square brackets for nested objects in Request Parameters

I'm using Spring Boot 2.6.7 and org.springdoc:springdoc-openapi-ui:1.6.7 to run swagger ui with OpenApi 3 definition along with my backend. My Setup @GetMapping

Uploading files Kotlin Spring Boot

So, I am trying to make and upload file(s) functionality, from some blog posts and stackoverflow questions I got this solution: @PostMapping("/file/upload") fun

Uploading files Kotlin Spring Boot

So, I am trying to make and upload file(s) functionality, from some blog posts and stackoverflow questions I got this solution: @PostMapping("/file/upload") fun

Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.boot.SpringApplication

I recently upgraded by sprint boot to 2.6.6 following a RCE vulnerability. However, now I application isn't starting with error: APPLICATION FAILED TO START Des

How do you achieve Integration tests in Quarkus without @DirtiesContext?

With Spring Boot, I use @DirtiesContext to ensure the database is cleared before each test case. There is no @DirtiesContext annotation with Quarkus AFAIK. Inst

How to use Spring Converter for some controllers only?

I have c converter which works: public class StringToLongConverter implements Converter<String, Long> { @Override public Long convert(String sour

No main manifest attribute, in executable jar

while running my jar I receive the below error No main manifest attribute, in jar I have followed some of the solutions provided here but it did not solv

Change VS Code debug console font color?

For whatever reason, the font color of my debug console is a blue which makes it really difficult to read. I'm not sure if this is due to vs code settings or ma

spring boot cloud eurka windows 10 eurkea returns host.docker.internal for client host name after latest docker upgrade

Spring Boot Cloud Disovery Question, Problem with Eureka hostname after docker upgrade on windows 10. (Note: docker is not hosting spring services, just maria