Questions tagged as 'spring-mvc'

1
answer

How to unify two CSS files

I'm doing a Spring MVC 4.2 project. In this project I have more than one CSS file and more than one JS . What I want is to make all CSSs files into a single ALL.css and that this file is minify . What I have been working on...
asked by 23.12.2015 / 00:03
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
1
answer

JPA, Hibernate, Spring MVC, Maven - Definition

I have many doubts in definitions! My goal is to build an architecture of a system, but the definitions of JPA, HIBERNATE, SPRING MVC, MAVEN, are obscure. JPA: Nothing is more than a specification (ok) Hibernate: Persistence Provider,...
asked by 24.06.2016 / 01:57
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

Redirecting page jsp using SpringFramework

Hello I have the following problem in doing a page redirect index.jsp to login.jsp page, in tomcat it only appears that this page was not found, ERROR 404. If anyone can help, I am using and studying Spring, maybe something different from the...
asked by 26.04.2016 / 04:26
1
answer

java.lang.IllegalStateException when declaring aspect with Spring

I'm trying to declare the following: @Aspect @Component public class UpperCaseAdvice { @Before("@target(annotations.Model)") public void toUpperCase(JoinPoint joinPoint){ //faz alguma coisa } } I'm using the spring-...
asked by 24.11.2015 / 00:05
1
answer

Spring MVC getJdbcTemplate insert in Oracle return column value

I have a project in Spring MVC, I'm using getJdbcTemplate to do insert's. I just do not enter the primary key in Oracle from a sequence and need that value to re-insert into another table where that value is a foreign key. For examp...
asked by 21.02.2016 / 13:15
1
answer

How to expose a method as a bean to use the spring dependency injection

I need to expose a method as a bean in Spring% with% to use it in the injection of an attribute, which has more than one implementation. What I did was the following: I added the method that will create my object using the ApplicationCon...
asked by 28.05.2018 / 17:12
2
answers

How to send an error message to view

I'm a little lost here, I'd like to put a parameter in the view to tell the user that their password is wrong, expired, and so on. the problem that spring-security identifies. WebSecurityConfigurerAdapter @Configuration @EnableWebSecurity...
asked by 17.03.2016 / 18:51