Background: I have written a one-time tool to run as a non-spring boot application in one of the folder of Spring Boots. This tool calls a class from Spring boots application.
I tried : java -jar <jarName> <com.dummy.folder3.Mainpgm1> -u <username> -p <password>
This when calls spring boots class fails with "Invalid parameters; exiting without generation"
Folder structure:
com/
dummy/
<folder1>
<folder2>
<folder3>
Mainpgm1
Application
Any help
java -jar xxx.jar --username=xxx --passwd=xxx
@Compoment
public class Test {
@Value("username")
private String username;
@Value("passwd")
private String passwd;
}
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.