Questions tagged as 'spring'

1
answer

What happens internally in running a Spring Boot application?

Recently I've been studying Spring Boot, I wanted to know what happens internally when an application is started, because every project has a main class that is always annotated with @SpringBootApplication . What is the purpose of this not...
asked by 25.10.2018 / 15:43
2
answers

Alternative Flow in Spring

In the face of the situation: I am in the car registration screen, where I can select the brand and enter the model. If I need to register a template that does not have the previously registered trademark, I have a link that leads to the tradema...
asked by 31.01.2014 / 20:37
2
answers

error c3p0 - bad pool size config start 3 min 5. using 5 as start

Hello everyone! can someone help me how to solve this error below? I tried a lot and nothing. Error: 12-Dec-2017 20:27:27.908 INFO [http-nio-8084-exec-6] org.springframework.web.servlet.FrameworkServlet.initServletBean FrameworkServlet 'dis...
asked by 13.12.2017 / 00:38
1
answer

OneToOne returning wrong value

Please help me please, I have a problem here and I'm banging my head to resolve this for hours. I use Spring in the project and I have the following relationship in one of my models: @OneToOne() @JoinColumn(name = "ITE_COD_INTERNO") @NotFound(...
asked by 24.11.2017 / 13:36
1
answer

Uses of the @Bean and @Autowired notations and what are they for?

I have difficulty understanding these two notations and what they are for. I have read documentation and some answers on, and from what I understood @Bean would be an instance creation of a class, and @Autowired would use that instance. Would it...
asked by 27.12.2017 / 12:16
1
answer

Service Discovery Eureka Netflix

I have a SOA architecture with two stacks different one with java and another with ruby, I have a microservice using spring boot and other rails, and I'm trying to configure a Service Discovery with Eureka for java projects especially wit...
asked by 22.09.2017 / 14:22
1
answer

Problems with image localization in Spring Framework

I'm using Spring and Thymeleaf: I have an image in the directory:    resources / image / telescope.png When I open the posts.html (home) page, located at the address below, the image is displayed.    link Code to call the imag...
asked by 05.07.2017 / 19:10
1
answer

Spring instantiate object with @Value

In my application.properties has algumaCoisa=joao , and when I java -jar nomedo.jar , it comes null, can anyone explain to me why this happens and how do I fix it? @Component class TesteClass{ @Value("${algumaCoisa}")...
asked by 25.06.2017 / 15:11
1
answer

Is there a way to do "migration" in RabbitMQ?

Hello I would like to know if there is any alternative to create / change / remove exchanges, queues and bindings without depending on the framework (in my case, Spring) for this. We often need to change the name of a Routing Key, Queue, o...
asked by 07.05.2018 / 15:02
1
answer

Gson Return Array of One Position

Hello I have the method: @RequestMapping("/olaMundo") public String iniciando(Model model, Cadastro cadastro){ CadastroDAO dao = new CadastroDAO(); dao.adiciona(cadastro); model.addAttribute("nome",cadastro.getNo...
asked by 04.04.2017 / 20:16