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 : com.xxx.xxx.Application




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. https://en.javamana.com/2022/02/202202130916404623.html