tagged [spring]
When using Spring Security, what is the proper way to obtain current username (i.e. SecurityContext) information in a bean?
When using Spring Security, what is the proper way to obtain current username (i.e. SecurityContext) information in a bean? I have a Spring MVC web app which uses Spring Security. I want to know the u...
- Modified
- 5 Nov at 12:53
crudrepository findBy method signature with multiple in operators?
crudrepository findBy method signature with multiple in operators? I have an Entity Class like this: How to write `findBy` method for the below query using crudrepository spring data jpa? ```
- Modified
- 26 Sep at 11:12
DOJO with spring framework
DOJO with spring framework I am new to Spring as well as Dojo. I need to use Dojo with one of my mvc project in Spring 3.0 I came accross below link which talks about using spring-js with Dojo.spring-...
- Modified
- 14 Dec at 11:38
How to debug Spring Boot application with Eclipse?
How to debug Spring Boot application with Eclipse? My `Spring Boot` webapp is running just fine, and I'd like to debug it through Eclipse. So when launching my Remote Java Application debugger, which ...
- Modified
- 6 Mar at 17:6
The type WebMvcConfigurerAdapter is deprecated
The type WebMvcConfigurerAdapter is deprecated I just migrate to spring mvc version `5.0.1.RELEASE` but suddenly in eclipse STS WebMvcConfigurerAdapter is marked as deprecated ``` public class MvcConf...
- Modified
- 7 Mar at 10:22
Disable all Database related auto configuration in Spring Boot
Disable all Database related auto configuration in Spring Boot I am using Spring Boot to develop two applications, one serves as the server and other one is a client app. However, both of them are the...
- Modified
- 3 Apr at 15:21
Spring Scheduling - Cron expression for everyday at midnight not working?
Spring Scheduling - Cron expression for everyday at midnight not working? I am trying to schedule a task in Spring which is to be run everyday at midnight. I followed the [official guide](https://spri...
- Modified
- 14 Nov at 12:50
Spring Boot not serving static content
Spring Boot not serving static content I can't get my Spring-boot project to serve static content. I've placed a folder named `static` under `src/main/resources`. Inside it I have a folder named `imag...
- Modified
- 20 Feb at 15:31
Call another rest api from my server in Spring-Boot
Call another rest api from my server in Spring-Boot I want to call another web-api from my backend on a specific request of user. For example, I want to call send message api to send a message to a sp...
- Modified
- 19 Mar at 16:37
Is there a way to @Autowire a bean that requires constructor arguments?
Is there a way to @Autowire a bean that requires constructor arguments? I'm using Spring 3.0.5 and am using @Autowire annotation for my class members as much as possible. One of the beans that I need ...
- Modified
- 26 Dec at 20:34
How does autowiring work in Spring?
How does autowiring work in Spring? I'm a little confused as to how the [inversion of control](http://en.wikipedia.org/wiki/Inversion_of_control) (`IoC`) works in `Spring`. `UserServiceImpl``UserServi...
- Modified
- 2 Jul at 15:34
Spring + Web MVC: dispatcher-servlet.xml vs. applicationContext.xml (plus shared security)
Spring + Web MVC: dispatcher-servlet.xml vs. applicationContext.xml (plus shared security) What is the correct way to use the two contexts: `dispatcher-servlet.xml` and `applicationContext.xml`? What ...
- Modified
- 9 May at 09:39
How to pass List<String> in post method using Spring MVC?
How to pass List in post method using Spring MVC? I need to pass a list of values in the request body of `POST` method but I get `400: Bad Request error`. Below is my sample code: The
- Modified
- 14 Jan at 12:44
org/springframework/metadata/Attributes not found in spring3.0?
org/springframework/metadata/Attributes not found in spring3.0? may i know which jar is this class java.lang.NoClassDefFoundError: org/springframework/metadata/Attributes located? i cannot find it ins...
- Modified
- 24 Jul at 15:44
Spring Bean Scopes
Spring Bean Scopes Can someone explain what the scopes are in Spring beans I've always just used 'prototype' but are there other parameters I can put in place of that? Example of what I'm talking abou...
- Modified
- 6 Aug at 23:47
Spring Rest POST Json RequestBody Content type not supported
Spring Rest POST Json RequestBody Content type not supported When I try to post new object with post method. RequestBody could not recognize contentType. Spring is already configured and POST could wo...
- Modified
- 5 Jan at 08:30
Can Spring-WS 1.5 be used with Spring 3?
Can Spring-WS 1.5 be used with Spring 3? Spring-ws 1.5.9 depends on Spring 2.5 (based on the pom). Can it be used with Spring 3 without running into any classloading issues. I know that some of the pa...
- Modified
- 11 Jan at 16:39
Configuration using annotation @SpringBootApplication
Configuration using annotation @SpringBootApplication I have problem with Spring Boot configuration. I have created base Spring Boot project using [https://start.spring.io/](https://start.spring.io/) ...
- Modified
- 17 Jun at 18:26
Load different application.yml in SpringBoot Test
Load different application.yml in SpringBoot Test I'm using a spring boot app which runs my src/main/resources/config/application.yml. When I run my test case by : The test codes still run my applicat...
- Modified
- 2 Aug at 04:39
How do you create a Spring MVC project in Eclipse?
How do you create a Spring MVC project in Eclipse? I am trying to follow the basic tutorial for Spring MVC but got lost at creating a new project in Eclipse. It seems to me that most tutorials assume ...
- Modified
- 11 Mar at 09:25
What is Dispatcher Servlet in Spring?
What is Dispatcher Servlet in Spring? In this image (which I got from [here](http://maestric.com/wiki/lib/exe/fetch.php?w=&h=&cache=cache&media=java:spring:spring_mvc.png)), request sends something to...
- Modified
- 19 May at 21:56
How do I get the Session Object in Spring?
How do I get the Session Object in Spring? I am relatively new to [Spring](http://en.wikipedia.org/wiki/Spring_Framework) and Spring security. I was attempting to write a program where I needed to aut...
- Modified
- 9 Feb at 10:3
Spring Data JPA find by embedded object property
Spring Data JPA find by embedded object property I want to write a Spring Data JPA repository interface method signature that will let me find entities with a property of an embedded object in that en...
- Modified
- 2 Sep at 12:36
Spring get current ApplicationContext
Spring get current ApplicationContext I am using Spring MVC for my web application. My beans are written in "`spring-servlet.xml`" file Now I have a class `MyClass` and i want to access this class usi...
- Modified
- 17 Feb at 11:14
How to re-create database before each test in Spring?
How to re-create database before each test in Spring? My Spring-Boot-Mvc-Web application has the following database configuration in `application.properties` file: this is the only config I made. No a...
- Modified
- 5 Jan at 17:43