Questions tagged as 'spring'

1
answer

What is the best place to make a property file available? [closed]

It has a Java project in Spring Boot that connects to the database. Consequently I have an application.yml properties file with the database connection configuration. The configuration of database is as below with the user and passwor...
asked by 29.06.2017 / 15:19
2
answers

Problem with return of AJAX request

I am making a request in ajax but the result of it does not update, it is as if it were in some kind of cookie. function AtualizaTotalItensNota(idFornec) { $.ajax({ type: "GET", dataType: "text", url: "/sist...
asked by 17.01.2017 / 12:39
2
answers

Thymeleaf Spring JSF

I'm trying to internationalize templat, using Thymeleaf 3.0 Spring 4.2.3 JSF 2.2 What is sent next to an email. #{i18N.descriptionPortal} When you print in the email html it looks like this ??i18N.descriptionPortal_pt_BR?? o...
asked by 05.01.2017 / 17:24
3
answers

Problem with JS / JQuery / JSON / AJAX

I'm having some problems with JSON in my application and wanted to see if you guys can help me, please. The situation is as follows: I have a method in my controller that looks for some items: @RequestMapping(value = "/buscaTodosCardapio...
asked by 23.01.2017 / 17:56
1
answer

How to send an object between controllers through Redirect

How to send an object through redirect between requests? I performed tests trying to send the object through the model, but without success. Follow the code: @RequestMapping("removeResultado") public String remove(RequestParam(value...
asked by 29.04.2016 / 14:40
1
answer

Include angular.js using maven in Java Spring project

I'm studying Spring Framework with Maven, in the insert dependencies part I'm having a bit of trouble trying to insert angular.js into the html page, in the pom.xml file, the angularjs dependency looks like this: <dependency> <...
asked by 15.09.2015 / 04:51
1
answer

Duplicate value in the bank when inserting new users with an already used Role (Spring-Security)

Hello I'm creating a simple web application with SpringMVC and Spring Security. I made the User and Roles class as follows: @Entity public class Usuario implements UserDetails { private static final long serialVersionUID = 1L; @Id pr...
asked by 06.02.2016 / 03:57
1
answer

Is it safe to entrust the security of an application to Spring Security?

I am developing a reasonably simple yet fairly distributed system that involves including use of EJBs and other agents, which requires both Authentication and Authorization. The system will be composed initially by Spring + Hibernate + JSF +...
asked by 02.06.2015 / 18:53
1
answer

Change the state of a checkbox component in the bank using AJAX

Very good night to everyone! Well, I have a table in which there is a checkbox component. This component has the task of enabling and disabling a target on my website. The figure below shows a table row with that element: Hereisthehtmlcode,...
asked by 13.08.2014 / 02:56
1
answer

Configure Spring applicationContext by taking advantage of other configuration files

I have the following hibernate.cfg.xml : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://www.hibernate.org/dtd/hibernate-configuratio...
asked by 27.07.2014 / 03:16