Questions tagged as 'spring'

1
answer

Details with @Autowired and Down object

There is a conflict of concepts with me. I have here a service called: AtividadeService There are some lines that call my attention: import com.dendetech.entity.Atividade; Why import the entity? If it only works for Atividad...
asked by 10.09.2015 / 16:00
1
answer

JPanel disappearing while giving a get in it

I'm building a layer-based application using the Spring Framework, I'm newbie and well doing the wrong thing. My problem is as follows, as you can see in the image below I have PrincipalFrame and PessoaFrame > PessoaPanel...
asked by 11.09.2015 / 01:49
1
answer

Problem in scheduling for email notifications Spring and JavaMailSender

Good morning, I'm using spring with Scheduled, before using the quartz but as I uploaded the spring version I decided to abandon the quartz since the first option was enough to meet my need. In short, I have a task that sends emails, this...
asked by 02.01.2019 / 14:09
1
answer

Auxiliary Table with Composite PK

I have a provider table: @Entity(name = "tbl_fornecedor") public class Fornecedor extends PessoaJuridica implements Serializable, Desativar { private static final long serialVersionUID = 1L; @Id private String cnpj; /*Relaci...
asked by 13.12.2018 / 16:14
2
answers

Multithread and Data Competition + Spring

I am rewriting software that serves as a bridge between two services. Communication is done via sockets. The environment it has high data competition, especially a list with active sockets. The software has some problems because this competition...
asked by 28.11.2018 / 11:58
1
answer

HTTP Status 400 - Bad Request - Spring MVC

When trying to call a Controller method it is returning the following error:    HTTP Status 400 - Bad Request Type Status Report       Description The server can not process the request due   something that is perceived to be a client error...
asked by 30.10.2018 / 20:43
1
answer

JSON for POJO returning Null

I am making a request from the site API swapi and whenever I do the conversion from JSON to POJO, I get the NULL return RestTemplate restTemplate = new RestTemplate(); String fooResourceUrl = "https://swapi.co/api/planets/?format=json"; Plan...
asked by 25.12.2018 / 03:04
1
answer

How do I configure the timeout of a function call from an EJB?

At the end of a service my project has a function that takes an EJB from another project that is installed on the same server, and access one of its functions. My function that takes the EJB and accesses the function: [...] ServiceImplRemo...
asked by 26.09.2018 / 16:10
1
answer

Get value from an application.properties property - Spring Boot

I am a beginner in Spring Boot. I have a project in Spring Boot which has a application.properties and the inside has a property with a value ( spring.datasource.username=user ) and I want to get this value in a class java mine, I w...
asked by 04.10.2018 / 05:58
1
answer

How to handle maximum upload file size exceeded

I have an application, which uploads a file (spreadsheets), but after a recent test pointed this error: Caused by: java.io.IOException: UT000054: The maximum size 1048576 for an individual file in a multipart request was exceeded I have alr...
asked by 10.12.2018 / 20:39