skip to Main Content

Mysql – Springboot not creating database tables

i created my entity in springboot import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Table; @Table(name="users") @Entity public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String username; private String email; } i setted the database configuration in…

VIEW QUESTION

Spring Boot controller to handle invalid JSON

I have a Spring Boot controller that consumes JSON: @PostMapping( value = "/shipdetails") public ResponseEntity acceptShip(@RequestBody Ship ship, HttpServletRequest request) { shipService.checkShip(ship); return new ResponseEntity<>(HttpStatus.OK); } There is a corresponding Ship Entity: public class Ship implements Serializable { @JsonProperty("Name") private…

VIEW QUESTION

Error when doing flutter doctor –android-licenses

I'm trying to install flutter, but when i put "flutter doctor --android-licenses" in my cmd, i got this error : Erreur : LinkageError lors du chargement de la classe principale com.android.sdklib.tool.sdkmanager.SdkManagerCli java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled by a more recent…

VIEW QUESTION
Back To Top
Search