Questions tagged as 'spring-boot'

1
answer

Problems with springboot papeamento

I'm entering the SpringBoot world now and I've run into a problem that I think is easy to solve. Here is the structure of my project with class packages: br.com.springboot.api    SpringBootApplication br.com.springboot.controller...
asked by 11.04.2017 / 21:04
0
answers

How to implement Lombok in the Spring Boot project

I'm in trouble in this class, take a look @Service public class CadastroEstiloService { @Autowired private Estilos estilos; @Transactional public void salvar(Estilo estilo) { Optional<Estilo> estiloOptional = es...
asked by 13.02.2017 / 14:19
1
answer

how to create a bean that returns an entityManeger

I'm using springboot + ejb + cdi + wildfly10 I already created the datasource and I configured it, I was in the interface of the wildfly and the DS is connecting normal. Dao @Repository public interface PessoaDao extends JpaRepositor...
asked by 03.02.2017 / 20:31
1
answer

Unit Tests with Jhipster + Spring

I need to write some unit tests on a project that uses Jhispter which in turn uses Springboot . I am not able to inject a repository for example in the test class, I have been given an exception. I would like to know the best way to write the...
asked by 04.01.2017 / 18:48
0
answers

Whitelabel Error Page

Hello, I'm trying to make a spring boot application with mysql database access using JdbcTemplate and when I try to access the database via url I always get the error: Whitelabel Error Page This application has no explicit mapping for / err...
asked by 19.12.2016 / 16:00
1
answer

No bean named 'entityManagerFactory' available

I'm testing my Spring application with JUnit, however the error is occurring after putting the annotation @EnableJpaRepositories :    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'entityManag...
asked by 12.11.2016 / 20:06
1
answer

Edit method with Spring Boot problem

I created a project in Spring Boot with ThymeLeaf and I'm having problems in the implementation that makes updating of the bank records, the application is managing to save the records, it's getting validate the fields now only missing the regis...
asked by 30.11.2016 / 12:42
1
answer

cdi does not find daos (spring data + ejb + cdi)

The situation is as follows, I'm using the spring boot and the first thing I did was disable the cat tone and use wildfly (10) I used spring data to create Daos public interface AutoresDao extends JpaRepository<Autor, Long >{} Then...
asked by 27.01.2017 / 01:09
0
answers

Make SOAP request with Spring using certificate A1

I'm trying to make a request to send the NFe to the Sefaz SP server, but I'm always getting the certificate error not found. I created a Bean that returns the WebServiceTemplate, and this is my code: @Value("/pathTo/certificate.pfx") private S...
asked by 25.10.2016 / 14:13
1
answer

I can not inject MockMvc into integration test [Spring Boot]

@RunWith(SpringRunner.class) @SpringBootTest public class CustomerRestTest { private static final String BASE_URL = "http://localhost:8080"; @Autowired private MockMvc mockMvc; @Test public void indexTest() { MvcRes...
asked by 19.10.2016 / 16:47