Questions tagged as 'spring'

1
answer

Spring and EJB have the same functionalities?

Does Spring and EJB have the same functionality? If not, can you use both in the same application?     
asked by 06.09.2016 / 13:47
1
answer

Check if user is logging in from within the company

I will not go into details of the technology used, because the doubt is more in the best way to solve this situation. I have the following scenario: Multi-branch company; These affiliates have their collaborators; The system with the Ang...
asked by 31.10.2017 / 19:32
1
answer

java.lang.IllegalStateException when declaring aspect with Spring

I'm trying to declare the following: @Aspect @Component public class UpperCaseAdvice { @Before("@target(annotations.Model)") public void toUpperCase(JoinPoint joinPoint){ //faz alguma coisa } } I'm using the spring-...
asked by 24.11.2015 / 00:05
1
answer

How to expose a method as a bean to use the spring dependency injection

I need to expose a method as a bean in Spring% with% to use it in the injection of an attribute, which has more than one implementation. What I did was the following: I added the method that will create my object using the ApplicationCon...
asked by 28.05.2018 / 17:12
2
answers

GET request is not answered correctly by the backend

The project is an Angular 6 front end, which connects to a Java back-end for communication with a SQL Server BD. The server that receives the file .war , containing the back as the front, is Tomcat 8.5.32. The structure for logging i...
asked by 17.08.2018 / 18:19
2
answers

How to consume an external API in Spring Boot

I have a springboot application that needs to extract information from another application. How do I make this communication and can I extract this data?     
asked by 09.05.2018 / 13:37
2
answers

How hibernate.hbm2ddl.auto works?

What values can I use in this property? ex: Update <prop key="hibernate.hbm2ddl.auto">update</prop> How does it work? When should I use it? is it a good practice?     
asked by 05.10.2015 / 17:15
1
answer

How do you handle submitting a form only once?

In a Method POST form, when I click the button twice it quickly executes the submission twice. Solutions with javascript or with the spring framework.     
asked by 14.09.2015 / 16:24
2
answers

What does the @Component annotation?

What does Spring actually do when we put the @Component annotation in a class? How It Works "Beneath the Cloths"     
asked by 08.03.2016 / 20:21
2
answers

What is JPA's mappedBy for?

Example: @OneToMany(mappedBy = "chemical", fetch = FetchType.LAZY) @LazyCollection(LazyCollectionOption.EXTRA) @JsonIgnore private List<SimulationChemicals> simulationChemicals; Why is the use of mappedBy mandatory or important? I...
asked by 08.01.2016 / 18:23