I'm trying to just run some code in the Spring ApplicationClass before Spring starts up to make sure a TCP/IP server is running. If it's not running, the code will load it.
However, just putting that
Java code in the Spring Application main() method does not work at all.
So, what is required to run some pre-application start code in SpringBoot?
(or is it recommended to just JAR up that separate server start logic and run it on computer restart?)
The sites I looked at online were not clear.
Thanks in advance,
- mike