spring-mvc Questions
11
I am trying to configure CORS globally via WebMvcConfigurerAdapter shown below. To test I am hitting my API endpoint via a small node app I created to emulate an external service. When I try this a...
Afterwards asked 23/6, 2016 at 1:38
12
Solved
I have bi-directional relationship like this...
Person.java
public class Person{
@JsonIgnore
@OneToMany(targetEntity=PersonOrganization.class, cascade=CascadeType.ALL,
fetch=FetchType.EAGER,...
Admeasure asked 27/1, 2012 at 18:7
9
Not sure if this is a bug with Spring 5.0.3 or a new feature to fix things on my end.
After the upgrade, I am getting this error. Interestingly this error is only on my local machine. Same code on...
Cailly asked 26/1, 2018 at 0:12
10
Solved
I'm developing application using spring data jpa,hibernate,mysql,tomcat7,maven and it's create error.I'm trying to figure it out but i failed.
error are Cannot resolve reference to bean 'entityMa...
Timtima asked 1/7, 2014 at 23:16
2
I have an application where occasionally Spring throws the error:
org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'action' is not present
Naturally ...
Bistre asked 1/7, 2014 at 12:20
27
Solved
For several days I have been trying to create a Spring CRUD application. I'm confused.
I can't solve these errors.
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating ...
Runnerup asked 6/1, 2017 at 17:57
5
Solved
I'm having difficulty figuring out how to assert with jsonPath in a JSON document response in spring mvc. Perhaps there's a better way of accomplishing this than using jsonPath for this particular ...
Ronn asked 2/9, 2014 at 1:18
4
Solved
I keep trying variations of this query and can't seem to make this happen. I've also referenced this post: Path Expected for Join! Nhibernate Error and can't seem to apply the same logic to my quer...
Vaseline asked 4/5, 2012 at 12:37
4
Solved
I want to provide one comprehensive REST API with support for both JSON and XML.
The domain model is of complex type and we note that to produce friendly JSON and XML on the same model using Mappi...
Scriptwriter asked 20/8, 2013 at 12: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
10
Solved
I'm newbie in Spring Data.
I keep getting the error: org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'text/plain;charset=UTF-8' not supported
I've tried to change consumes ...
Merous asked 26/7, 2014 at 15:12
9
Solved
I am doing spring + hibernate application. When I run the application on tomcat server I am getting some exceptions.
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'ap...
Heidyheifer asked 17/5, 2014 at 18:5
3
I have a Spring Webflux application where I am trying to load a dependency from an old module (old module is on Spring WebMVC framework).
When the application is launched, this error is thrown - ...
Zerline asked 13/8, 2019 at 6:57
3
Solved
We generate lots of JSON objects using Spring and its built-in MappingJacksonHttpMessageConverter . All great.
But now I want to html escape String values of my (any kind of) objects in order to p...
Squalid asked 15/2, 2011 at 16:11
7
Solved
When I tried to create relationship using spring code,
I am getting Transaction manager error. I am using Mysql and Neo4j database in my project. I tries different solution but not able to resolve....
Wilmington asked 19/2, 2018 at 7:38
34
Solved
This is the exception:
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: mvc3.model.Topic.comments, no session or session was closed
Here is the model:
...
Rostellum asked 31/7, 2012 at 18:18
4
My main objective is to store the client-id of the each user, once they login with google. This github repo contains most of what I needed till now. The two main files of concern are OAuthSecurityC...
Kansas asked 3/2, 2018 at 14:25
2
Solved
I'm trying to display an uploaded picture (which is now a byte array) on a jsp page. Now, the byte[] column exists in the database and has to be converted to an image.
This is what I've been tryin...
Snowclad asked 1/1, 2016 at 21:27
18
Solved
When i try to navigate to an endpoint i get the following error
Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor]; nested exception is com.fasterxm...
Betti asked 4/10, 2018 at 23:49
7
Solved
Spring supports two different validation methods: Spring validation and JSR-303 bean validation. Both can be used by defining a Spring validator that delegates to other delegators including the bea...
Williwaw asked 23/3, 2016 at 8:41
8
Solved
I have spring web application with Spring security configured using java config approach. I want to exclude some URL patterns from authentication(eg: static resources etc..). I have done this earli...
Stylet asked 31/3, 2014 at 16:35
18
Solved
I am getting the following problem after porting web.xml to java config
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63342' is therefore n...
Sevenfold asked 29/1, 2016 at 18:28
13
I'm working with a table in a database and that table don't have a primary key or a proper column whith a unique value who can act as a primary key, I don't have permissions to alter that table.
W...
Laniferous asked 15/9, 2014 at 14:59
5
Solved
I am using Thymeleaf Template Engine with Spring Web MVC and I am got stuck while creating url's with the help of current url. Is there any way to get current inside Thymeleaf HTML file? eg: Suppos...
Hinton asked 5/5, 2014 at 6:25
2
Solved
In Spring Boot web application I have the following security configuration:
@Override
public void configure(HttpSecurity http) throws Exception {
// @formatter:off
http
.headers().frameOptions(...
Isocrates asked 22/4, 2016 at 20:26
© 2022 - 2024 — McMap. All rights reserved.