java.sql.SQLException: sql injection violation, syntax error, expect RPAREN, actual UNIQUE unique,问题已解决
报错信息
java.sql.SQLException: sql injection violation, syntax error, expect RPAREN, actual UNIQUE unique,
Caused by: com.alibaba.druid.sql.parser.ParserException: syntax error, expect RPAREN, actual UNIQUE unique
2020-03-24 19:30:09 com.alibaba.druid.filter.logging.Log4jFilter.statementLogError(Log4jFilter.java:152) ERROR: {conn-10001, stmt-20000} execute error. create table bss_sensitive_command (cmd_id varchar(32) not null unique, cmd_name varchar(50) not null, command varchar(500) not null, description varchar(100), is_regular varchar(32) not null, status varchar(1) not null, primary key (cmd_id))
java.sql.SQLException: sql injection violation, syntax error, expect RPAREN, actual UNIQUE unique, pos 70 : create table bss_sensitive_command (cmd_id varchar(32) not null unique, cmd_name varchar(50) not null, command varchar(500) not null, description varchar(100), is_regular varchar(32) not null, status varchar(1) not null, primary key (cmd_id))
at com.alibaba.druid.wall.WallFilter.check(WallFilter.java:592)
at com.alibaba.druid.wall.WallFilter.statement_executeUpdate(WallFilter.java:432)
at com.alibaba.druid.filter.FilterChainImpl.statement_executeUpdate(FilterChainImpl.java:2373)
at com.alibaba.druid.filter.FilterAdapter.statement_executeUpdate(FilterAdapter.java:2486)
at com.alibaba.druid.filter.FilterEventAdapter.statement_executeUpdate(FilterEventAdapter.java:327)
at com.alibaba.druid.filter.FilterChainImpl.statement_executeUpdate(FilterChainImpl.java:2373)
at com.alibaba.druid.filter.FilterAdapter.statement_executeUpdate(FilterAdapter.java:2486)
at com.alibaba.druid.filter.FilterEventAdapter.statement_executeUpdate(FilterEventAdapter.java:327)
at com.alibaba.druid.filter.FilterChainImpl.statement_executeUpdate(FilterChainImpl.java:2373)
at com.alibaba.druid.proxy.jdbc.StatementProxyImpl.executeUpdate(StatementProxyImpl.java:225)
at com.alibaba.druid.pool.DruidPooledStatement.executeUpdate(DruidPooledStatement.java:169)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:227)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:178)
at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:503)
at org.hibernate.cfg.Conf