Questions tagged as 'spring'

1
answer

Thymeleaf can not find resources

I am creating a project with Springboot and Thymeleaf . I have set up the whole project, found the template and the pages, so my template can not find the css and js Html <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.m...
asked by 19.12.2016 / 00:22
1
answer

org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 24; Attribute "singleton" must be declared for element type "bean"

I am updating an (old) project for newer libraries, like Spring (from version 3.2.4.FINAL to version 4.3.11.FINAL). One of the errors that appears in Tomcat 6 is: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Config...
asked by 17.11.2016 / 14:23
2
answers

Setting pointcut AOP Spring

I have the setting below pointcut in Spring 3 <aop:config> <aop:pointcut id="baseDaoPointcut" expression="execution(* br.com.infraestrutura.domain.BaseDao+.*(..))" /> <aop:pointcut id="baseBusinessPointcut"...
asked by 26.01.2017 / 11:45
2
answers

JdbcTemplate - How to commit and rollback?

I'm working with a Desktop application and I use spring to hold my inserts in the database. The object I'm using is the JdbcTemplate, which has the encapsulated datasource inside it. I would like to know how to start new transactions with Jdb...
asked by 28.01.2016 / 20:17
1
answer

Error 403 forbidden when consuming webservice CEP

I'm trying to consume a webservice from ceps but it always returns me 403 and it's public. WebService Test Running: link My Controller @Controller @RequestMapping("/busca-cep") public class BuscaCEPController { private stat...
asked by 16.11.2015 / 17:09
1
answer

Spring Bean sessionFactory with NullPointerException error

Good morning. I'm trying to make a setting in the spring-jpa.xml file to support a multitenancy architecture by separating each client by Schema. I use a dataSource that has been configured in JBoss Wildfly to connect to the database where th...
asked by 06.02.2015 / 12:46
1
answer

Relationship between Resources Rest with Spring boot

I'm learning Spring Boot Rest and with a question I can not solve on my own, could you help me? I created the following mapping between the Launch and Person entities: Person Entity: @Entity public class Pessoa { ... @J...
asked by 17.08.2018 / 03:48
1
answer

Java Spring - Repository returns Null

This is my ApiKey class: @Entity @Table(name="API_KEYS", schema="DEMO_PIMS") @JsonIgnoreProperties(allowGetters=true) public class ApiKey implements Serializable{ private static final long serialVersionUID = 1L; @Id @Column(n...
asked by 27.06.2018 / 16:16
2
answers

Make a query with criteria hibernate with Spring

Good evening, friends, I have a question. I have a Class called Proposal and another Call Client. In the client there is the CPF field and a Proposal has a Client. I need to search for proposta.cliente.cpf , but I can not, could y...
asked by 11.05.2018 / 04:18
1
answer

Store digital certificate on Server

I'm creating an application that will work and manage digital certificate clients. The idea is to import the client's certificate and I leave available subscription and transmission methods to for example, for example. But for those who under...
asked by 21.03.2018 / 18:38