Forum Stats

  • 3,782,431 Users
  • 2,254,644 Discussions


Spring Boot Rest API -Jar for Business logic

4234902 Member Posts: 2
edited Apr 20, 2020 3:36PM in Social Groups

Hi All

I am using spring boot project that act as a micro service (rest API)

I am using the same service for both online and batch process.

For online ,It should be called through rest api end points.

For batch it will be called from data flow in gcp.

So i have to create a business logic part as a jar(that contains spring supported annotation and jpa files) .

So the same business logic can be used in both online and batch mode.

ie 1 .While calling rest api ,this jar should be called from controller.

2.This jar can also call from data flow in gcp

Could any one help me.

Thanking you

Message was edited by: 4234902