flowable: #关闭自动部署验证设置 check-process-definitions: false #设置自动创建表为true database-schema-update: true database-schema: 你的数据库用户名2. 如果有使用druid连接池,在启动时会报下面错误:
Caused by: java.sql.SQLFeatureNotSupportedException: null at com.alibaba.druid.pool.DruidPooledConnection.setSchema(DruidPooledConnection.java:1187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:241) at com.sun.proxy.$Proxy139.setSchema(Unknown Source) at org.flowable.common.engine.impl.db.DbSqlSessionFactory.openSession(DbSqlSessionFactory.java:84)
查看Druid源码,当调用setSchema会无条件抛出异常。
public void setSchema(String schema) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
解决办法为:不使用druid连接池,将druid依赖和配置全部屏蔽掉,等flowable表创建好后再恢复回来。
3. 屏蔽掉druid后可能还会遇见这个错误:java.sql.SQLException: 不支持的字符集 (在类路径中添加 orai18n.jar): ZHS16GBK
引入依赖下面依赖就可解决。
com.oracle.database.nls orai18n19.7.0.0
然后再次启动就可以创建flowable的表了。



