java - How to run a command line utility instead of WebServlet in Spring Boot -


I have a fairly standard spring boot app, we are in the stage of the demonstration of application testing. To do this, we have to prepare a large set of requested objects from a funny library. The end point uses protobufs, so they should be thrown into a file and saved for Jmeter. I would like to add some type of command line functionality to my application so that it can only generate performance test assets.

I have tried such things:

  java -cp targets / sm-reports-1.0.0-SNAPSHOT.jar com.blah.reportservice.AssetGenerator  

or

  Java-Dloader.main = com Blah.reportservice..AssetGenerator -jar target / sm-reports-1.0.0-SNAPSHOT.jar  

Optionally keeping the functionality in the main category None of these is going to work. Due to the architecture of the original project here in the company, a module style approach will be a ton of work.

Is there a good way to accomplish this or place? Do I switch on non-attackable configuration before heading to some flag or variable? In an ideal world, I might be able to run with some command line flags as above so that I can complete TI which I am looking for. Can someone help me in giving me the right directions in the docs or me?


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -