之前我的表名是user,现在改成带有前缀的表名: cpms_user,但是运行时报错
org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'cpms.user' doesn't exist
### The error may exist in file [F:\java\javaProject\cpms-java-springboot\target\classes\mybatis\mapper\UserMapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT * FROM user where user_name = ?
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'cpms.user' doesn't exist
; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'cpms.user' doesn't exist
请问这个带有表名前缀的,mybatis需要怎么配置呢
SELECT * FROM cpms.user where user_name = #{name} (X)
SELECT * FROM cpms_user where user_name = #{name} (O)