I have a jar utility do do some functionality. i am adding that jar as dependency to a maven application. it uses simple java. i wanted a class inside the jar to be run on application startup. how can we do that?
Create a new Object. com.example.Foo
inside JAR lib.
com.example.Foo foo = new com.example.Foo();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.