Questions tagged as 'spring'

1
answer

Error Spring MVC Rest Full

Good evening, I'm trying to compile a code to run a simple rest in spring mvc, but I encountered the error "The request sent by the client was syntactically incorrect." Class Controller package br.com.aprendendorest.controllers; import...
asked by 07.03.2017 / 01:43
1
answer

Is it possible to inject a bean into a singleton with enum?

We have a system that uses Struts 1 and singletons based on enums. Now we have a dependency that was written using Spring 4.3.6.RELEASE which should only be used with other systems that also use Spring, so all declared Spring dependencies hav...
asked by 04.03.2017 / 03:23
2
answers

How to customize tomcat logging in spring boot?

I have a small problem with my application, my tomcat log is generating a large amount of data, and this is leaving the company application half slow, I wonder if there is any way to decrease the amount of log , in other words, if there is how t...
asked by 02.01.2017 / 11:49
1
answer

Validate registry data (spring-boot + angularjs)

Hello, I'm implementing a web project in spring boot + data + angularjs. Where the client makes rest requests to the server. On the Spring side I'm using repositories to develop the database search with CrudRepository. @RepositoryRestResour...
asked by 15.08.2016 / 13:39
1
answer

Json Custom Spring Receipt

Hello, guys. All right? Currently on my system I'm mapping objects to Spring's default form, but I'd like to do a custom mapping: Current driver @RequestMapping(value = "", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JS...
asked by 28.06.2016 / 00:38
1
answer

Failed to build Spring MVC application when setting bean AOP

I'm trying to set up AOP in spring.xml from my Spring MVC application, but I can not build it. I consulted the documentation, but following it did not succeed. The code is as follows: <beans xmlns="http://www.springframework.org/schem...
asked by 24.06.2016 / 15:55
1
answer

Error in this loop of repetition. It is only getting the first value from the database

Error in this loopback. It is only getting the first value from the database. You are only doing the query in the first field and you are ignoring the others. @Controller // @RequestMapping("/login") public class LoginController extends HttpSe...
asked by 22.07.2016 / 04:42
2
answers

REST in Java Spring project does not work

I created a project in Spring Tool Suite to test a web system and REST, in the same project, worked to create a static html page and load in the browser, but I created a java class for GET request, but whenever I call the error code 404 and did...
asked by 27.03.2016 / 04:34
2
answers

Attribute of type HashMap appears as Object

I'm using the Spring framework and the repositories, and in one of the interfaces of one of these repositories I have, for example, a method like this: @Query("select extract(month from u.atributo1), coalesce(sum(u.atributo2), 0) from #{#entit...
asked by 21.10.2015 / 15:10
1
answer

BootsFaces Error javax.faces.FacesException: Expression error

Follow the error javax.faces.FacesException: Erro de expressão: Objeto denominado: net.bootsfaces.component.Button não encontrado. Pom <dependency> <groupId>net.bootsfaces</groupId> <artifactId...
asked by 01.10.2015 / 22:07