0

I have a spring-boot web application and it doesn't contain any rest end points and it only reads data by using kafka consumer. So i want convert it to non-web spring-boot application and i want to add spring batch configuration to this application.

I try to set the below configuration to make non-web application.

spring.main.web-application-type=NONE

But i am getting the below error when i am running the application.


***************************
APPLICATION FAILED TO START
***************************

Description:

A component required a bean of type 'org.springframework.security.config.annotation.ObjectPostProcessor' that could not be found.


Action:

Consider defining a bean of type 'org.springframework.security.config.annotation.ObjectPostProcessor' in your configuration.

I would like to know what are the possible ways to convert spring-boot web application to non-web application.

And also i would like know is there any way to get info from /actuator end point after converting spring-boot web application to non-web application.

I tried 3rd suggetion in this document baeldung.com but i am unable get response from any api end point like from /actuator.

Mahmoud Ben Hassine
  • 28,519
  • 3
  • 32
  • 50
netajik
  • 196
  • 1
  • 4
  • 15
  • 1
    you will have to remove the spring boot web dependency as well from pom.xml – pratap Apr 08 '21 at 13:12
  • Does this answer your question? [Use Spring Boot Actuator without a Spring Boot Application](https://stackoverflow.com/questions/26913087/use-spring-boot-actuator-without-a-spring-boot-application) – Justin Mathew Apr 09 '21 at 06:03

0 Answers0