Most voted "spring" questions
Spring Framework is an open source framework for developing applications on the Java platform. At its core is rich support for component-based architectures, and currently has more than a dozen highly integrated modules.
Learn more…787 questions
Sort by count of
-
0
votes1
answer2159
viewsAdd items dynamically to a list using Thymeleaf
In my application, I have a form to add an object to the database. In this object I have a list of other objects. For example, it is as if the object I am registering is a Sale and the list is…
-
0
votes2
answers1156
viewsSpring MVC and UTF-8
I’m making use of Spring MVC in a project, running on a Glassfish server and having trouble displaying text on JSP pages that contain special characters such as accents. I tried to put the charset…
-
0
votes1
answer158
viewsDYNAMIC ROLES with Spring Security?
I have a system where everyone who accesses has a user standard ROLE, but if a user is assigned a secretary type task, the user’s ROLE will be SECRETARIO, users can assign tasks and therefore…
-
0
votes1
answer175
viewsSpringboot Merge
I am using Spring Full, with Thymeleaf and Springboot, but my question is about Springdata, after implementing the interface to make use of the methods that Spring provides in Restpository, when…
-
0
votes1
answer64
viewsFilter in a project that consists of several projects and that are executed in different ports (Spring Boot)
I wonder if there is how (and how I can) develop an application that consists of several other applications and to access these other parts of the application I need to have logged in. I believe…
-
0
votes1
answer608
viewsBootsfaces Error javax.faces.Facesexception: Expression error
Follow the error javax.faces.FacesException: Erro de expressão: Objeto denominado: net.bootsfaces.component.Button não encontrado. Pom <dependency>…
twitter-bootstrap jsf spring spring-boot bootsfacesasked 9 years, 1 month ago Jose Vieira Neto 2,560 -
0
votes2
answers1239
viewsPagination with spring date
I have a list of clients per seller and am trying to create a pagination to show 10 and 10 clients in my modal in PHP. If anyone can help me thank you, because I’m still not good at spring date.…
-
0
votes1
answer254
viewsRelationship JPA, Spring, Angular,
I have a client record and I want to associate with this client a relationship of equipment but is not saving the relationship. on the model layer of the customer class I did so @OneToMany(cascade =…
-
0
votes0
answers314
viewsDoes Build Spring Boot take long to compile?
I am doing an example using Java with Spring, I am using Intellij IDEA, it takes a long time to compile, I am using Tomcat, show a lot of message on the server, have how to configure to be faster?…
-
0
votes2
answers95
viewsHashmap type attribute appears as Object
I’m using the Spring framework and the repositories, and in one of the interfaces of one of these repositories I have, for example, a method like this: @Query("select extract(month from…
-
0
votes0
answers103
views[jersey-Servlet]: com.sun.jersey.api.container.Containerexception: The Resourceconfig instance does not contain any root Resource classes
I’m trying to get application up in WAS 8.5, but I’m making this mistake when deploying, and with that the application does not run. WEB.XML <servlet>…
-
0
votes0
answers52
viewsError in project configuration
What I’m missing, I couldn’t find the mistake. Dispatcher-Servlet.xml <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"…
-
0
votes1
answer96
viewsWorking with Tomcat + Eclipse + Sublimetext (Frontend)
We are creating a web project using Eclipse (IDE) and Springmvc. The development team has two people, separated into Front-end and Back-end (we’re using GIT for versioning). For the Front-end we…
-
0
votes1
answer82
viewsHow do I work with object as attribute in registering another object using JSP?
I have a Schedule class. In this class I have a Task object. My question is, when creating the screen to record the scheduling, I will have a field to record the Task of this scheduling. Assuming…
-
0
votes0
answers42
viewsREST - What is CORS?
I’m starting in the development of Restful applications, with Spring and JAX-RS and I realized that some systems create such a CORS, not having CORS configured in the application would have exactly…
-
0
votes1
answer501
viewsSpring boot + jpa + Localdate
I am unable to configure the classes convert in spring boot to convert the date that comes from the view into String to the controler that expects a Localdate java8, Someone could give me a hint ?…
-
0
votes0
answers37
viewsException leaves no application startar
Below is my pom.xml and the exception that appears on the console. I have already followed all the recommendations I found, in general they say to redo the steps until generating the project or to…
-
0
votes1
answer294
viewsLongtext MYSQL Persistence Variable Type
Good morning, In my database Mysql, I have a column of the type longText. My doubt is how to declare the type and annotation of this variable in the java class. Soon search found the following…
-
0
votes1
answer126
viewsImage does not appear in the project
good morning, I am trying to put a pdf icon on my project, but it does not appear. I am using f:Facet this way. <h:commandLink> <p:graphicImage name="/resources/img/pdf.png"/>…
-
0
votes3
answers320
viewsWhere to put the files?
When we use Spring and Maven, where should we put the files? in the webapp folder or in the Webcontent folder?
-
0
votes1
answer172
viewsSettings Instance Tomcat / Nginx java sprintg
I need to configure a new instance of Tomcat to host a new application and in parallel configure Nginx to do the reverse proxy. The application is developed in java Spring. The application is two…
-
0
votes1
answer241
viewsError running JSF project by eclipse
Good evening , I’m trying to run a project in the eclipse, but Tomcat is throwing me the following exception. Does anyone know what can be? fev 25, 2018 8:57:57 PM…
-
0
votes1
answer56
viewsHow to migrate from spring security 3.0.5 to 4.2.3
I’d like to know how to get from Spring Secuirty 3.0.5 to 4.2.3 My xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee"…
-
0
votes1
answer34
viewsSpring Secuirty dependency error
I am not able to adjust the dependencies of my Spring security, I tried to download the libraries 4.3.5 however I could not deploy. I’m not using pom so I need help, my library: Error while…
-
0
votes1
answer466
viewsCould not Verify the provided CSRF token because your Session was not found
I’m using Spring security 4.2.3 and spring 4.2.5 when I run the login screen and the user registration screen works correctly however when I ask to access the home screen. this error appears:…
-
0
votes0
answers281
viewsError while searching the database using Java, Hibernate and Spring. Use of Beans and Autowired
I’m trying to make a search in my program, but the mistakes appear: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cursoSpringDataApplication':…
-
0
votes0
answers27
viewsTechnology migration
Today we have an application made in java, but this application does not use any framework in the back end, I need to do one more project and do not want to use the same architecture, I already have…
-
0
votes1
answer47
viewsHow to customize the access denied url? (spring social facebook)
In class Providersignincontroller We have the method oauth2ErrorCallback. When the user cancels the authorization on facebook he is redirected to:…
-
0
votes0
answers106
viewsError accessing controller - spring securiy
I’m finding this mistake strange. Class you are reporting on the console: package br.com.netsoft.configuracao.auth; import io.jsonwebtoken.ExpiredJwtException; import java.io.IOException; import…
-
0
votes1
answer1598
viewsCan anyone explain what a Spring Framework bean is?
Can anyone simplify what a bean is ? I’ve read the description by the Spring site itself but it didn’t make much sense (to me) what it actually is, and what it actually serves. I know I have to…
-
0
votes1
answer86
viewsHow does Spring MVC identify Model, View and Controller files?
I wanted to know how Spring tracks these files. So far I know that Spring MVC has the DispatcherServlet that is responsible for sending the requests to the controllers that respond to such URL. But…
-
0
votes1
answer108
views -
0
votes2
answers276
viewsReports with Jasper Ports
Good evening guys! To create reports with Jasper I need to have classes with templates? Since I already have a populated bank and I only want the reports, creating filters and tals...
-
0
votes2
answers594
viewsThymeleaf - Spring boot - Empty validation
I have this code that already works: <span class="label" th:classappend="${usuario.ativo ? 'label-success' : 'label-danger'}"> </span></td> but now I want the following: <span…
-
0
votes2
answers634
viewsJSP how to include a select within a checkbox
I am developing a web application, with java spring mvc, and need to list items in a dynamic checkboxList and include a select option in each item. Something that in html would be similar to the…
-
0
votes1
answer473
viewsSave an object with a list using Spring Crudrepository
Hello, Is there any way to save an object with an object list (Set)? For example, I have the Artist and Album objects, Artist has a list of Albuns (Set). I would like when saving the Artist also…
-
0
votes1
answer1601
viewsCSS and JS are not being applied to the project in Spring MVC (config via java)
I’m a beginner with Springmvc and I’m learning through the book Spring MVC (Master the main java web framework, by Alberto Souza, code house). Before starting with Spring, I created a Maven project…
-
0
votes1
answer83
views404 - Java EE Maven Project with Spring returns 404
I am having problems with the Spring configuration of my Maven project, in which to test if everything was working, a simple hello world did not work and apparently there are no explicit errors,…
-
0
votes0
answers105
viewsError deploying application with Swagger and spring in Weblogic
When deploying my application using spring with swagger2 I have the following error: Message icon - Error An error occurred During Activation of changes, Please see the log for Details. Message icon…
-
0
votes1
answer451
viewsHow do I resume the amount of Spring JPA records?
I want to return the value of playlists at the bank, but that code there did not work. public interface PlaylistDao extends JpaRepository<Playlist, Long> { @Query("select count(*) from…
-
0
votes0
answers179
viewsSpring Web MVC - Controller not working
I’m trying to make a basic application, with a controller that sends a message to the screen and puts CSS into the project, but either CSS works or the controller. Follow the codes: 1) Netbeans…
-
0
votes0
answers209
viewsJava Spring MVC error 400 - Search for 2 fields
You guys, blz?! Next, I’m finalizing a project to complete a chair in college and I’m getting a very strange mistake. I’ve already checked with another classmate, but we can’t identify. I need to…
-
0
votes1
answer244
viewsPersistence with Spring and Thymeleaf in multiple tables in the same form
I have another vision How can I pass two objects in Modelandview, so that when calling a request to save I can do this object distribution for each Entyti. I have Entyti Client and Contact, in the…
-
0
votes1
answer673
viewsHow to Handle Exceeded Maximum File Upload Size
I have an application, which uploads a file (spreadsheets), but after a recent test pointed out this error: Caused by: java.io.IOException: UT000054: The maximum size 1048576 for an individual file…
-
0
votes1
answer55
viewsFailure to build Spring MVC application when configuring AOP bean
I’m trying to configure AOP in the spring.xml of my Spring MVC application, but I can’t build. I consulted the documentation, but following it did not succeed. The code is as follows:: <beans…
-
0
votes1
answer234
viewsRules processing with spring security
I am building an application with Spring Security and after performing all settings to have the custom login done with the UserDetailsService, I realized that when logging in, although the data is…
-
0
votes1
answer1396
viewsJava spring: convert a file to Multipartfile
I created a simple file: File file = new File("text.txt"); But I would like to convert this to a Multipartfile, which would be the best way? I have tried the code below without success:…
-
0
votes2
answers228
viewsCreate bi-directional relationship without using DTO?
Hello, I’m on a project and I need to do bidirectional relationship between two entities, the relationship is @OneToMany @ManyToOne, so far so good. But I wonder if there is any way to do it without…
-
0
votes1
answer147
viewsFirebase + Android + Spring to create Microservices
The idea is this: I have an android application that will consume my services that I will create using Spring. However, these services should have some security, where only people authenticated in…
-
0
votes1
answer376
viewsHow to configure a custom Swagger json file in Spring boot?
I’m trying to set up a json file in Swagger by spring boot, but the times I try it says it couldn’t find that file, does anyone know what I’m missing? Follow below my codes: Photo of my project…