我的组件生成策略是auto但是 为什么生成了序列 数据库是mysql
版本太高
<property name="hibernate.id.new_generator_mappings">false</property>
MySQL中主键自动增长设置为
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
表示听不明白你说什么