在使用
@GeneratorType(strategy = GeneratorType.IDENTITY)的时候发现会爆出Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2022-08-09 17:42:02.311 ERROR 15552 --- [ main] o.s.boot.SpringApplication...问题, 经查看才发现传的实体类并没有创建,待将注释之后改用
@GenericGenerator(name = "uName-generator",strategy = "increment") @GeneratedValue(generator = "uName-generator")
直接调用其方法