Spring at StackOverflow

Welcome to our StackOverflow page, where we maintain a list of StackOverflow tags that our engineering team monitors and participates in. If you are a previous forum.spring.io user, please read the blog post about the change or visit the read-only archive.

Active questions on StackOverflow

1
votes
1answers
27 views

Spring @PropertySource refresh

How I refresh the @PropertySouce(propertyFile) in spring. for example :- There is a parameter in property file :- MY_APP_NAME=MY APPLICATION and I am using @Autowired Enviornment env; to
0
votes
0answers
8 views

Spring bean without any id and name

Can you help me, please? I want to create Spring bean using annotation without any name or id. Like in xml config <bean class="com.my.class.Nane"/> I just need to disable Autowiring bean by n
0
votes
0answers
7 views

Spring security - Custom authentication provided not called

I have read all stackoverflow topics about same issue. I have read baeldung tutorials, yet I'm still not getting this working. My CustomAuthenticationProvider is not being called, hence I get denied
0
votes
1answers
18 views

Spring Boot - IntellIj: hot swapping does not work for resources/static folder

I started working on spring boot project recently. I have project structure as shown below image. Problem: When i change any js/css files under resource/static folder. IDE not doing hot swap. I am u
0
votes
1answers
184 views

SpringBoot org.springframework.beans.factory.UnsatisfiedDependencyException

I am very new to SpringBoot. I have written a sample service which accepts project details and stores them in a postgres db. However, I am unable to launch my application and not sure what is wrong. I
0
votes
0answers
6 views

How to configure hibernate5 SessionFactoryBean for using HikariCP?

Where should I configure connection pool for spring + hibernate application? <bean id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean"> <property name=
1
votes
0answers
29 views

Spring Security apply filters to insecured URLs

I have Spring Security configured to ignore certain URL's (/session/**, /v2/api-docs/**) as below but it still tries to authenticate them. TokenAuthenticationFilter is an implementation of TokenAuthen
0
votes
0answers
7 views

Two keywords are overlapping to each other in jsp

In dashboard 'entries' and 'search' both keywords are overlapping to each other. What is reason behind this?
0
votes
0answers
7 views

Spring jdbc transaction template won't commit if SqlParameterSourceIsEmpty

I have a simple data access layer, which tries to persist some data: SqlParameterSource[] posts = ...; SqlParameterSource[] tags = ...; transactionTemplate.execute(new TransactionCallbackWithoutResul
0
votes
0answers
6 views

Scoped Spring events in Vaadin possible?

The Spring event mechanism supports publishing application events and listening to these events within Spring components via the @EventListener annotation. However, I cannot find anything about sendin
0
votes
0answers
33 views

SpringBoot Integration with Mysql using Hibernate

I am new to springboot and hibernate not able to figure out about different annotations and i understood that for additional settings like Database properties theres a file called application.properti
0
votes
1answers
10 views

Spring DI : Aggregation or Composition

Aggregation: If two objects have there own life cycle and not tightly coupled with each other(can exists independently). Class A { B b; } The default value for b will be null and A's object ca
0
votes
0answers
17 views

Understanding the difference of permitAll() and anonymous() in Spring Security

I just want to make sure if I get this correctly, so I would be thankful for any response; in my configure-override: @Override protected void configure(HttpSecurity http) throws Exception { http.
52
votes
8answers
51359 views

How does the FetchMode work in Spring Data JPA

I do have a relation between three model object in my project (model and repository snippets in the end of the post. When I call PlaceRepository.findById it does fire three select queries: ("sql")
0
votes
1answers
40 views

Full authentication error on localhost:8080 but not on localhost:3000

I got a strange behavior when developing with Spring Boot (back end) and React (front end). When I'm sending a POST request from localhost:8080 to Spring Boot, I got this ERROR in Spring Boot: 2018-
0
votes
0answers
33 views

why using two big braces in below code?here it is not Anonymous inner class)

I am studying Spring Batch,there is the below code, why using two big braces,I am confused. here it is not Anonymous inner class ,I think. who can help me?Thanks. I am studying Spring Batch,there is
0
votes
0answers
31 views

What is the meaning of double colon in spring framework modelandview?

I don't know how can I explain this symptom in the web page. Because when I enter the double colon in the URL, some of a tags are found on the web page. the url like below /birthday?birthday=201601
0
votes
1answers
149 views

How many containers in spring MVC?

I am new to spring. I wanted to know two things : Does the Dispatcher Servlet and ApplicatonContext exists in two different containers (in terms of spring). Also, if they are part of same container,
0
votes
2answers
46 views

spring boot RequestBody don't work

I'm studying & new to Spring boot, and trying to create a controller receiving post request, but throughout my test the controller always receives null request body object. Please guide me what I
0
votes
3answers
42 views

NoSuchBeanDefinitionException: No qualifying bean of type available: expected at least 1 bean which qualifies as autowire candidate

I am trying to migrate a Spring 4.x.x to Spring boot and it has a dependency on a class in external spring 2.5 jar. I have made all the autowiring changes and below is my application class @SpringBoo
0
votes
1answers
35 views

What's the best way to turn a single @Component instance into multiple ones?

I have a Spring application which create a task which schedules and runs a Runnable: MAIN: @SpringBootApplication @Slf4j @Configuration @EnableEncryptableProperties @EnableJpaAuditing public class M
-4
votes
1answers
44 views

How to retrieve query from a given parameter?

I've recently started learning Spring boot and Spring RESTful at work. I'm able to print "Hello world" in a spring REST project. I've also used collections and am able to display the names of cities.
0
votes
0answers
10 views

AbstractHttpMessageConverter does not handling GET request

I am using AbstractHttpMessageConverter to handle some security for all types of request.Unfortunately i found that it was not handling the GET request. I used logger to check,the GET request is not
0
votes
1answers
15 views

How to find max connections available in Redis and how many are used and how many are free?

We are using Redis from the Spring boot app and we are getting below alert like flood Exception occurred while querying cache : class org.springframework.data.redis.RedisConnectionFailureException M
0
votes
0answers
14 views

Getting 405 (Method not allowed) for POST request from Angular js to Spring Rest

I am trying to make a post request using $resource service from Angular js to Spring rest , but getting 405 (Method not allowed) Angular Service - app.service('commentsService', [ '$resource', '$q',
1
votes
1answers
33 views

Upload a json containing base 64 encoded file(size 400Mb) to spring REST interface using curl command

I am trying to upload a json containing large base64 encoded file(size: 400Mb) to a Spring REST interface using curl. But I receive a OutOfMemory error. I understand that the json containing the file
0
votes
1answers
22 views

Spring Boot Hikari can't find DriverClassName

I have a spring boot project,It run just fine when I execute via eclipse Project > Run as > spring boot app but when I build the project and execute it using java -jar myproject.jar or run it u
1
votes
1answers
27 views

How to Show the uploaded documents in a list using spring and jsp

@RequestMapping(value = "/uploadFile", method = RequestMethod.POST) public @ResponseBody String uploadFileHandler(@RequestParam("file") MultipartFile file) { if (!file.isEmpty()) { String
-3
votes
1answers
24 views

my api sometimes need cache data sometimes and sometimes not required?

my service sometimes need cache data sometimes and sometimes not required , so i would like to write an method that could clear cache when not needed AND #could someone help me creating a restful, jav
2
votes
2answers
47 views

How to add Password encoder to authentication-provider in Spring 5

I am trying to add a password encoder to authentication-provider which references UserDetailsByNameServiceWrapper but i do not find any information in Spring Docs on how to add a nooppassword encoder