Category "spring-boot"

Column not found when running unit tests in Spring Boot

I have this problem when testing a JPA repository: Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column "CREATED_AT" not found; SQL statement: ins

Spring Config Server - No such label: master

I have a simple Spring Cloud Config Server which consume configuration from git server. ConfigServer bootstrap.yml : spring: application: name: config-

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

only one client consumed all message in kafka consumer group

There is 3 (node.js + kafka-node) client Following the tutorial, I made topic 'quickstart-events'. Topic: quickstart-events TopicId: oZC9g7FvTiOm-QIuPpyo

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

How can I easily cache Kotlin Objects in Redis using json via Jackson?

I have a Spring boot app written in Kotlin where I would like to enable caching in Redis. I'd like to have the objects stored as serialized JSON and ideally don

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

Spring boot where is my jar file

Spring boot makes it really easy to setup a simple app. But it takes me longer to actually get a jar file which I can upload to a remote server. I am using Inte

Spring boot - @Service class calling another @Service class

Is it fine to have a @Service annotated class calling another @Service annotated class? Or it is a bad practice? Eg.: @Service public class MyService { //

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

Heroku session unexpectedly dropped/created

I am running an application on Heroku. We have a staging site and a production site. We are attempting to move to a standard 0 tier database. I have successfull

unable to start embedded Tomcat when running Eureka Server

I am just starting with microservices and I want to creat a simple Eureka Server to do my Serviceregistry. For now I just want to run the server on localhost an

Enable HTTP2 with Tomcat in Spring Boot

Tomcat 8.5, which will be the default in Spring Boot 1.4, supports HTTP/2. How can HTTP/2 be enabled in a Spring Boot application?

Don't spring-boot-starter-web and spring-boot-starter-webflux work together?

When I start to learn the spring-webflux, I have the question about this component. I built a simple project, using maven to manage it. I addded the dependencie

Springboot stack-trace logging filter only from my packages

I'm using Springboot with the sl4j-api 1.7.2. Is there a way to filter out from stack-traces only the lines starting with my packages, or excluding from the log

Exclude @SpringBootApplication from component scanning

I have two classes marked as @SpringBootApplication under one directory: @SpringBootApplication public class FirstSpringBootApplication and @SpringBootApp