Questions tagged as 'spring'

1
answer

Rendering map using API with spring boot

I'm developing a web application using spring boot and I'm trying to implement a map on the main application screen. The latitude and longitude are being picked up in the mobile application, so I'm doing a CartDTO to get submit the coordinates o...
asked by 13.07.2018 / 05:43
2
answers

thymeleaf - Spring boot - empty validation

I have this code that already works: <span class="label" th:classappend="${usuario.ativo ? 'label-success' : 'label-danger'}"> </span></td> But now I want the following: <span class="label" th:classappend="${usuar...
asked by 18.07.2018 / 19:17
1
answer

Java - Query Spring with current date

I have the following repository with the following method @Query("SELECT m FROM Money m WHERE m.data = CURRENT_DATE()") Money findTop1IfHasMoneyInCurrentDate(); My money class looks like this: @Entity @Table(name="MONEY_DATA", schema...
asked by 12.07.2018 / 18:03
1
answer

Spring Data JPA - Query via Specification - ManyToMany and Join with Multiple Entities

Hello, I've assembled the following class Specification: public class ItemVendedorSpecification implements Specification<ItemVendedor> { private static final long serialVersionUID = 1L; @Autowired CategoriaRepository catego...
asked by 22.05.2018 / 16:01
1
answer

How to generate a dynamic link within a condition in Thymeleaf?

I would like to know how I can generate a link within a condition in Thymeleaf. In my situation, if the condition is not met, I wanted to create a link that would lead to a new form, in which the user could register a Director. I've been able...
asked by 06.04.2018 / 21:05
1
answer

Can anyone explain what a Spring Framework bean is?

Can anyone simplify what is a bean? I've read the description on Spring's own website but it did not make much sense to me what it actually is, and what it actually does. I know I have to set it up in spring-context.xml, but I do not know exa...
asked by 12.04.2018 / 00:20
1
answer

Error executing JSF project by eclipse [closed]

Good night, I'm trying to run a project in eclipse, but tomcat is throwing me the following exception. Does anyone know what it can be? fev 25, 2018 8:57:57 PM org.apache.tomcat.util.digester.SetPropertiesRule begin ADVERTÊNCIA: [SetProperties...
asked by 26.02.2018 / 00:59
3
answers

Where for the files? [closed]

When we use Spring and Maven, where should we put the files? in the webapp folder or in the WebContent folder?     
asked by 21.02.2018 / 23:12
1
answer

sessionFactory null when trying to select select in the database

Good morning, I'm using Spring and JSF. I want to make a query to the database and return the data of a table, but in the method that I make the search, when calling the sessionFactory, it is coming null. I really could not find the problem. /...
asked by 26.02.2018 / 15:17
1
answer

Access resources spring image

I have the following scenario: Ihavethesrping-servlet.xmlfilewiththefollowingconfiguration: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://ww...
asked by 22.02.2018 / 15:11