Category "spring"

Intellij "cannot resolve symbol" after installing spring boot

I've recently installed the plugin "spring boot assistant" into my Intellij. When I was trying to run an old java file that I've completed before, a lot of the

com.netflix.client.ClientException: Load balancer does not have available server for client: account-service

I am getting the below error when http://localhost:6161/customer/1001 calling the URL. I've taken a reference from the link: https://github.com/PacktPublishing

Spring no mapping found for HTTP request with URI[require.js] in DispatcherServlet

Ok the full error is WARNING: No mapping found for HTTP request with URI [/sequenziatore/$%7BpageContext.request.contextPath%7D/resources/js/libs/require.js] in

Spring Boot 404 when trying to load a HTML file using Thymeleaf

Like the title says, I'm getting the Whitelabel 404 error page when trying to access localhost:8080. Main class: package com.michaelLong.studentaddressbook;

Spring Interceptor is not compatible with @RepositoryRestResource

@Component public class TestInterceptor implements HandlerInterceptor { @Override public void afterCompletion(HttpServletRequest arg0, HttpS

Alerts or popup message boxes in Spring MVC

I am having a user add form userAdd.jsp. When I enter data and submit, I want to check whether the username field entered is unique compared with the databse.

Stack over flow Error occurring when an internal API called from spring-boot

A Spring boot web application running in tomcat server suddenly encountered a stack over flow error. The error occurred seems to be due to spring-boot recursiv

Getting following error while migrating Spring boot version from 2.1.6 to Spring boot 2.4

Getting following error while migrating my project from Spring boot version 2.1.6 to 2.4 No more pattern data allowed after {*...} or ** pattern element Code Sn

Get list of JSON objects with Spring RestTemplate

I have two questions: How to map a list of JSON objects using Spring RestTemplate. How to map nested JSON objects. I am trying to consume https://bitpay.com/ap

How to disable SSL certificate checking with Spring RestTemplate?

I am trying to write an integration test where our test launches an embedded HTTPS server using Simple. I created a self-signed certificate using keytool and am

org.springframework.beans.NotWritablePropertyException: Invalid property 'adminEmails' of bean class

I got stuck on this error given below: Stack Trace Apr 16, 2014 12:21:23 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions

Does application.yml support environment variables?

I tried using env variables in my application.yml configration like: spring: main: show_banner: false --- spring: profiles: production server: addr

Thymeleaf doesn't print list of objects (Spring JPA)

I have 5 different object of class Tour with some fields.I want that my main page shows this object with their fields. I wrote conrtoller: @Controller

postman post request json payload created and in return , response is empty with respect to spring boot project

**** I have created repository and autowired that to service class and created controller and autowired the service and and the sample code below same code i ha

Connecting to angular and springboot app from external IP

First of all, thanks for taking your time in reading this. I have a Spring boot backend running locally and angular app making calls to this backend to to do CR

Spring boot + thymeleaf in IntelliJ: cannot resolve vars

I'm writing a short web form application using spring boot and thymeleaf on IntelliJ, but it seems that in the html file, all fields in the model cannot be reso

add a serial number while performing iteration in thymeleaf

I have a senario in which i must perform iteration on a list and display result as a grid.Also include serial number in it. Now what I did for serial number is

How to enable auditing for MongoDB via Annotations in Spring

I wanted to enable some auditing features, such as @CreatedDate. I am not using Spring xml configuration file, so I cannot add mongo:auditing to Spring configur

Spring RestController - findById and findByEmail request method not working (Ambiguous handler)

I want to retrieve user's info either based on the ID or the Email. Below is the controller class I wrote: @RestController @RequestMapping("/users") public clas

Difference between save and saveAndFlush in Spring data jpa

I am trying to learn spring data JPA by testing some CRUD operation via JpaRepository. I came across two methods save and saveAndFlush. I don't get the differe