Questions tagged as 'spring'

1
answer

How to create a variable in thymeleaf and pass it to spring

Well, my problem is that I do not know how to declare a variable in thymeleaf and that it recognizes me spring with @Pathvariable. I leave the methods of the html and the controller. Thanks This is the controller: @GetMapping(value = "/...
asked by 29.03.2018 / 23:15
1
answer

JPA @ManyToMany how to bring related objects

I'm mapping two objects: Professor and Vehicles, it's a n to n relationship so I'm using a relationship table called "rel_prof_vehicle". The problem comes when it comes to obtaining any object Professor or Vehicles, it brings me the whole object...
asked by 27.03.2018 / 22:08
1
answer

JPA @ManyToMany with additional column

I am trying to connect two tables with a many to many relationship but, in the third table that relates them, apart from the id of each of the other two tables, there is a third field and I do not know how to indicate this third field. I have...
asked by 30.07.2018 / 00:09
0
answers

Get rowIndex in a grid - Ext JS

I am trying to get the rowIndex within a column of a grid to get a particular data from the Store. The column is Conciliadas . The problem is that when using the renderer function, the rowIndex does not identify it or...
asked by 11.11.2016 / 19:39
3
answers

How to CONSUME a REST web service with Spring (Java)?

Good morning. My question is, how can I consume a REST web service from my application that is made with spring framework ?. The spring documentation tells me that I can do it with restTemplate. For example to obtain data: restTemplate.getForO...
asked by 27.07.2016 / 16:05
2
answers

Grant or restrict permissions to routes through roles in Spring Security in Spring Boot

Good morning everyone, I have an application in Spring Boot in which I implemented Spring Security. I have managed to log in and have access to all the routes once logged in, and also restriction to all routes when the session has not been start...
asked by 04.11.2018 / 20:06
4
answers

Problem with Java / Linux dates

I have a problem with dates, a Spring application deployed on Tomcat. When I retrieve the data from the forms, they are stored correctly in the database in Windows. When I pass the application to Linux, the same date is stored but one day less....
asked by 14.10.2016 / 18:53
1
answer

How to get the value of the attributes of a form with spring?

I have a form, in which I want to retrieve the values entered in the fields, I have the following code in the controller @RequestMapping(value= "/views/consulta", method = RequestMethod.GET) public String redireccionaConsultaPage(Locale locale...
asked by 30.05.2018 / 06:17
2
answers

Change the context (URL Root) of a web project in eclipse

I'm with a project, that when you run it in the eclipse, you leave it listening in http://localhost:8080/nombre_del_proyecto/ . What I want is that now run in http://localhost:8080/otro_nombre/ . Where do you change the name of th...
asked by 31.08.2017 / 18:22
2
answers

as I integrate 2 spring modules

I want to integrate 2 projects that are totally separate but that work in cooperation, and I want to join them in a single project, use a MAVEN multimodule    What should I notice? the dependencies? the bookstores? main class of the firs...
asked by 05.05.2017 / 18:12