@Transactional 无效
@Transactional 无效 hibernate: naming: physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy database-platform: org.hibernate.dialect.MySQL5InnoDBDialect 这么写好像没效果呀 请问有人知道怎么回事吗?
@Transactional 无效 hibernate: naming: physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy database-platform: org.hibernate.dialect.MySQL5InnoDBDialect 这么写好像没效果呀 请问有人知道怎么回事吗?
2018-04-27
查看下表的DDL,看看引擎是不是
CREATE TABLE `girl` ( `id` int(11) NOT NULL, `age` int(11) DEFAULT NULL, `cup_size` varchar(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
修改下表的引擎试试:
mysql> ALTER TABLE girl ENGINE = InnoDB; Query OK, 2 rows affected Records: 2 Duplicates: 0 Warnings: 0 mysql>
举报