Why can I not publish Java Springboot webservice to webapp?
My students and I are having problems posting a Java SpringBoot web service to my pay as you go Azure subscription. We are following microsoft's directions from their learn.microsoft.com site. We keep receiving invalid target release: 17
This is my code https://github.com/leecottrellPTC/Azurepublish.git This is MS's code https://github.com/spring-guides/gs-spring-boot
The version of Java in the Azure CLI is Java 11. I have tried rebuilding my project locally to Java versions 8, 11, and 17. Each time, it runs on my local servers. When I republish it to Azure, I make the proper version choices in the wizard. I have tried Linux and Windows OS, and several tiers of pay. Each results in the same error.
The MS Link offers four different ways to publish a web service. I have tried them all with the exception of Docker. I do not have that configured.
Hi @Cottrell, Lee , we are sorry to hear that you and your students are having difficulties with publishing Java Springboot web service. Can you please share the full error message you're getting? Also please share a screenshot of how you're setting the java version in the wizard.
Sign in to comment
Sure, we got the post to work when we downgraded Spring Boot to version 2 and downgraded Java to 11. Here is the info you requested
We used four different methods from the MS learn page to attempt to publish. The final version was the Windows using Azure Portal. We set the Java Version in the wizard
Here is the complete error code we get.