Questions tagged as 'spring'

1
answer

I can not inject MockMvc into integration test [Spring Boot]

@RunWith(SpringRunner.class) @SpringBootTest public class CustomerRestTest { private static final String BASE_URL = "http://localhost:8080"; @Autowired private MockMvc mockMvc; @Test public void indexTest() { MvcRes...
asked by 19.10.2016 / 16:47
1
answer

Error consuming Glassfish + Jersey REST web service with date that returns an xml

I need to consume a web service (WS) REST in my android application. The web service was made with glassfish, jersey and ORM hibernate to communicate with the database. Here is the WS code: Vegetarian Service: @Path("/vegetariano") public c...
asked by 09.11.2016 / 00:54
1
answer

HttpSessionListener a single session per user

How can I make only one http session open per user on the system. Key technologies in design: Spring 4 JSF 2.2 Hibernate 5 Example: User juca, works on your computer using 3 browser. (IE, Firefox and Chrome) If he logs in w...
asked by 22.10.2016 / 01:06
0
answers

Selenium with Maven plugin does not work the tests

Implementation to run a JUnit and testNG test suite, When run by the eclipse plugin, it works. By maven not, the behavior of testNG tests are changed, It seems like it does not end right the http sessions, Create an http session, when (...
asked by 26.09.2016 / 22:59
1
answer

Spring Security Oauth + Firebase

Good afternoon. I'm implementing the security layer of my application. I decided that we will use Firebase to perform the authentication, and when it returns the access token to the client it will send that token to my Java server which will...
asked by 10.10.2016 / 22:20
1
answer

How do I get multiple JSON Arrays in a JSON Array with Rest Template?

Hello, I'm having to collect information from several JSON's Array inside a JSON Array, which follows below, with Rest Template: { "dataset":{ "id":10051093, "dataset_code":"SN2017", "database_code":"CME", "name":...
asked by 08.08.2016 / 15:36
1
answer

Select manual in repository using Spring?

Hello, I would like to know if there is a way to do a select within Repository , I am using Spring and REST , I need to return all entities that have another entity, I would get them by id, and I need to feed a call ajax with i...
asked by 17.08.2016 / 15:48
0
answers

Textarea Editable Lines - Thymeleaf and Angularjs

I'm building a basic document template, using the same idea as my colleague ( Paulo Henrique ), but I do insert the data by fields external to the form, in an earlier moment of the client's search. The difficulty comes from the need to edit this...
asked by 18.07.2016 / 21:02
1
answer

Firebase + Android + Spring to create microservices

The idea is this: I have an application in android that will consume my services that I will create using Spring. However, these services must have some security, where only people authenticated in my application can consume such services....
asked by 02.07.2016 / 18:43
1
answer

How to send object as attribute of another object from a JSP to a Spring controller?

Hello, I have a News related ManyToOne class with a Section class. The News class has an attribute of type Section (where the @ManyToOne relation occurs). I would like to know how I can, in the newsprint form, send the section to which it sh...
asked by 02.07.2016 / 03:27