第一、调试报错:
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is com.dangdang.ddframe.rdb.sharding.exception.SQLParserException: Unsupported SQL statement: [CREATE TABLE hibernate_sequence (
next_val bigint
) ENGINE = MyISAM]
解决办法:ddl-auto: none
![](https://img.haomeiwen.com/i14405984/bd1c4e2b10fa9ed6.png)
第二、无法自动建表怎么办?
解决方案:
写schema.sql文件;
新建一个微服务,专门执行这个文件去完成建表;
网友评论