SpringBoot Values doesnt gives data
im trying to use the @Value for some of my strings in SpringBoot, when i set the @Value the string doesn’t get the data, i don’t know if i have to make a principal configuration or something that im forgetting (im new in springboot)
{ “type”: “about:blank”, “title”: “Not Found”, “status”: 404, “detail”: “No static resource .”, “instance”: “/” }
Quando vou acessar a pagina de login e dou o o login, da o erro: {
“type”: “about:blank”,
“title”: “Not Found”,
“status”: 404,
“detail”: “No static resource .”,
“instance”: “/”
} sem o erro era pra eu ir pra pagina do authorization code
403 Error code, when i send request to the server with styles enabled in html page
I use Spring Security, i am authorize with ADMIN_ROLE on page. I have “lock user” button on this page and when i press the button, request sends and i get 403 error. Page loads styles from file style.css. And when styles enabled i get error, when i disable styles, i don’t get error. Who can help me with it?
Use of environment variables in Java with Spring Boot
I am trying to use external environment variables in my Java App based on Spring Boot.
Pageable Spring Boot does not work correctly
I have a problem with my pagination using Spring Boot, the problems are:
Iam having category class inside product class, when trying to use for loop and map it response DTO iam getting many outputs when i test the API
“public List<ProductResponseDTO> getallproducts() { List<Products> productsList= productRepository.findAll(); List<ProductResponseDTO> productResponseDTOS = new ArrayList<>(); for(Products p: productsList){ ProductResponseDTO productResponseDTO = new ProductResponseDTO(); productResponseDTO.setUuid(p.getUuid()); productResponseDTO.setName(p.getName()); productResponseDTO.setPrice(p.getPrice()); productResponseDTO.setImage(p.getImage()); productResponseDTO.setDescription(p.getDescription()); productResponseDTO.setCategory(p.getCategory()); productResponseDTOS.add(productResponseDTO); } return productResponseDTOS`; Iam having category class inside product class, when trying to use for loop and map it response DTO iam getting many outputs when i try […]
Intercept full and complete HTTP-traffic of a client-app
I want to get the complete traffic sent by a HTTP-request in the client itself.
Beginning from the “POST” to the last byte.
Duplicated properties from entity
I want to add an additional property to my entity (Quotations
) and tried that with this DTO:
Using Configuration Properties in static function
I have a Spring Boot application and want to call static
function in my @Services
which uses Configuration Properties. Say, I have a property class
Transform the type of an object
This is my entity: