Questions tagged as 'spring'

1
answer

Problem with Spring Security - page not found

When the user accesses a page that he does not have authorization, he is directed to the page of AcessoNegado.xhtml . However it has the following image: Thispageislocatedhere:\GestaoADM\src\main\webapp\AcessoNegado.xhtml And the set...
asked by 30.06.2015 / 17:04
2
answers

How to hide menu items using spring security?

I'm using spring security to control access to my web application. I already managed to implement the control that each type of user will have in relation to the urls, now I would hide the items for the ordinary user that will be restricted to o...
asked by 04.06.2018 / 20:48
2
answers

Cut bi-directional relationship looping

I'm having a Spring project, using JPA and Liquibase, I have a two-way relationship between two entities, I wonder if anyone has a solution to the infinite referral problem between the two? For example, I have a Question that has many answers, a...
asked by 10.06.2016 / 13:45
2
answers

Using the JPA repository

Last Saturday I presented my CBT in college and saw that I need to improve the project presented. The system receives invoices in XML format and handles them. I took as a base the system in the company where I do internship. It uses Prime...
asked by 04.02.2014 / 16:29
1
answer

Spring Framework @Transactional Operation

1 - Does the Spring documentation describe the use of @Transactional of Spring in business rule classes ( ProdutosService for example) has any special reason to use this annotation in these classes instead of using DAO's? 2 - Th...
asked by 24.07.2014 / 21:31
1
answer

Convert LocalDate to LocalDateTime

I have the following attributes in my Filter class: private LocalDate periodoDe; private LocalDate periodoAte; However, the object on which the information is the attribute that will be filtered is LocalDateTime , so in my tests, I do...
asked by 19.09.2018 / 20:09
2
answers

Annotation @Scheduled Spring check environment

I have a controller annotated with @Scheduled but when the test environment is active it also runs. Is it possible to check the environment in which application is running for the method to run only in production?     
asked by 11.07.2018 / 21:39
1
answer

Is it possible to know which JEE Container is being used during Dispatcher Servlet initialization?

After some difficulties with the use of Spring Security and JBoss using annotations based on API Servlet 3 (Servlet 3.1 specifically), I found that when using the Spring with JBoss , particularly JBoss EAP 6.1+,...
asked by 10.07.2015 / 18:24
1
answer

Conflict with MBean name when uploading two Spring Boot applications on the same Tomcat

I have two applications in Spring Boot that use a common nomenclature for beans . In this case, my pool of connections to the database is managed by HikariCP. Due to an infrastructure problem, I had to upload two of my Spring Boot projects...
asked by 18.04.2018 / 22:17
2
answers

Relationship between bean and view

I have three views that show the same table with a sequence of leds and information, I have a service class that does the business logic to know which led and which color to display, in my bean responsible for the view I get...
asked by 28.06.2017 / 15:09