JDBC连接MySql不需要再配置noAccessToProcedureBodies

来源:互联网 发布:好听的淘宝优惠券名字 编辑:程序博客网 时间:2024/04/28 18:04

针对以下错误:

"User does not have access to metadata required to determine stored procedure parameter types. If rights can not be granted, configure connection with "noAccessToProcedureBodies=true" to have driver generate parameters that represent INOUT strings irregardless of actual parameter types."


不需要再配置noAccessToProcedureBodies=true了,更好的解决办法是:为连接MySql的这个数据库用户分配“获取存储过程元数据(MetaData)”的权限:

grant Select on mysql.proc to 'user'@%

0 0
原创粉丝点击