spring-4 Questions
6
Solved
I`m building a skeletal project for dev with spring 4 boot security and others.
Using H2 while attempting to log into the db console and manage my db i get the following error. The page is blank, w...
Unswear asked 6/10, 2014 at 15:55
9
Solved
I am developing a RESTful app using Spring4.
I want to handle the case when a POST request contains no body.
I wrote the following custom exception handler:
@ControllerAdvice
public class MyRestE...
Lonilonier asked 22/12, 2016 at 22:52
9
Solved
I'm trying to handle MethodArgumentNotValidException using @ControllerAdvice as code given below:
@ControllerAdvice
public class RestResponseEntityExceptionHandler extends ResponseEntityExceptionHa...
Gallego asked 9/7, 2016 at 13:25
6
Solved
I am working with Spring Framework 4.0.7, together with MVC and Rest
I can work in peace with:
@Controller
ResponseEntity<T>
For example:
@Controller
@RequestMapping("/person")
@Profil...
Quittor asked 24/10, 2014 at 13:56
3
Solved
i have created a maven project and added Spring4, Hibernate4 libs through pom.xml
I m trying to link my web app with my database created in PostgreSql, but when i publish my project in apache tomca...
Danais asked 29/8, 2015 at 11:35
3
Solved
Problem Statement
Migration to Spring 4 from Spring 3 induces some exceptions in exception handling flow.
The Exception says No suitable resolver for argument in the org.springframework.web.metho...
Underexpose asked 30/7, 2014 at 6:23
6
Solved
As far as I can tell only any of lists are available in @Secured annotations or ExpressionUrlAuthorizationConfigurer objects. Trying to add multiple annotations or hasAuthority() calls either fails...
Radar asked 4/2, 2016 at 15:12
7
Solved
What's the difference between @GetMapping and @RequestMapping(method = RequestMethod.GET)?
I've seen in some Spring Reactive examples, that
@GetMapping was used instead of @RequestMapping
Oquassa asked 22/8, 2016 at 10:58
4
Solved
I am trying to load some context from an RSS feed and pass it as a cache to the client using ehcache library in spring. here is my code :
import org.springframework.cache.annotation.Cacheable;
@S...
Diplex asked 26/2, 2014 at 17:2
3
Solved
I am trying to test websocket without using socketjs library and also i don't want to add any stomp connection.
I am following the example from stackoverflow question:
WebSocket with Sockjs &...
Mcadoo asked 28/8, 2015 at 8:51
3
I have a spring boot application and I want to pass application.properties file in commandLine when I start-up.
i.e when I run mvn spring-boot:run --application.properties
I will have a default a...
Rawdan asked 4/8, 2015 at 21:4
7
Solved
Error to Pass JSON data from JSP to controller in ResponseBody.
07:13:53.919 DEBUG o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver - Resolving exception from handler [public com.chaitanya.ajax.Aja...
3
Solved
Spring has introduced a new annotation @PropertySources for all classes marked as @Configuration since 4.0. It takes different @PropertySource as argument.
@PropertySources({
@PropertySource("cla...
Devote asked 27/8, 2015 at 13:56
2
Solved
I am trying to understand the difference here. I see that a class has been annotated with both of them with same package example :
@Configuration
@EntityScan("some.known.persistence")
@ComponentSc...
Fausta asked 11/8, 2016 at 12:27
8
Solved
Spring version 4.2.0, Hibernate 4.1.4
Here is my Controller function:
@RequestMapping(value = "/mobile/getcomp", method = RequestMethod.GET)
@ResponseBody
public List<Company> listforCompani...
Feeling asked 2/10, 2015 at 11:11
4
Solved
I have a Spring 4 JUnit test which should verify only a particular part of my application.
@WebAppConfiguration
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:context-te...
Crisis asked 6/3, 2018 at 6:47
5
Solved
My maven spring project directory structure is shown below. I am using Spring-4 annotation based configuration. I configure the resources like below. I tried many ways that are suggested in many St...
Craggie asked 31/7, 2014 at 14:16
2
Solved
I've been investigating the use of JasperReports (6.0.0) with Spring MVC (4.1.3) to generate PDF reports. Spring is rife with "Spring specific" ways to integrate with JasperReports to generate PDFs...
Mccarter asked 17/12, 2014 at 18:35
6
Solved
I'm trying to change a basic application from using only Spring Security to using CAS, to enable SSO. But i'm getting a redirect loop somewhere, and i can't find out what is wrong. I have made two ...
Sells asked 27/8, 2015 at 14:51
2
I am defining conditions that I will check to dynamically load one of the two implementations of my service interface later.
@Component
public class IsPolicyEnabled implements Condition {
@Autow...
Tarbox asked 29/8, 2018 at 7:31
2
Spring version 4.2.0.RELEASE
Given following class, config member becomes null when cleanDocumentMirror method is executed by spring. My code is essentially similar to spring example. Its not just...
1
To make best use of the java8 stream and Spring4, I use the Stream API as follows on a JDBC resultSet that comes from Springs jsdbRestTemplate (code shortened and simplified):
public <T&g...
Lei asked 5/7, 2019 at 6:21
2
I cannot connect my spring boot application to IBM Informix database. I have added the informix data source in application.yml file.
I am using spring 4.
I get the following error.
no writeable ...
Druce asked 23/9, 2016 at 8:34
2
Solved
@RestController
class MyController {
@RequestMapping(...)
public void test(Container container) { ... }
}
Spring by default uses Dot-Notation to deserialize a nested @RequestParam:
class Conta...
Messina asked 5/2, 2015 at 16:46
5
I have followed very simple examples online to set up a cron job in Spring yet I keep getting this error in my Tomcat startup log each and every time:
2015-05-25 00:32:58 DEBUG ScheduledAnnotationB...
Exhibitive asked 25/5, 2015 at 5:30
1 Next >
© 2022 - 2024 — McMap. All rights reserved.