Mapper method 'createTable' (interface ssm.dao.UserDao) attempted to return null from a method with a primitive return type (void).
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC
"-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="ssm.dao.UserDao">
<select id="selectUserByName" parameterType="java.lang.String" resultType="hashMap">
<![CDATA[
select * from user u where u.name = #{name}
]]>
</select>
<select id="createTable" statementType="STATEMENT">
<![CDATA[
create table ${value} (id integer,name varchar(20))
]]>
</select>
</mapper>
public void createTable(String table){
getSqlMapClientTemplate().update("createTable","abc");
}
出错,我怎么样修改配置文体才能让他不返回值啊