spring-mvc Questions
3
I got a working spring boot rest service. When the path is wrong it doesn't return anything. No response At all. At the same time it doesn't throw error either. Ideally I expected a 404 not found e...
Cerelia asked 20/4, 2016 at 3:23
1
I am new to Java and Spring, and I am building a sytem using Spring JPA. I am now working on my service and controller classes, and I would like to create a dynamic query. I have created a form, in...
Ripe asked 25/9, 2017 at 17:9
2
I need to do some specific action after the successful transaction commit, which basically includes my analytical operations about the data;
I tried using the following code snippet
public class ...
Gamp asked 20/9, 2015 at 9:20
1
Solved
How to return Page content in Spring Boot Unit test service layer? How to mock this data with some values and later on test it?
Service that needs to be tested:
@Service
@RequiredArgsConstructor
@T...
Endothecium asked 30/5, 2022 at 18:11
2
we are trying to do an intergration test our interceptors in our spring boot application using spring boot version 1.4.0, but not sure how; here is our application setting
@Configuration
@EnableAu...
Stemma asked 2/10, 2017 at 18:9
3
Solved
I have a basic SpringBoot 2.0.3.RELEASE app using Spring Initializer, JPA, embedded Tomcat, Thymeleaf template engine and package as an executable JAR file with these dependencies in the pom.xml.
...
Disused asked 16/8, 2018 at 12:23
10
Solved
How can I configure and use two data sources?
For example, here is what I have for the first data source:
application.properties
#first db
spring.datasource.url = [url]
spring.datasource.username =...
Lilywhite asked 19/5, 2015 at 23:3
3
Solved
I am adding rate-limiting to a restful webservice using Spring MVC 4.1.
I created a @RateLimited annotation that I can apply to controller methods. A Spring AOP aspect intercepts calls to these me...
Tadzhik asked 10/3, 2015 at 22:9
1
Solved
Springboot 2.5.13, swagger2:
implementation "io.springfox:springfox-boot-starter:3.0.0"
implementation "io.springfox:springfox-swagger-ui:3.0.0"
Runtime error:
Could not resolve...
Aliunde asked 19/5, 2022 at 9:0
7
Solved
I have a tomcat application server that is behind a nginx.
SSL terminates on the nginx.
The Spring web-mvc application that is deployed on the tomcat should set the secure flag on the JSESSIONID.
I...
Breakfast asked 31/8, 2016 at 14:54
5
Solved
I have just learnt Spring Framework and have been using Spring 2.5 for this learning. I have created three beans with these classes
Food.java
package com.spring.danipetrick;
public interface Foo...
Turgid asked 23/11, 2013 at 6:7
3
Solved
What is the best way to server sitemap.xml and robots.txt with Spring MVC? I want server these files through Controller in cleanest way.
Cubiform asked 5/9, 2012 at 20:26
4
My Spring Boot 1.4 application has this POST HTTP Method to create a resource. As a requirement, it should spit a location header specifying the URL of the newly created resource: RFC 9110 HTTP Sem...
Cudgel asked 2/3, 2017 at 3:11
7
Solved
I am trying to create a new Page using a list of objects retrieved from the database. First I get all the elements from the DB, convert it to a Stream and then use lambda to filter the results. The...
Pierre asked 3/11, 2014 at 18:38
6
Solved
I have a Users Entity:
public class SpringUsers implements Serializable {
private String password;
// other fields omitted
@Basic
@Column(name = "password")
public String getPassword() {
ret...
Deglutinate asked 2/9, 2016 at 14:19
8
Solved
I have a Spring 3.2 MVC application and am using the Spring MVC test framework to test GET and POST requests on the actions of my controllers. I am using Mockito to mock the Services but am finding...
Howlond asked 23/4, 2013 at 13:25
8
Solved
I'm researching this for a project and I'm wondering what other people are doing to prevent stale CSS and JavaScript files from being served with each new release. I don't want to append a timestam...
Philippa asked 10/12, 2008 at 15:53
6
Solved
I am new to Spring/Maven, and am following this tutorial:
Serving Web Content with Spring MVC.
Everytime I run mvn spring-boot:run, I get this error:
Failed to execute goal org.springframework...
Luzern asked 1/4, 2017 at 13:30
5
Solved
I'm new with Spring. I finally succeeded to build my application with no error but when i'm looking to the output i have a lot of information that i don't understand.
First this error each tables...
Guileless asked 13/11, 2016 at 11:35
0
I have a requirement where in all controllers I need to understand device type (desktop, mobile, tablet) and based on that I may need to send request to a different view. Right now, I have littered...
Babette asked 4/5, 2022 at 5:41
7
Solved
We are currently migrating a legacy application to Jetty. And I have somehow an exception regarding a broken pipe.
Java 6
Jetty 8.1.8
Spring 3.2.0
I am trying to migrate a Glassfish web applica...
Dubitation asked 3/4, 2013 at 10:42
4
Solved
I have this listener in the context of Spring:
package listeners;
import java.util.Date;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotati...
Maybe asked 10/12, 2016 at 14:13
3
I'm using Spring-Data/Rest (http://docs.spring.io/spring-data/rest/docs/current/reference/html/) with Spring Boot and basic Spring Security.
I have the following entities.
Items
-->ID
User
...
Telltale asked 13/11, 2015 at 22:35
2
The G1GC old generation committed heap goes up over time (about 5 to 6 days on production) but the old generation used heap does not. The Eden and survivor heap is forced to decrease to the minimum...
Terbecki asked 11/5, 2020 at 12:51
3
Solved
I want my Spring MVC application to redirect to a dynamic URL (submitted by the user). So if I have code like this,
@RequestMapping("/redirectToSite")
protected ModelAndView redirect(
@RequestPar...
Providential asked 16/2, 2012 at 13:17
© 2022 - 2024 — McMap. All rights reserved.