Category "spring-boot"

Object Mapper to implement not null

How to implement below :- fail if name/id/sal isnull or missing/or has null value then string->pojo should fail.How can i implement ? Actual json is nested .

How to copy a file from SFTP to S3bucket

I am new to coding.I wants to copy a file from SFTP server to S3bucket.I don't want to copy it in to my local..I am trying to do this in Java springboot.Is ther

How to improve message processing faster in spring boot and MQ app?

Got a small spring-boot messaging app that receives a message from the queue and inserts/updates a row in DB2 table. Noticed this week it received lot of messag

Update foreign key in Spring Boot with a POST request

I am trying to make a put request using Postman with Spring Boot. The idea is to give the subscription object a foreign key value with a put request or post. I

How to solve thymeleaf template parsing error

I'm trying to present a html to screen but I'm getting template parser error from thymeleaf. Here is my code and error: index.html: <body> <h2>M

Cannot register alias 'springSecurityFilterChain' for name 'org.springframework.security.filterChainProxy'

Getting this error when I start my application. WrapperJarApp Error: Caused by: java.lang.IllegalStateException: Cannot register alias 'springSecurityFilterChai

Spring Boot context-path doesn't return index.html in tests

I want to test that GET "/" returns index.html (Which is the case in a build) but when I try that in an integration test I get 404 NOT FOUND. Here's how I test:

Jwt + Spring Interceptor + Custom Annotation versus Spring Security [closed]

Currently, we have a spring boot REST application connecting to a mysql database in which we have a table named "User" with several fields. Am

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