微信公众号搭建微网站,广东东莞房价,php网站开发多少钱,哈尔滨网站制作维护1、file—setting#xff0c;左上角输入template#xff0c; 2、在左侧栏找到File And Code Templates 3、中间选中Files 4、点击号#xff0c;添加模板 5、输入模板名字#xff1a;Name:mybatis-cfg.xml #xff08;name可以自定义#xff09; 6、后缀名extension#… 1、file—setting左上角输入template 2、在左侧栏找到File And Code Templates 3、中间选中Files 4、点击号添加模板 5、输入模板名字Name:mybatis-cfg.xml name可以自定义 6、后缀名extensionxml 7、在面板中间输入内容
?xml version1.0 encodingUTF-8 ?
!DOCTYPE mapper PUBLIC -//mybatis.org//DTD Mapper 3.0//EN http://mybatis.org/dtd/mybatis-3-mapper.dtd
mapper namespacecom.gblfy.system.mapper.TestMapperselect idlist resultTypecom.gblfy.system.domain.Testsselect id,name from test/select
/mapper
8、把enable live Template(激活模板)勾选上 9、点击Apply—ok 10、选中模板然后输入xml文件名字mybatis.cfg.xml