Category "spring-boot"

Springboot 202 with Apache Tomcat (TomEE)/8.5.6 (7.0.2)

I am trying to deploy Springboot 202 application on Apache Tomcat (TomEE)/8.5.6 (7.0.2). During deployment of generated war file(customotmmportal.war), I dont s

Spring Boot Creating endpoint for download logs

I created an endpoint in spring boot to download logs of the application: @Service public class LogService { public byte[] obterLog() { try {

Deserialize parent/child classes with different config with Jackson

I'm working on a Restful application with Spring Boot and I've defined my classes as below: class Organization { String name; } class Base { @JsonPrope

Is there "CASCADE ON UPDATE" functionality in Spring Boot for DB level?

How can I create CASCADE ON UPDATE funcionality Database level using Hibernate annotations? Similar to "@OnDelete(action = OnDeleteAction.CASCADE)". I don't mea

problem configuring CORSin spring boot and reactjs

After reading all the MDN docs on CORS, I am trying to fetch resources at a spring boot server at localhost:8080 from a ReactJS app at localhost:3000, yet i can

Spring Boot 2 preventing Tomcat 9 from shutting down

I am having an issue where a Tomcat server fails to shut down correctly when it has a Spring Boot web application. This causes issues with scheduled tasks and b

SpringFox version compatibility with spring boot and Jersey

Configuring Swagger UI for a Jerysey + Spring boot application is complicated due to common dependencies. Is there any documentation, that provides version comp

Set jwk-set-uri for Oauth2 resource server at runtime

I have a spring boot application which is configured as a oauth2ResourceServer in the Spring Security config. This configuration requires the following entry in

file from one node to another node?

I would like to add a database to it so that the information is stored.

Is it possible to make java project that use another library which implements AOP using aspectj mave plugin to use the annotations from the library?

I have java library that I created which implements AOP using AspectJ runtime and AspectJ maven plugin. The AspectJ point cut is getting triggered when I add th

Can I set readOnly false when I use findById with JPA

I have a problem with modifying data while setting database replication Before DB replication, I get data that I want to modify using repository.findById() and

Distinct and List of other column in postgresql

I am using postgres DB and i have table with two column name and sal . name Sal Raunak 10000 Raunak 5000 Rahul 500 Raunak 300

Not able to run Junit test with H2 database SpringBoot

I have a strange problem with my unit test.. My goal is to run test on a H2 database and not on my Mysql database.. Actually the strange thing is that when i cl

Found non-empty schema(s) "public" but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table

I know this has been asked previously but I am spinning in circles here.... I have a postgres 14 database and a Springboot application running flyway-db:7.13.0

CSRF throwing 403 only in cloud

The Configuration for CSRF works locally just as it should, however once it is deployed in a Cloud System i get a 403 for the Post requests. These are the essen

Combine @Component and @ConditionalOnBean into one annotation

I want to combine two Spring annotations into a single one. More exactly I want to combine @Component and @ConditionalOnBean into one annotation named @SubCompo

WebFlux Spring Boot @Transactional with reactive MongoDB

Does WebFlux Spring Boot @Transactional annotation work with reactive MongoDB? I use WebFlux Spring Boot with reactive MongoDB like: id 'org.springframework

Spring application.properties is grayed out with Spring Initilizr

I am new to spring and trying to use Spring Initilizr for my project. I am using the code that was generated by this tool after adding dependencies for 'Spring

How to deploy Spring boot and React application together on GCP App Engine?

I don't have any experience in deployment and trying to deploy Frontend and backend together. I am able to successfully deploy the spring boot application. I fo

Liquibase with Cassandra tableExists always comes back as false

I am using Liquibase for Cassandra and using the SimbaCassandraJDBC42 driver. I am using the tableExists in a precondition as shown <?xml version="1.0" encod