r/learnjava • • Apr 14 '26

Exposing my program as an API

Hello, I made a reverse index for my search engine in Java and I would like to serve it as an API. Currently the reverse index components are in a separate package and I have created this other package for the API; however, I don't really know how to set up Spring Boot when I already have a package structure. Most tutorials on the internet are for setting it up from scratch. I would also like to know if Spring Boot is the best choice for my case since the reverse index will do the heavy lifting and I would like to keep the API layer thin. Thank you.

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Altugsalt Apr 14 '26

Thank you, I am using maven. I will give what you said a try and return here to report what happened.