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
answer426
viewsRendering map using spring boot API
I am developing a web application using spring boot and am trying to implement a map on the main screen of the application. The latitude and longitude are being picked up in the mobile app, so I’m…
-
0
votes0
answers1197
viewsSpringframewok Httpmediatypenotsupportedexception: Content type 'text/Plain;charset=UTF-8' not supported
I’ve been trying to find solutions to this mistake and I can’t find. Error: 2018-07-24 16:44:50.541 WARN 25695 --- [nio-8080-exec-2] .w.s.Defaulthandlerexceptionresolver : Resolved Exception caused…
-
0
votes1
answer748
viewsSpring Authenticationmanager that could not be found
I’m trying to set up the Oauth2 in my study application only it is returning me an error that I am not able to solve required a bean of type…
-
0
votes2
answers260
viewsSpringmvc controller does not redirect to another controller
No Controller Logincontroller.java @Controller @RequestMapping("/login") public class LoginController { @Autowired private UsuarioRepositorio usuarioRepositorio; @RequestMapping(method =…
-
0
votes1
answer111
viewsNumber(3.0) field in Oracle database for Java
I have a table in an Oracle 11g database with a field of type NUMBER(3,0) In a Spring project, I own the following: @Repository public interface TipoPropriRepository extends…
-
0
votes1
answer62
viewsHow to use websocket in an Aws Beanstalk hosted application
I have a system running on aws Beanstalk, is a Java application with architecture Tomcat + Spring. I’m finding it difficult to make the websocket work, that locally is functional. The websocket…
-
0
votes1
answer232
viewsWhat does the addViewControllers method of the Webmvcconfigurer Spring boot class do?
I am using Thymeleaf on the front end of the application and have the following configuration class, with the addViewControllers method in question : @Configuration public class WebConfig implements…
-
0
votes0
answers175
viewsError when creating tables with relation and JPA
Good morning, I’m trying to create two tables with flyway+Spring+Sqlserver+JPA, very simple thing just to pass the time and I’m having an error that I can’t understand because running the same…
-
0
votes1
answer178
viewsHow do I set the call timeout of an EJB function?
At the end of a service my project has a function that takes an EJB from another project that is installed on the same server, and accesses one of its functions. My function that takes the EJB and…
-
0
votes1
answer180
viewsQuery with multiple Ids and date with JPA and Spring via Restapi
Good morning, I’m trying to set up a query with Spring JPA and Rest where I can insert several Ids and initial and final date. The query works if I only put an ID with the dates. The code is like…
-
0
votes1
answer3380
viewsTake value from an application.properties property - Spring Boot
I’m a starter at Spring Boot. I have a project in Spring Boot q has a application.properties and inside there is a property with a value (spring.datasource.username=user) and I want to take this…
-
0
votes1
answer130
viewsKeyholder.getKey() can return null - Spring Boot Jdbctemplate
The thing is, I’m a beginner in Spring and I’m doing a method that will insert a new row into a database table and this method will return the Id new that was generated by the Bank, I am doing this…
-
0
votes1
answer1597
viewsHTTP Status 400 - Bad Request - Spring MVC
When trying to call a Controller method this returns the error below: HTTP Status 400 - Bad Request Type Status Report Description The server cannot or will not process the request due to Something…
-
0
votes1
answer88
viewsService in Jboss does not log and does not work properly
I have a service that is deployed inside my Jboss EAP 6.4, when I try to access the end-points of the service is returned a replacement, along with the status 500, but nothing is logged in the…
-
0
votes0
answers631
viewsSpring Data jpa save() method does not work, returning an object with nullid
Personal I have Rest Api developed with Spring, Hibernate and springboot, I am with a problem when making a post call to persist the data of a particular client, does not generate any error and also…
-
0
votes1
answer202
viewsSearching more than 1 field with Findby in spring mvc
I have this repository: public interface RepositorioUsuarioPermissao extends JpaRepository<UsuarioPermissao, Long> { @Query("SELECT u FROM UsuarioPermissao u WHERE u.id_seletivo = ?1 and…
-
0
votes1
answer88
viewsError while Logging in using Spring Security
Recently I started using Spring Security to make the security of my application, the problem is that when I click on the button to log in the correct one was to take me to the application’s home…
-
0
votes1
answer323
views2 form on the same page with Spring mvc, Thymeleaf, anyone know how?
This Physician registration screen, then I created this modal for the user to register specialties. @GetMapping("/cadastro") public ModelAndView preSalvar(@ModelAttribute("medico") Medico…
-
0
votes2
answers261
viewsMultithread and Data Competition + Spring
I am rewriting a software that serves as a communication bridge between two services. Communication is done via sockets. The environment has high data competition, especially a list of active…
-
0
votes1
answer35
viewsAuxiliary tablet with composite PK
I have a supplier table: @Entity(name = "tbl_fornecedor") public class Fornecedor extends PessoaJuridica implements Serializable, Desativar { private static final long serialVersionUID = 1L; @Id…
-
0
votes0
answers50
viewsObject Link
I am developing an application and came across the following "problem": @RequestMapping("/pagamentos") public ModelAndView pagamentos(FormaPagamento pagamento){ ModelAndView model = new…
-
0
votes1
answer145
viewsJSON to POJO returning Null
I’m making a request for the site’s API swapi and whenever I do the conversion from JSON to POJO, I get the NULL return RestTemplate restTemplate = new RestTemplate(); String fooResourceUrl =…
-
0
votes2
answers101
viewsScheduling problem for sending notices by e-mail Spring and Javamailsender
Good morning, I am using spring with Scheduled, before I used Quartz but as I uploaded the version of spring I decided to abandon Quartz since the first option was enough to meet my need. In short,…
-
0
votes2
answers120
viewsSpringboot - @Autowired null in configuration file
I’m starting a project with springboot and need to access some properties of application.properties because of the profiles. But when I inject the configuration class, it always comes null, I’ve…
-
0
votes1
answer50
viewsJava spring: error removing model listing object
I am having problems in the construction of the relations between the models of a project, I have a document that has several subcategories. When I save a document I want to do a validation, which…
-
0
votes1
answer649
viewsJava Spring: create a file and offer this for download via api
Hello I have some documents saved in the database (with equivalent templates, they are not .txt files or anything), I would like to create . txt and . Md from the database, searching for the…
-
0
votes1
answer63
viewsQuery returns subclasses in Spring
I’m having trouble mapping the classes of a spring project I’m working on. I have the super class called Itempauta and the subclass Homologation. Pai Class @Data @Entity @Table(name="item_pauta")…
-
0
votes1
answer1226
viewsUnique index or Primary key Violation
I am getting the error below when trying to create a new item in a table, in this table I have some previously added items. 2019-03-17 00:05:09 WARN o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error:…
-
0
votes2
answers143
viewsStored Procedure Doesn’t Deliver Results You Should
-I am very new in SQL, Spring & Java, I am trying to set the results of a list that returns in a Query I created -this query returns a list with the referenced object -the parameters are all…
-
0
votes1
answer91
viewsHow to start two equal services in Tomcat, but with different Final Ames
Basically I have a service running on Tomcat, I would like to upload a copy of it with another final name in Tomcat. The problem is that there is some limiter that is not the end that prevents me…
-
0
votes1
answer266
viewsSpring Error with JPQL: Unsatisfieddependencyexception
I’m doing a REST API in Spring Boot and I’m having a hard time bringing the results of a Repository query. I have this MER, which is a small part of my bank: I built these two entities in Java,…
-
0
votes1
answer128
viewsSpring project not saved in Mysql
I created a project with Spring boot and cannot save data in Mysql. No error message is displayed. Spring creates tables, but does not insert data. User class package com.projeto.principal.entity;…
-
0
votes0
answers75
viewsHow to run two Websecurity classes in Spring
I have a project that performs authentications through JWT Token, and it uses Swagger, so I made a login and registration page to authenticate before entering Swagger, but I did not want to…
-
0
votes1
answer438
viewsHow to check if an Integer type parameter received in Spring is empty?
I have a method that will receive several parameters. But the parameters are set to required = false because I don’t want it to be mandatory for them to be informed and I also didn’t enter a default…
-
0
votes1
answer508
viewsHow to return validation errors of subobjects, attributes(objects), lists, to spring?
Today I can validate attributes errors of my class that are not complex objects (other objects of my model that are related to it), but what happens is that the "validation bean" validates the…
-
0
votes2
answers162
viewsFailure in dependency injection
I’m having a problem in a JSF test, basically I have the entity, the service and the view, I couldn’t find anything that would help me solve. In view, I want to call my service by Managedproperty…
-
0
votes1
answer163
viewsFixture-Factory lib, Index 55663 out of Bounds for length 2187
I’m ultilizing the lib Fixture-Factory to create templates for my tests, but working with it, I got the following error! Index 55663 out of bounds for length 2187 those are my models: Cityprop:…
-
0
votes0
answers133
viewsSet @Bean Datasource at runtime in Java Spring Boot
In the Java with Spring Boot framework the @Bean are normally automatically set, including the DataSource which is the main issue, but also has as settar the @Bean manually by code in the case of…
-
0
votes1
answer428
viewsSign up for Spring Boot
Good afternoon, you guys. I’m having difficulties to implement my Register on Spring Boot. I’m willing to do the method in three ways(if,else if,else) that if it is all right to register, that if…
-
0
votes1
answer105
viewsImplementation of the Responseerrorhandler Interface (Spring)
Hello. I’m trying to override the Responseerrorhandler interface so I can return the entire request (status code, body etc.) in case of any answer other than 2xx. I noticed that the default Spring…
-
0
votes3
answers229
viewsUpload with Thymeleaf
Good afternoon, you guys, I am with a difficulty, I am developing a simple system, it reads a csv file and imports to a database, I risked using Thymeleaf, I found some tutorials but I could not…
-
0
votes2
answers4265
viewsError executing . JAR "no main manifest attribute in nutriclinweb-api.jar"
I am using intellij (Spring project), I have taken the right steps to generate . jar, I have tried it in many ways. Follow pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project…
-
0
votes1
answer18
viewsHow to validate which transaction mode is being used? (Aspectj / Proxy)
At the moment, we are building a module in Spring Boot that uses a legacy settings, built on top of Spring MVC and has many configurations (XML and classes). After a few weeks, we were able to make…
-
0
votes1
answer110
viewsInput value is the same throughout foreach
I’m trying to build a satisfaction survey where a list of questions appears for the customer to inform the note and by clicking include to save. I managed to ask for a question, but when there is…
-
0
votes1
answer325
viewsCORS not being applied - Spring Boot
I have a Spring Boot configuration class to handle CORS. This class theoretically allows all origins, all methods and with all headers. @Configuration public class CorsConfiguration implements…
-
0
votes1
answer101
viewsREST API works locally, but does not work on TOM CAT
I am uploading a Rest API locally and making requests normally with POSTMAN in this API, but when I upload this same API to Tomcat, it simply misses 404 and I don’t have access to any of the API…
-
0
votes1
answer169
viewsHow to sort my Java list alphabetically?
I have a Spring Framework project, and I need to alphabetize my list, and I have no idea how to do it. At first I managed to load the list, but it has to have that order. Please, how should I do?…
-
0
votes1
answer54
viewsProvided id of the Wrong type for class - [JPA] Embeddableid formed by another Embeddable
On the bench I have two tables called Table and Tabub. To Table is composed of a primary key, which is composed of 3 attributes. To Tabub is composed of a primary key, which is composed of 3…
-
0
votes1
answer185
viewsHelp with Spring jdbcTemplate
I created a class: package com.market.config; import javax.activation.DataSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration;…
-
0
votes1
answer46
viewsHelp with jdbctemplate / query / rs
Well I’m trying to give a select in the database to get the data from a String: final String queryPorLogin = "SELECT * from usuarios where login=? "; @Autowired private JdbcTemplate jdbcTemplate;…
springasked 5 years, 3 months ago Joao Spirit 101