Questions tagged as 'spring'

3
answers

What kind of return from a select count (*) in Spring JPA?

I need to know the type of return that Spring JPA returns to put in the Service package, because it is giving NullPointerException : Dao: public interface PlaylistDao extends JpaRepository<Playlist, Long> { @Query("select co...
asked by 23.11.2018 / 18:47
1
answer

When should I use the annotation @EnableAutoConfiguration and how does it work?

Annotation EnableAutoConfiguration should be used on what kind of project? and how does it work in the application?     
asked by 05.06.2015 / 01:16
1
answer

I can not ignore fields when trying to return them as Json causing "Infinite recursion"

I'm working with Hibernate , Spring and Jackson (to ignore the fields) and trying to return the User < strong> in a request json java returns error due to @OneToMany and @ManyToOne mapping with the Profile class. Does anyone know why?...
asked by 11.03.2016 / 06:57
1
answer

Formatting Time using initBinder

I need to get the time with the formatting "hh: mm" but it is not working, follow the error also to specify:    Whitelabel Error Page This application has no explicit mapping for   / error, so you are seeing this as a fallback. Tue Dec 18...
asked by 18.12.2018 / 17:00
1
answer

Notifications with Spring

How to implement a system of notifications that receive a real-time counter of notifications example: My question is that when you insert another bank in the bank and pass from 4 to 5 if you update in the same session as fast as possibl...
asked by 14.03.2016 / 15:09
1
answer

Spring Beans Injection in JAX-WS / Tomcat 7 (@WebServices) - Does not work, returns NullPointerException (NPE)

I would like to inject ( @Autowired or @Resource ) beans created by Spring ( 3.x or 4.x ) into a class that implements a JAX-WS interface (reference implementation). I tested it on Tomcat 6 and it works, but on Tomca...
asked by 09.09.2014 / 20:42
1
answer

Spring boot Data-JPA and JSF Java Config

I'm setting up a project using Spring boot for ioc and Data-Jpa along with JSF but I have a problem with @Autowired my DAO is not loading. Does anyone know how to do this setting and where can I be wrong? Here's my setup: Applica...
asked by 09.07.2015 / 08:42
1
answer

Problems implementing Spring Security

I'm implementing Spring Security in a project, however, I've come across some issues. I'm going through the context code, the part of web.xml to Spring Security and how I put it on a page for you to see. What happens is that Spring...
asked by 08.05.2015 / 22:49
1
answer

Create Dto by the constructor with a List parameter of a Hibernate entity

I have a @Query Spring, which performs a query to the bank by an Entity, to create some DTO Objects. And the properties of this DTO object, I passed via Builder, but I needed to pass as a parameter on the List constructor it has in the Ent...
asked by 14.11.2014 / 20:52
1
answer

Spring Security without authentication

I have a system that already authenticates the user, and controls access to pages that require authentication, I need to use spring security to control access to pages by user rules and to control access to certain resources, such as a user only...
asked by 17.06.2015 / 14:49