Error when starting microservice with Java jar

Alibaba cloud Q & A 2022-02-13 09:16:42 阅读数:188

error starting microservice java jar

Use java -jar The following error occurs when starting the micro service : image.png

Take the answer 1:

If jar Package based on maven Of , Can be in build Add assignment to configuration mainClass To configure , as follows :

Take the answer 2:

Check your startup jar Whether the startup class in the package is correct , Package path

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.