spring-mvc Questions
5
Solved
I have a method that is annotated in the following way:
/**
* Provide a list of all accounts.
*/
// TODO 02: Complete this method. Add annotations to respond
// to GET /accounts and return a List&...
Jourdain asked 21/2, 2015 at 13:28
5
Solved
I build a Spring MVC application with thymeleaf views and ran into the following problem. I have a page which should process a form and create a new Entity to persist in the database. In my control...
Domett asked 25/10, 2018 at 5:57
22
Solved
I am trying to set a Spring Boot applications context root programmatically. The reason for the context root is we want the app to be accessed from localhost:port/{app_name} and have all the contro...
Isoelectronic asked 5/12, 2013 at 16:33
2
Solved
I'm implementing a simple RESTful service using Spring Boot, with the interface defined by a .NET (I think) client. Their parameter names are snake_case, rather than camelCase, which obviously mean...
Harrod asked 22/1, 2016 at 11:3
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
13
Solved
I have a single page Angular app with Spring Boot. It looks like the following:
src
main
java
controller
HomeController
CustomerController
OtherController
webapp
js/angular-files.js
index...
Dwelling asked 11/5, 2017 at 11:12
4
Solved
Is it possible to specify dynamically (at runtime) the indexName for each @Document, for example, via a configuration file? Or is it possible to make @Document Spring environment (dev, prod) depend...
Scientific asked 11/10, 2015 at 20:15
7
I am trying to update record in MySql Db. while updating it threw following exception
org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions
at org.hibe...
Whitehorse asked 16/4, 2014 at 11:20
5
I am very new to java spring security, and was following the Spring.io tutorial guide.
As part of this, I edited the WebSecurityConfig class as required:
@Configuration
@EnableWebSecurity
public c...
Teeter asked 15/4, 2018 at 23:32
2
Solved
I am facing Error with hibernate 4.3.5.Final and spring mvc 4.0.4.RELEASE with maven. There are some jar which will be take from maven reposterty and some jar includes jar directly. i am not shore ...
Precipitancy asked 23/3, 2015 at 9:30
9
Solved
Using spring-mvc annotations:
How can I define an @FeignClient that can POST form-url-encoded?
Verdellverderer asked 4/3, 2016 at 18:8
9
We have rest api application. We use redis for API response caching and internal method caching. If redis connection then it is making our API down. We want to bypass the redis caching if that redi...
Chemarin asked 12/3, 2015 at 7:9
10
Solved
I've been searching how to manage a REST API versions using Spring 3.2.x, but I haven't find anything that is easy to maintain. I'll explain first the problem I have, and then a solution... but I d...
Aggregate asked 25/11, 2013 at 16:37
3
Solved
My first question here and i'll try to be specific. I am quite new to Spring and i'm trying to create quite simple reservation system (but this actually doesn't matter). What matters is that I am c...
Lori asked 12/12, 2011 at 17:32
23
Solved
I've started my project by creating entities, services and JUnit tests for services using Spring and Hibernate. All of this works great.
Then I've added spring-mvc to make this web application usin...
Brunobruns asked 2/12, 2013 at 16:33
5
Solved
I did a simple web socket communication with spring 4,STOMP and sock.js, following this https://github.com/rstoyanchev/spring-websocket-portfolio and this
http://assets.spring.io/wp/WebSocketBlogPo...
Marable asked 14/2, 2014 at 14:13
13
I've created a simple Spring Boot Web Application in intelliJ. I've placed a simple .jsp file in the /src/main/resources/templates/ folder which contains some basic HTML.
I'm trying to return this...
Holcman asked 9/9, 2016 at 9:46
7
Solved
I am new to Spring and JPA, wasted 5 days and no result with searching internet. I want to save object to SQL SERVER, connection is correct but when I write .flush() I get the exception
nested e...
Dasheen asked 9/3, 2015 at 19:22
16
Solved
I'm trying to add a jsp page in my Spring Boot service. My problem is that every time I try to go to that page I have this:
Whitelabel Error Page
This application has no explicit mapping for ...
Sirup asked 21/4, 2015 at 20:53
4
Solved
When using JdbcTemplate, do I need to explicitly configure transactions?
My code layout looks like the following:
I will have a UserDao that will be injected into my UserService, and then my Cont...
Shipman asked 28/9, 2012 at 14:10
3
Solved
I'm trying to set up a Spring SseEmitter to send a sequence of updates of the status of a running job. It seems to be working but:
Whenever I call emitter.complete() in in my Java server code, the...
Shelah asked 21/3, 2019 at 18:55
8
Solved
I am using jQuery's $.getJSON() to make asynchronous calls to my simple Spring MVC backend. Most of the Spring controller methods look like this:
@RequestMapping(value = "/someURL", metho...
Slavin asked 11/10, 2012 at 10:52
13
I' ve a Spring MVC bean and I would like to return turkish character by setting encoding UTF-8. but although my string is "şŞğĞİıçÇöÖüÜ" it returns as "??????çÇöÖüÜ". and also when I look at the re...
Proper asked 13/4, 2011 at 12:38
4
Solved
I do user and invitation validation using the Optional facility
@DeleteMapping("/friends/{username}")
public
HttpEntity<Boolean> removeFriend(
@ApiParam(value = "The user's name", required ...
Hysterical asked 15/9, 2017 at 11:39
13
I am developing an application in Spring, using Tomcat, Mysql5, Java8... The problem is that I cannot deploy it, due to "required bean 'entityManagerFactory' not found" problem. I have developed th...
Marmion asked 15/12, 2016 at 18:8
© 2022 - 2024 — McMap. All rights reserved.