hibernate自动创建表报表不存在
在hibernate.cfg.xml配置了<property name="hibernate.hbm2ddl.auto">update</property>自动创建表,但是项目启动会报 table doesn't exists
可能原因是主键策略设置的是native

而类里的id类型是String

这个uid要换成Integer
在hibernate.cfg.xml配置了<property name="hibernate.hbm2ddl.auto">update</property>自动创建表,但是项目启动会报 table doesn't exists
可能原因是主键策略设置的是native

而类里的id类型是String

这个uid要换成Integer