I was trying to start a Spring Boot service that had been correctly installed as a Windows service (verified in Task Manager). However, whenever I tried to start it, the service would immediately stop.
The issue turned out to be conflicting JDK installations - I had both JDK 17 and JDK 18 installed. Since my Spring Boot service specifically required JDK 17, I removed both versions, then did a clean install of JDK 17.
After a system restart, the service started successfully, and the problem was resolved.