Why can I not publish Java Springboot webservice to webapp?

Cottrell, Lee 0 Reputation points

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.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
353 questions
{count} votes