Questions tagged as 'spring'

1
answer

JSON parse error

I'm developing a web application (Spring) and need to save a date in the database. I have done a Ajax function to save the value, however I get the following error:    JSON parse error: Can not deserialize value of type   java.time.Loc...
asked by 07.02.2018 / 19:30
1
answer

Error listing data in DataTable

Good morning, I'm trying to make a simple listing of a table in a datafile of primefaces, but they are not listing anything. Follow the code so far. .xhtml: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3....
asked by 15.02.2018 / 12:50
0
answers

Tests with MockMvc

Someone knows how to pass a "null" value in the content method of a put request. Follow the example: @Autowired private MockMvc mvc; @Autowired private ObjectMapper objectMapper; @Test public void testUpdateDtoNull() throws Exception {...
asked by 07.02.2018 / 16:00
0
answers

SpringBoot finds no dependency on BOOT-INF / lib folder

When I run APP springBoot using IDE or mvn spring-boot:run it works fine, but when I execute the command below it does not work: java -jar myapp.jar Show an error like this: Caused by: java.lang.IllegalArgumentException: File [/ho...
asked by 24.01.2018 / 21:04
1
answer

Variable type for persistence in MYSQL Longtext

Good morning, In my database MySQL , I have a column of type longText. My question is how to declare the type and annotation of this variable in the java class. In brief research I found the following information: @Blob private String...
asked by 18.01.2018 / 14:14
0
answers

Spring Validator Interface compare with a given value

I have a class Savings that contains the info input by the user in a form: public class Savings{ private int numberOfTimes; private double value; ... } and a controller that calls the validator () method from the Spring Validator...
asked by 15.01.2018 / 19:25
1
answer

Spring security - Some doubts

Spring security is implemented in the application. You are logging in correctly, logout as well. In the pages below you only enter if you have logged in with the role ROLE_ADMINISTRATOR . @Override protected void configure(HttpSecurity ht...
asked by 10.01.2018 / 21:17
0
answers

JSON is not returning with accents

I have a question that I do not know what to do with it, but I have tried several ways to put the annotation of Spring Sun Procudes UFT-8 no solution worked. @Transactional(propagation=Propagation.REQUIRES_NEW) public ResponseEntity<Usuario...
asked by 18.01.2018 / 19:08
1
answer

Error Request Resource is not avaliable

I have this class in JAVA package br.com.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.sp...
asked by 11.01.2018 / 15:05
0
answers

post with javascript

In my HTML I get this STRING 'Destro' and step into that JS sendPost () <tr> <td>Destros</td> <td><span class="label label-success">${analitico.vitoriasDestro}</span></td> <td><spa...
asked by 26.12.2017 / 23:22