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
-
1
votes1
answer251
viewsLogin Module with Spring Security
Guys, I’m studying the Spring Framework and all the others frameworks that it makes available and would very much like to implement a module of login. I am currently using Spring without any use of…
-
1
votes1
answer371
viewsInstantiate an object from a Spring-managed class
Does anyone know how to instantiate an object from a Spring-managed class (e.g., a Jparepository class) in a class not managed by Spring?
springasked 7 years, 11 months ago Emerson Vieira 315 -
1
votes2
answers1177
viewsSpring MVC + Spring Date Pagination
Good morning guys all ? I’m not having a problem in itself, just something I want to optimize. I’m using Spring MVC with Spring Data, to make the results pagination, I’m using Pageable inside my…
-
1
votes2
answers635
viewsThymeleaf Spring JSF
I’m trying to do the internationalization of templat using Thymeleaf 3.0 Spring 4.2.3 JSF 2.2 Which is sent along with an email. #{i18N.descriptionPortal} When you print in the email html it looks…
-
1
votes1
answer1192
viewsBug on booting Tomcat
Good evening, everyone, I started to study the book of the code house, spring mvc, but right off the bat I made the following mistake when trying to start the cat tone, someone can help? jan 23,…
-
1
votes1
answer716
viewsInclude angular.js using Maven in Java Spring project
I’m studying the Spring Framework with Maven, in the part of inserting dependencies I’m having a little difficulty when trying to insert the angular.js in the html of the page, in the pom.xml file,…
-
1
votes1
answer216
viewsHow to validate attributes in Spring Batch
I’m working with Spring Batch. In my batch processing, my Reader needs to read a file .csv. When I read the file, I have a class that represents each line, and I would like to know how to validate…
-
1
votes0
answers157
viewsTestng Facescontext.getCurrentInstance() Return null
I’m running a test on Facescontext.getCurrentInstance() is returning null. Ambience: Spring 4.3 JSF 2.2 Scope view Escope view is customized for Spring This is scope class, it works public class…
-
1
votes1
answer180
viewsBug in Spring with Hibernate query code
I have a problem, I am studying spring mvc with Hibernate and I ended up entering a bug where it returns the following exception "java.lang.Nullpointerexception", follows the codes:…
-
1
votes0
answers118
viewsError 404 in spring
Man jsp <form method="POST" action="/desif/titulo/salvar/"> <div class="form-group has-info"> <label for="codigo" class="col-xs-12 col-sm-3 control-label no-padding-right"><font…
-
1
votes1
answer142
viewsProblem passing information on my login
am receiving this Exception at the time of logging in ERROR [org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter] (default task-10) An internal error occurred while…
-
1
votes1
answer576
viewsPass native query by parameter to Jparepository Interface
I need to create an interface that extends Jparepository where I want to pass a native query(select) by parameter instead of leaving static inside the annotation @Query. Instead of using…
-
1
votes1
answer103
viewsSpring MVC - Write Data to TXT
How could you get inside a Receive Data controller via Post (in Spring MVC) and write this data to a TXT? Later, in Model open this TXT and send to View. Would anyone have any example?…
-
1
votes0
answers100
viewsKeep Swagger documentation updated
I am documenting an API with Swagger. I am not using annotations and the documentation is recorded in a JSON file. The problem is that API is constantly changing and with each change you need to…
-
1
votes1
answer694
viewsSpring JPA XML error
After I updated the Eclipse of the Luna version to the Mars version is returning error in the first line of the Spring JPA XML file, in the XML declaration: <?xml version="1.0"…
-
1
votes1
answer667
viewsError 404-Not Found Spring MVC application
I’m getting the bug Error 404-Not Found: The server has not found Anything matching the Request-URI when trying to access any url of my application, the strange thing is that the page index.jsp…
-
1
votes1
answer370
viewsError in creating a Maven project
As soon as I create a Maven project with the "War" Packaging, it gives the following error : Description Resource Path Location Type web.xml is missing and <failOnMissingWebXml> is set to true…
-
1
votes1
answer379
viewsDate field not saved in Spring and Angular database
I am doing a small CRUD and na when I save the data the data fields Start and dataFim do not save in the database. PS: I did the debug and the dates are going through the save method. <div…
-
1
votes0
answers139
viewsDynamically connect to the database by the Spring project’s Repository class
I need to connect to the database in a dynamic way, where the database connection data can be passed by parameter, below is an outline of how to need the connection and execution of the query. This…
-
1
votes0
answers31
viewsliquibase:diff always generates indexes
I am using spring-boot with the liquibase-Maven-plugin plugin to generate database changes according to my classes, but the command "mvn Compile liquibase:diff" always generates removals and…
-
1
votes1
answer75
viewsJSTL adding null option inside select element
I build a line <tr> using Angularjs and JSTL, and within this line I have an element select where it is travelled by using <c:forEach> over an enumerator to fill it when the user clicks…
-
1
votes1
answer205
viewsError making a GET, Javascript, Angular, Spring, Java request
I have an error opening the screen with the bank search results. error is in image below. Debugging, the data is coming from the database. In the other image, the server log appears My class…
-
1
votes1
answer282
viewsUse Sublime Text with Eclipse
I’m in a new project that uses the Java WEB + Spring in the backend and I do only front-end. I need to keep Eclipse open to run the server. However, I use the Sublime Text 2 in html editing because…
-
1
votes1
answer357
viewsRestcontroller Spring, how to limit the number of requests!
Dear friends, I have a API Rest with the RestController from Spring, it receives hundreds of simultaneous posts, and with each post, I need to query and store data in the database. The problem is…
-
1
votes1
answer72
viewsHow to get Email after Login to Facebook using Spring for Android Sample?
I’m using the Spring for Android Sample framework. The facebookProfile.getEmail() method does not display any information, the other methods, facebookProfile.getId() and getName() work perfectly.…
-
1
votes0
answers42
viewsServlet configured with annotations not loaded
I have the following class: public class SpringServlet extends AbstractAnnotationConfigDispatcherServletInitializer{ @Override protected Class<?>[] getRootConfigClasses() { return new…
-
1
votes1
answer1994
viewsUpload and files using Rest API
I am creating an end-point to upload a file in the format (.txt) but my entity does not consist only of the file. There are other attributes, so I need to send a json this way to the server : {…
-
1
votes0
answers48
viewsLimesurvey + Hibernate
I’m trying to develop an app that manages some surveys from the limeSurvey and for that purpose I am using Hibernate. So the whole problem is that the limeSurvey Give me the answers to each survey…
-
1
votes0
answers71
viewsjquery . load and . ajax return different values, why?
Hello, My problem is that using . load or . ajax on the same address, I get different data values. Here’s an example: <span id="charset"></span><br/> <span id="d_nome"…
-
1
votes0
answers47
viewsTLS 1.2 in Spring Java
Does anyone know how to configure for the Java application to use TLS 1.2 ? This configuration is done in the Java application or on the server ? I’m wearing Spring 3.1 Thank you…
-
1
votes1
answer388
viewsDuplicate 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 did the User and Roles class as follows: @Entity public class Usuario implements UserDetails { private static final…
-
1
votes0
answers26
viewsRedirecting to another sub-domain with added flash attributes (Redirectattributes) does not work
My question is related to adding attributes in the interface RedirectAttributes. I’m adding two attributes flash redirecting, but redirecting does not just change the URI, but the sub-domain as can…
-
1
votes3
answers419
viewsWhat is the best strategy to load and persist large volumes of data with Spring?
I need to perform a function in a Spring and Hibernate project, to which I must update some information from all records of my table. The idea is to load the records to the application, process the…
-
1
votes0
answers141
viewsSpringsecutiry and JNDI Authentication Problem
I have an authentication problem when I add the datasource in my project, it happens that when trying to login the authentication is performed but not the transition to the post-login page. I use…
-
1
votes0
answers46
viewsSpring MVC Neither Bindingresult nor Plain target Object for bean name 'contract'
I have a "list.jsp" page that renders the list of a certain entity. I was asked to create a search form within this page: <form:form role="form" commandName="contrato"…
-
1
votes0
answers97
viewsError passing request attribute to angular directive
I have to pass an array of objects to an angular directive, but I have the error below. How do I resolve ? angular.js:12330 Error: [$parse:ueoe] Unexpected end of expression: [{…
java angularjs spring angularjs-directives attributesasked 8 years, 8 months ago Mayllon Baumer 586 -
1
votes1
answer580
viewsHow to send an object between controllers via Redirect
How to send an Object through redirect between requests? I performed tests trying to send the object through the model, but without success. Follows the code: @RequestMapping("removeResultado")…
-
1
votes0
answers34
viewsHow to get the name of a section that contains a String
The code serves to get all the sections in the YML file, so far it is working, but I do not know how to get the section that contains the name "So-and-so", for example: Grupos: Usuário: pessoas: -…
-
1
votes1
answer338
viewsNo serializer found for class sun.security.util.Objectidentifier
I have the following problem: Error: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class sun.security.util.ObjectIdentifier and no properties discovered to…
-
1
votes0
answers73
viewsIllegalargumentexception when deploying Spring Boot application in Weblogic
I am not being able to successfully deploy my Spring boot 2-based application to a server running Oracle Weblogic 12.1.3 due to this error: weblogic.application.ModuleException: null null at…
-
1
votes1
answer1169
viewsError Creating bean with name 'cargoDaoImpl': Lookup method Resolution failed; nested Exception is java.lang.Illegalstateexception:
I’m trying to move up my spring project but get the following error. 15:17:43.079 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []…
-
1
votes1
answer359
viewsVisitor counter using Spring Boot
I have a project of Mangas using Spring Boot with Angularjs and, I wanted to implement a counter of views, accesses, for each visualized manga. So I could classify the Manga in Category of most…
-
1
votes0
answers46
viewsApplication does not starta struts2 and spring4 listeners
I’m using struts2 + spring4 server-based jboss 7.1 on my application. As reported in the title, I’m not getting up the application because the listeners They’re not being squeezed. Someone can tell…
-
1
votes2
answers2457
viewsHow to use the controller in a java application
Staff I am starting in programming and would like to take a question that does not want to shut up, how to use the controller correctly whether it is being used in a design Pattern model or even in…
-
1
votes2
answers452
viewsHow to run a Timer class (always) on deployment?
I have a non-web project and I will turn it into a web project using Spring MVC. Today in my method static main of my main class, I create it here: Exec.principalTimer = new Timer();…
-
1
votes1
answer380
viewsRelationships JPA Spring Boot Rest Fetch Eager
I’m with an application that serves a service json Rest (not quite a Rest, but okay). The application uses Spring Boot to run, use the Pagingandsortingrepository. The problem is that in serving an…
-
1
votes0
answers81
viewsHow to select a runtime class based on a Requestparam using Spring MVC?
Let’s say I have the following @Restcontroller in my code that uses Spring MVC: @RestController public class Exemplo { @RequestMapping(value = "exemplo", method = RequestMethod.GET) public…
-
1
votes1
answer28
viewsIs it possible to make conditional injections with Springsecurity?
What hint would you give when for example a user cannot have access to an X object? For example: URL: /student/{id} The user who is HEADMASTER of a school has access to the profile of all students…
-
1
votes1
answer1447
viewsDesign Patterns in Spring Boot projects
In the last 12 months I have worked and studied to learn how to create REST Apis with Spring boot, before that I worked with php MVC programming to create web systems and now in this my "migration"…
-
1
votes2
answers601
viewsUnable to build Entity manager Factory ( Hibernate JPA )
I am trying to make a connection with Hibernate and JPA, but when trying to create the connection or persist some data it executes the following error: Dec 04, 2018 2:02:45 pm…