Questions tagged as 'spring'

2
answers

Difference between annotations @Component, @Repository and @Service in Spring?

The previous entries are very related, so my questions are as follows: 1- Can the annotations @Component, @Repository and @Service be used interchangeably in Spring or do they provide any particular functionality besides...
asked by 21.06.2018 / 02:49
3
answers

Set default schema = ALGO in oracle using Spring Boot and Spring JDBC

I am now working with Oracle and Spring JDBC, but I do not want to use the schema in my sql statements: Example: Select * from SCHEMA.table Is there any way to set the default schema in application.properties or application.yml?...
asked by 22.06.2016 / 19:10
1
answer

What is the benefit of using interfaces for services in Spring MVC?

Suppose I have the following JPA repository: public interface IGreetingRepository extends JpaRepository<Greeting, Long> { } And according to the documentation I would have to generate a service interface as follows: public interface...
asked by 29.12.2015 / 00:38
1
answer

real-time currency exchange from MXN to USD online store to show prices

I have an online store and the prices of each product are shown in dollars and one side will show an "approx" in Mexican pesos as what aliexpress does, or failing to know if to handle these currency changes depending of the language that is sele...
asked by 25.07.2016 / 08:21
1
answer

Differences between Spring boot and Spring MVC [closed]

I see that when executing a Spring boot application raises a server in 8080, I would like to know what is the difference between these two aspects, with a clear example maybe.     
asked by 17.11.2017 / 16:45
1
answer

Error starting IndexOutOfBoundsException application

The application starts correctly, the error jumps when I try to access the path where the application is, which in this case is localhost: 8080 The default driver is this package com.example.demo.controllers; import java.util.HashMap; impo...
asked by 20.11.2018 / 09:47
2
answers

Stereotype @autowired vs @inject

When to use @autowired ? Is your goal to inject a class? But for that would not be @inject ? @Autowired private CreateTextMessageService service; In this case the @autowired is being used in a property. But in the...
asked by 15.05.2017 / 06:02
1
answer

Expression of type List needs unchecked conversion to conform to List

I have a repository class that implements another method to obtain all my clients @Repository public class ClienteRepositoryImpl implements ClienteRepository{ private EntityManager em; @Override @Transactional(readOnly = true)...
asked by 22.02.2018 / 15:05
2
answers

How to embed app nodejs in java application

There is an application developed in spring and angularjs, the problem is that they want to make an app in nodejs and be able to embed it within the java application, I mean Something like pressing a button, and look at your node app, suppose...
asked by 25.02.2017 / 17:10
2
answers

control simultaneous calls to a REST service without duplicating the ID in JAVA

I'm doing a REST service through Spring and swagger with CMIS protocol. my service works well until the moment I make simultaneous calls through Jmeter to be able to stress the system. Context: the service obtains the ID from an ID creator to ge...
asked by 04.04.2018 / 15:39