Questions tagged as 'spring'

0
answers

Doubt with LoadBalance and CircuitBreaker in Microservices

I have a service structure as follows: server (Eureka), property (eureka-client) and client (eureka-client). The customer service makes a request for the service of property, using the feign. I have the LoadBalancer configured on both sides (...
asked by 27.05.2018 / 19:00
1
answer

Unit testing of model attributes in spring boot application

Good afternoon I do not have much experience with unit testing. I'm testing controllers in a spring boot application, but I've made a mistake in testing the attributes of the model, which apparently is not even recognized in the test. Below t...
asked by 27.08.2016 / 21:42
0
answers

PostgreSQL NoSQL and integration between relational and non-relational databases

I've been searching for PostgreSQL NoSQL and found the Key-Value Stores concept in some HSTORE publications. I also looked into the integration between PostgreSQL and the Spring framework and found the following code example: package com.j...
asked by 01.11.2015 / 17:04
0
answers

Passing Spring object to JSF

Well, I have a class that is almost all populated with Facebook data, but there are two missing attributes that have to be populated from data coming from a form. Here is the form: central/cadastro.xhtml <?xml version="1.0" encodi...
asked by 05.04.2015 / 04:10
1
answer

Spring MVC error in performing binding of checkboxes in a list of objects

I have the following code snippet in my .jsp , in which the purpose is to dynamically list a passenger list per customer. <f:form id="service-item-form" action="${action}" modelAttribute="serviceItem" method="post"> <ul id="l...
asked by 20.11.2015 / 14:26
1
answer

How to create a prefix for the url using spring boot

I learned to use spring doing all the configuration in java classes and now I'm migrating to spring boot 2.0.2 . I would like to know how to create a prefix on the URL that has the project name that serves as the basis for it....
asked by 26.05.2018 / 19:31
2
answers

Configuring Hibernate transactions only with Jersey API annotations

I want to use something similar to org.springframework.transaction.annotation.Transactional of Spring that sets up a Transaction only using only the Jersey API. Something similar to the code below: @Resource private SessionFactory facto...
asked by 17.02.2014 / 20:36
2
answers

How to release CORS for a given address?

I'm not able to release CORS to link , I'm using Spring Security . I encounter the following error:    XMLHttpRequest can not load link . Response to preflight request does not pass access control check: In 'Access-Control...
asked by 01.11.2016 / 13:07
2
answers

What's the difference in using ModelAndView and ResponseEntity?

I came across these two classes, I found their function well the same. What are the differences between them and when is the time to use a specific one?     
asked by 17.01.2018 / 18:28
1
answer

Redo Spring cache?

Is it possible to schedule the Spring cache to be redone at midnight every time? I've read the Springs Cache Docs and found nothing about how to get it back.     
asked by 09.03.2017 / 07:16