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
votes0
answers55
viewsJava Spring, error authenticating with active Diretory
Hi guys, in my company we implemented an active Diretory environment, and we were asked to develop an application that authenticates there, the environment is already created and the guy from the…
-
1
votes1
answer528
viewsThymeleaf fragments are not inserted
Hello. I am trying to make a simple import of a code snippet via th:insert from Hymeleaf, but something is not going well. From what I read in the documentation, I don’t think there’s anything wrong…
-
1
votes1
answer93
viewsSecurity rules not recognised by Thymeleaf
Hello. Despite defining the rules for spring security and calling in html in an apparently correct way, permissions are not recognized when running the browser. A user without permission…
-
1
votes1
answer1300
viewsCustom Json Spring Receipt
Hey, guys. All right? Currently in my system I am mapping the objects in a Spring standard way, but I would like to do a custom mapping: Current controller @RequestMapping(value = "", method =…
-
1
votes1
answer483
viewsSpring/Jackson Json - Problem in deserialize
This question is a continuation of another question, a user answered found the solution to my other question (Custom Json Spring Receipt), but I’m now having trouble mapping using Jackson. I want to…
-
1
votes1
answer662
viewsSpring boot test - Junit
How do I resolve this problem and run the Junit test on Spring boot? @RunWith(SpringRunner.class) @SpringBootTest @ActiveProfiles("test") @ContextConfiguration(classes = { CategoriaTest.class,…
-
1
votes0
answers60
viewsTwo Jboss servers. Start and one not. Same configuration
I have two servers that run Jboss with the same parameters for the same application. Although the log clearly indicates the error, I do not understand why one server works and the other does not. It…
-
1
votes1
answer63
viewsError Opening a Maven Project
Every time I try to import some Maven/Spring project gives me this error, some error in build 3.0.1. Does anyone know what might be? I am using a Macbook Pro (version 10.13.6 (17G65)) macOS High…
-
1
votes0
answers94
viewsHow to initialize Hibernate with Reflection
Hello, I need to initialize a list using Hibernate.initialize(list) within a Generic DAO. User Model @Entity public class Usuario { @Expose @ManyToMany(cascade = {CascadeType.PERSIST,…
-
1
votes1
answer809
viewsHow to map an html page in Spring MVC
I have a Spring MVC project that will provide the Rest service to the front-end. But when creating a page . html the project does not recognize it and always from 404. Is there any configuration I…
-
1
votes0
answers30
viewsHow to handle XML content using Spring MVC?
I need to query data in xml format using SOAP and write this data to the oracle database, how can I do this using Spring MVC?
-
1
votes0
answers133
viewsHow to apply filters to database queries on all requests
I am developing an application using Spring Boot and Spring Data JPA that will work similarly to a blog. In this application there are three different types of user and each user will belong to…
-
1
votes0
answers217
viewsHow to close connection like Jparepository and Spring Boot
Hello, I am working on a project using Spring Boot and am using Jparepository. I need to close the connection after running a bank operation, for example: query - findAll(). I know it may seem…
-
1
votes1
answer1978
viewsHow to upload a Spring Boot project to a Glassfish or Tomcat server
I can run the application normally by the main class with 'Tomcat Embedded' as dependency. However, when trying to run the application on some server the Eclipse IDE itself informs that the…
-
1
votes1
answer3037
viewsError spring boot when connecting to mysql
I created a test project by Spring Tool Suite to create a REST server that will connect with a local mysql database, when I start the application it error when trying to connect with mysql:…
-
1
votes0
answers218
viewsHow to make a POST with an Httpentity in the correct format?
Good morning, I’m performing a POST for a API using the HttpEntity of Spring, but I’m not sure if the POST that I’m performing is being done in the right way, and I’m having mistakes in creating a…
-
1
votes2
answers735
viewsMultiple Databases with Spring Boot
In my application, customers have their own database and I am developing a REST application, with Spring Boot, from which I need to configure Datasources to connect to databases, according to a…
-
1
votes1
answer871
viewsWhat is the difference between Resttemplate for Spring boot Feingclient?
I came across a question: What is the difference between the RestTemplate (I never implemented) and the FeingClient (I’ve already implemented)? I realized that the two have the same or similar…
-
1
votes1
answer180
viewsSelenium perform task to the end
In tests with Selenium, running by Eclipse, when I run several at the same time. Errors happen: First, does not finish running the task opens another browser. Starts running the second test without…
-
1
votes2
answers380
viewsIntegration between Spring MVC and JPA
I’m trying to integrate the Spring with JPA but so far I have not had success in this configuration. One of the doubts is whether I can configure the bank through the spring-context.xml. Follow the…
-
1
votes1
answer1615
viewsAjax Request for Controller Spring
I am developing a system with back-end in Spring (Spring Boot) and front-end with HTML, CSS(Bootstrap) and Javascript(Jquery). I’m having trouble putting together an ajax request. Follow the Spring…
-
1
votes1
answer524
viewsWhat does a SNAPSHOT version mean?
A version SNAPSHOT would be similar to a BETA version? Work with Maven and by default he creates the Wars files like MeuProjeto-0.0.1-SNAPSHOT.war. If my version is not yet a version 1.0.0 what is…
-
1
votes0
answers51
viewsIntegration between Springsecurity and Springdata to use Spel
Good afternoon I am creating a routine where I need to use Spel to access data from the logged-in user (Authetication) directly in Springdata @Query, I followed the Springdata tutorial to perform…
-
1
votes1
answer19
viewsError trying to use AVG in @query Spring
When trying to perform a query to return the average score with spring null error appears. When I test without avg(a.note) it returns the data correctly. @Query(value = "select new…
-
1
votes1
answer149
viewsConfiguration file
I have an app web (war) legacy where various environment settings are arranged in XML files, e.g.: the BD path is in the context.xml <Context path="/Base" reloadable="true"…
-
1
votes1
answer86
viewsSSL configuration in Microsoft Azure for Java projects running on Tomcat
I need to make an HTTPS configuration in a java project on Azure. In the project I use spring security and Tomcat. I searched on many sites how to make the configuration but found different…
-
1
votes1
answer123
viewsIncorrect date arriving
I have the following problem here: I have a request that I make by ajax, and send a date for it, the java receives and saves in the bank, but the date that arrives in java is different from the one…
-
1
votes1
answer86
viewsCharacter difference enconding Charset Difference using JPA but not with Prepared statement
I have an application using spring boot + oracle (via Tomcat datasource). Using spring-data, a simple query in a table returns encoding problem characters. This same application, in a very specific…
-
1
votes0
answers8
viewsSpring MVC - Make JSP available
I have a simple Spring MVC application and the html pages are correctly display, altought, when i Try to use JSP pages, it does not work (error Displaying page like view file does not exist). I saw…
-
1
votes2
answers269
viewsProblem with AJAX request return
I am making a request in ajax but the result does not update, it is as if it were in some kind of cookie. function AtualizaTotalItensNota(idFornec) { $.ajax({ type: "GET", dataType: "text", url:…
-
1
votes1
answer430
viewsError Creating bean with name 'springSecurityFilterChain' defined in class path Resource
org.springframework.Beans.factory.Beancreationexception: Error Creating bean with name 'springSecurityFilterChain' defined in class path Resource…
-
1
votes1
answer57
viewsTimeout configuration for a single call in Spring Boot
It is possible to set timeout for a single specific Controller class in Spring Boot, how can I do this? Because using the property spring.session.timeout it arrow the timeout for the application as…
-
1
votes3
answers218
viewsProblem with JS/Jquery/JSON/AJAX
I’m having some problems with JSON in my application and wanted to see if you can help me, please. The situation is as follows: I have a method in my controller that searches some items:…
-
1
votes0
answers260
viewsIntegration test send e-mail
Today I have a system, which sends several emails. Many settings and upload rules. I need to add about 50 new rules, new emails Time formats with attached file, images and other "cositas" more. Like…
-
1
votes1
answer404
viewsThe import org.springframework.web.bind.Annotation.Crossorigin cannot be resolved
I’m not managing to import the Annotation @CrossOrigin. ide does not find the necessary package despite all the others Annotations are working normally. The error that occurs is this: The import…
-
1
votes0
answers99
viewsSave a jsp form
When you save a form, that is, you go to the Spring Controlle class, I need the same to make an exception, to warn the user that some field is required. In JSP it looks like this: <c:if…
-
1
votes0
answers240
viewsUsing Spring MVC to upload a Google Hard Drive
I have a jsp page with the following code that uses google Charts and shows the Graphics on the jsp page. When I use a Servlet as a controller it works perfectly. <%@page contentType="text/html"…
-
1
votes0
answers57
viewsDoubt with JSP - Message
I am in need of help, to display a message through fmt:message. The situation is as follows. I have a form that is submitted via $.post. In the controller that receives this request, I do a…
-
1
votes1
answer249
viewsWhat is the best location to provide a property file?
Has a Java project on Spring Boot which connects to the database. Consequently I have an application.yml properties file with the database connection settings. In this file of properties the…
-
1
votes0
answers220
viewsWhen making a DELETE request, the org.springframework.web.Httprequestmethodnotsupportedexception error is returned
When making a request to delete a user the following error is returned: { "timestamp": 1500142937327, "status": 405, "error": "Method Not Allowed", "exception":…
-
1
votes1
answer284
viewsRead Javascript on all Foreach items
Guys, I have a foreach that loads several inputs, and I want my javascript code read on all inputs generated by foreach, someone can give me a tip on how to do ? Example <c:forEach…
-
1
votes1
answer323
viewsPopular dropdown list with Spring MVC Controller database
I’m having trouble finding a way to popular a dropdown in the Controller and move on to the view. Because this way I’m doing when I enter the screen to update the dropdown does not return with the…
-
1
votes1
answer470
viewsDocker Compose Link and Network
I’m using Docker Compose to climb my containers in the Docker, the problem I’m having is making the link between a container and another. My Docker Compose: version: '3' services: DB: image:…
-
1
votes1
answer277
viewsWidfly 9.0.2 is not initializing in debug mode
In the controller of my application, I have a method with a POST request, before it was a void method, with no return, but I changed so that it already returned the generated records, after this…
-
1
votes1
answer685
viewsSpecial character error in Java
I’m having a problem here and I haven’t found anything that would solve on the internet, if you could help me, I would be extremely grateful. Well, come on, I have a java web application that uses…
java postgresql spring spring-boot character-encodingasked 7 years, 3 months ago GiovaniOliveira 41 -
1
votes0
answers119
viewsAngularjs query data Sending object to filter
I have a WS written in Spring that takes an object as a filter and returns a data list. in my Java Service: @ResponseBody @RequestMapping(value="/{filtro}",method=RequestMethod.GET) public Datatable…
-
1
votes0
answers211
viewsSpring security set Token on Headers
I configured Cross to accept the request in Angularjs, but the answer comes without the token. How to add token to Response? Spring security: @Override protected void configure(HttpSecurity http)…
spring spring-boot spring-security cross-domain microservicesasked 7 years, 3 months ago Aderbal 119 -
1
votes2
answers201
viewsJson created incomplete
Next people had a loop problem in my project when creating Json the application looped. I was able to solve the loop problem with the @Jsonmanagedreference, @Jsonbackreference annotation. However,…
-
1
votes1
answer383
viewsBlock navigation until token login is validated, using Spring, Angularjs and Javascript
I have a question.. I have implemented a login validation using JWT. It works all right, generates the token within the requests. However, on the login page, if in the URL I put the next page the…
javascript angularjs spring spring-mvc spring-bootasked 7 years, 2 months ago Eduardo Krakhecke 935 -
1
votes1
answer66
viewsNullpointerexception at return of method
I am making a method to search the user logged in to the database. I’m having a NullPointerException in the return of this method @RequestMapping(value = "/usuarioLogado", consumes =…