Since Spring boot 2.7.1, @LocalServerPort
(in the package org.springframework.boot.web.server.LocalServerPort
) is deprecated.
What can I use in stead of this annotation?
Import the below package in your spring boot 2.7.1. use @LocalServerPort for the below-mentioned package.
org.springframework.boot.test.web.server
You can read about it here in the 2.7.18's Deprecated LocalServer Java API doc.
Alternative to use: org.springframework.boot.test.web.server.LocalServer
Java API Doc
Once go through you query again for the SQL error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With