Questions tagged as 'spring-mvc'

1
answer

Save entity rest using @oneToMany

I have the following entities generated by jHipster using java with oneToMany relationship: Product @Entity @Table(name = "produto") public class Produto implements Serializable { private static final long serialVersionUID = 1L; @Id @Ge...
asked by 16.06.2016 / 16:20
1
answer

Validation error with Spring MVC in nested Entity

And, well, how are you? I started studying Spring recently for AlgaWorks courses and the progress of the course I came across a problem in a project that I am developing. I have a School entity that has the following characteristics: @Id @G...
asked by 23.01.2017 / 14:30
1
answer

No mapping found for HTTP request with URI [/ Milicia] in DispatcherServlet with name 'dispatcher'

You can not find the uris that I type, it always gives the same error, I have already re-created it and still the error persists. Follow the relevant classes and files. relevant part of pom.xml <build> <finalName>Mili...
asked by 19.10.2016 / 20:33
1
answer

Spring Boot configuration error: org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.jpaVendorAdapter

Hello I'm getting the following StackTrace below when I start Tomcat with my Web project after making the settings with Spring Boot. After I created the following classes below, I'm having this error. ERROR GRAVE: Exception sending con...
asked by 19.05.2016 / 03:32
2
answers

Unsatisfied dependencies - SpringFramewok

Hello I'm studying Spring and I'm having the following problem to upload the project to tomcat8. My dependencies are not being injected, but I'm not able to identify what's missing. mvc-dispatcher-servlet.xml                       ...
asked by 23.04.2016 / 00:13
1
answer

Hibernate: Error trying to persist field that maps foreign key

In my current Spring project, I'm facing the following issues when trying to save an entity that references another (with foreign key), with this: @Entity @Table(name="pagina") public class Pagina { @Id @Column(name = "id") @Gener...
asked by 06.08.2014 / 18:35
2
answers

Static content of jsp does not appear

I'm using netbeans 7.3.1, apparently it's working ok. The pages are opening normally, but when I try to access the css, jpg, ... content inside the resources folder, no content appears. In the dispatcher-servlet.xml file I put the following l...
asked by 21.02.2014 / 22:30
1
answer

Change Active Spring Profiles at run time

I usually use this code snippet to set the profile of the application <servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-p...
asked by 25.03.2014 / 18:12
1
answer

When I use the @Transactional annotation, the Autowired variables are null

When I use the annotation @Transactional in a method annotated with @RequestMapping all variables annotated with @Autowired are getting null . Has anyone ever gone through this? Could you give me some direction to t...
asked by 10.08.2018 / 01:57
2
answers

API method fetches information but does not appear on the front end

I have a method of my API that searches the database @RequestMapping(method = RequestMethod.GET, value = "/entidadesUsuarioPermissao/{id}", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<Collection<PermissoesPagin...
asked by 24.10.2017 / 13:29