Questions tagged as 'spring'

1
answer

Notes for controllers and services

In Spring 3 there are annotations of class @Component , @Service , @Controller and @Repository . I know that @Component is the only one that can be used in all cases ( Controller , Service and Repository )....
asked by 11.12.2013 / 17:23
1
answer

Persistent resource return with Hibernate

Good afternoon. I would like to understand how to solve the following question: In the project I'm working on, Backend and Frontend are separated. To persist the data I am using Hibernate and to control the connection with the DB I have a fil...
asked by 25.06.2018 / 18:55
0
answers

Spring Websocket multi user chat with sound

I'm trying to develop a real-time chat with the following scenario. Online Attendant Each user he answers is a One to One conversation An attendant sees all the users in a list that he is answering. When he speaks, he speaks only to...
asked by 15.12.2016 / 00:24
1
answer

Dynamic task scheduling with spring batch + quartz

I have a project in Spring Batch + quartz, which loads a file and then processes the file data. Only I wanted to implement a view with a form where I had the option to choose the start time and end time and the days where I could run. Can I do t...
asked by 11.02.2016 / 00:13
1
answer

Spring MVC + Joda Time + @DateTimeFormat

Description: Spring does not convert using @DateTimeFormat , I try to send start both ways below and it returns me a 404 . When I send the object without this field it creates the normal object, but it can not create whe...
asked by 21.02.2014 / 19:43
1
answer

How to handle security in a REST application with Spring?

I'd like to know how I could handle the security of a stateless REST application with Spring. Imagine that no user can access any content of /app/content if you have not first identified. Is there any way to do this without also having...
asked by 08.10.2014 / 19:23
2
answers

Multiple persistence units with Spring Data

Is it possible to create multiple persistences units by connecting to different databases in the same JPA application using Spring Data? For example. I have an application that will run on MySQL normally. However, it will have to query in an O...
asked by 15.01.2015 / 13:24
1
answer

Convert String Ex. 1,520,30 to a BigDecimal using the Spring MVC @InitBinder

I have a screen where I work with jQuery Mask monetary value masks, when the user performs the submit form value returned to my controller is Ex :. 1.340,34. The Bean attribute that bind bind is a BigDecimal . Soon I had to create...
asked by 29.07.2015 / 15:57
1
answer

In Spring MVC, how to send information to the view (.jsp) without using ModelAndView?

I'm developing a web application in Spring MVC. I have a method that returns a list (java.util.List) and needs to pass it to the view (.jsp), however without updating the page. I would like to know some other way to pass the Java informati...
asked by 25.09.2015 / 18:48
1
answer

Obtaining factory null in spring SessionFactory with Resource configured

The class name containing SessionFactory is DataProvider and has the following implementation: @Resource(name="sessionFactory") protected SessionFactory factory; protected Class<E> entity; protected String tableName; publ...
asked by 18.02.2014 / 18:39