Questions tagged as 'spring'

1
answer

Using Sublime Text with Eclipse

I'm in a new project that uses the Java WEB + Spring in the backend and I just do the front end. I need to keep Eclipse open to run the server. However, I use Sublime Text 2 in html editing because I find it very agile with emmet extensio...
asked by 04.10.2017 / 21:47
1
answer

NullPointerException on method return

I am making a method to fetch the logged-in user from the database. I'm having a NullPointerException in return of this method @RequestMapping(value = "/usuarioLogado", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestM...
asked by 18.10.2017 / 16:58
2
answers

Json created incomplete

Next staff was experiencing a loop problem in my project when creating the Json application looping. I was able to solve the loop problem with the annotation @JsonManagedReference, @JsonBackReference. But an Incomplete Json is being created:...
asked by 26.09.2017 / 23:56
1
answer

Block navigation until validate token login, using Spring, AngularJS and JavaScript

I have a question .. I've implemented a login validation using JWT. It works fine, it generates the token within the requests. However, in the login page, if in the URL I put the next page the system lets go. Login COntroller @RestControlle...
asked by 18.09.2017 / 20:20
0
answers

liquibase: diff always generates indexes

I am using spring-boot with the liquibase-maven-plugin plugin to generate database changes according to my classes, but the "mvn compile liquibase: diff" command always generates removals and inclusions of indexes and foreign keys even that the...
asked by 01.09.2017 / 13:27
0
answers

Spring security set the Token in the Headers

I configured Cross to accept the request in AngularJS, but the answer comes without the token. How do I add the token to the response? Spring security: @Override protected void configure(HttpSecurity http) throws Exception { http.header...
asked by 15.08.2017 / 13:52
0
answers

AngularJs query data Sending object to the filter

I have a WS written in Spring that takes an object as a filter and returns a list of data. in my Java Service: @ResponseBody @RequestMapping(value="/{filtro}",method=RequestMethod.GET) public Datatable listar(@RequestBody PessoaFiltro filtr...
asked by 11.08.2017 / 20:10
1
answer

Widfly 9.0.2 is not initializing in debug mode

In the controller of my application, I have a method with a POST request, before it was a void method, with no return, but I changed it so that it would already return the generated records, after that change, the server of my application, the w...
asked by 25.07.2017 / 16:57
1
answer

Read Javascript on all ForEach items

Well, I have a foreach that loads several inputs, and I want my javascript code to read on all the inputs generated by foreach, can anyone give me a hint how to do it? Example <c:forEach items="${listaServico}" var="lista" <input id=...
asked by 26.07.2017 / 03:33
0
answers

Connect to the database dynamically by the repository class of the Spring project

I need to connect to the database dynamically, where the database connection data can be passed by parameter, below is a sketch of how I need to connect and execute the query. This code sketch below does not work when I run on my server....
asked by 02.08.2017 / 23:03