Questions tagged as 'spring'

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

When you do not find a file, you must go to the next step (Spring Batch)

I'm using Spring Batch. In my Job, I have several step's, and they all read from a .csv file. The problem is that there will be times when the .csv file will not be in the read-only location. When that happens, an error pops up and Job sto...
asked by 22.02.2017 / 14:50
2
answers

404 in css file after spring mapping

Good night everyone! I can not access the css of my application in spring, even after mapping resouce, follows codes: @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/reso...
asked by 30.01.2017 / 00:57
1
answer

SpringBatch SkipPolicy, what's the use?

I would like to know what the SkipPolicy is that is set in StepBuilderFactory. If possible I would like some documentation explaining.     
asked by 01.02.2017 / 19:42
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
0
answers

Upload Image java to javascript

I'm developing a rest web service with Spring in Java that provides images to the front-end , which calls Java with an ajax event. On the server side I'm using Image from java. import java.awt.Image; I create an image based on another...
asked by 27.12.2016 / 14:37
1
answer

Login Module with Spring Security

Well, I'm studying Spring Framework and all the other frameworks that it makes available, and I would love to implement a login module. I'm currently using Spring without any use of XML except pom.xml , and many of the sites I access...
asked by 09.12.2016 / 23:07
0
answers

Chat in Spring JSF and Primefaces

I need to develop a chat for our site. Developed in: JSF 2.2 Srping 4.2 Hibernate 5 Primefaces 5.3 Css bootstrap I have already downloaded a github project, it works cool, but it's very poor, I wanted one with a database, interest...
asked by 09.12.2016 / 13:31
1
answer

Spring encoding problem

Good afternoon, folks, I'm working on a project with Spring MVC and Spring Security. But the same, is presenting problem in the encoding of the characters, when I do deploy on an external server, ie, I run out of eclipse, someone already step...
asked by 14.11.2016 / 17:51
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