设置idea中的sqlmapconfig.xml模板以及xxmaper.xml模板_啊水水水啊的博客-爱代码爱编程
首先点击file:
点击Editor中的File and Code Templates:
点加号,新建代码模板,命名,设置文件样式xml文件,最后应用:
(1)sqlMapConfig.xml模板内容:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
</configuration>
(2)xxMaper.xml模板内容:
<?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="">
</mapper>