Questions tagged as 'spring'

2
answers

Java delete some properties in the ResponseBody

I am using Java with Spring MVC and MyBatis to connect to the database. I have an account table and for some queries I need all the fields, but for others I need only some properties. For example, to show the basic information of the account...
asked by 27.07.2016 / 18:16
1
answer

Center the elements of a list in a navigation bar

I'm doing a navigation bar with Bootstrap, within the framework of Spring Boot, which sent them: HTML <header th:fragment="header"> <nav class="navbar navbar-expand-lg navbar-dark"> <a class="navbar-brand text-w...
asked by 10.09.2018 / 20:04
1
answer

org.springframework.beans.factory.UnsatisfiedDependencyException org.springframework.beans.factory.NoUniqueBeanDefinitionException

How to resolve ambiguities in the AUTOMATIC CONNECTION of Bean in Spring? Image we have a Dessert interface, and we have three different desserts (Beans) that implement the interface (Dessert). The dessert of the day is Cookie, so we wrote...
asked by 02.09.2018 / 14:40
1
answer

Best way to modify (update) an object with Spring and Hibernate in this scenario?

I do not know how to move forward with this, to see if someone gives me a hand:) In the modal that I see in the image several loaded credentials will appear. Each credential can be edited or deleted and I'm having architectural problems...
asked by 03.12.2018 / 15:00
3
answers

Iterate a List in Java

How can I iterate this list to get the names: Class Cards: public class Tarjetas { private List<Tarjeta> tarjetas; public List<Tarjeta> getTarjetas() { return tarjetas; } public void setTarje...
asked by 31.03.2018 / 12:58
1
answer

Requested bean is currently in creation: Is there an unresolvable circular reference?

I'm new to Spring and I need help. I have among others, these classes: package com.cice.crud.domain; import java.io.Serializable; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.pers...
asked by 20.02.2018 / 20:44
1
answer

Error generating war file - Java Spring 5

I have my working environment in Ubuntu 16.04 and I am working with spring 5, I have tried to generate my war file but it generates the following error messages: Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-war-pl...
asked by 02.02.2018 / 06:06
3
answers

Correct way to send data to a view with jpa spring framework

What is the best practice to send data to a view with Spring framework, it is correct to send an entity to a view or first convert an entity to a disc. This is because of the security issue, that not all the data in a table is necessar...
asked by 20.11.2017 / 22:40
1
answer

Spring security- Sessions?

I have a project created with Spring Security and Spring MVC, and I have a url in the following way: universidad/acceso/infoNotas?idEstudiante=20 It turns out that when defining access to the URL, it is defined for the role of teacher in th...
asked by 12.02.2018 / 03:13
1
answer

Parameters between URL's

Good morning! I can not find the solution to the next problem. I have an Intranet, which consumes another project (Web page) and shows it inside an IFrame. The question is: How can I retrieve the parameters of the URL of the intranet page...
asked by 19.12.2017 / 19:09