码迷,mamicode.com
首页 >  
搜索关键字:xml mybatis    ( 67178个结果
3.工厂bean
测试类: //测试工厂bean 单多实例 @Test public void test01(){ ApplicationContext context=new ClassPathXmlApplicationContext("503bean5.xml"); MyBean myBean1 = conte ...
分类:其他好文   时间:2021-06-15 18:27:08    阅读次数:0
MyBatis Plus 只插入只有自增id字段的表
mybatis plus技巧,插入数据时,怎么插入自定义的id信息,不走自增策略 在实体类中: @TableId(value = "id", type = IdType.AUTO) private Integer id; 改成 @TableId(value = "id", type = IdType ...
分类:其他好文   时间:2021-06-15 18:18:15    阅读次数:0
9.文件的下载和上传
文件配置 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins ...
分类:Web程序   时间:2021-06-15 17:56:45    阅读次数:0
mybaties核心配置文件的typeAliases属性配置
typeAliases配置 类型别名可以给 Java 类型设置一个简称。 它仅用于 XML 配置,意在降低冗余的全限定类名书写,因为书写类的全限定名太长了,我们希望有一个简称来指代它。类型别名在 Mybatis 中分为 系统内置 和 用户自定义 两类,Mybatis 会在解析配置文件时把 typeA ...
分类:其他好文   时间:2021-06-15 17:31:37    阅读次数:0
Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml
在Maven中打包web项目为war,报错...Error assembling WAR:... 发布时间2021-6-12 在项目的pom.xml中配置项目的打包方式war,打包时报错,提示找不到WEB-INF/web.xml 可是明明有啊!经过百度查询,有人说是webroot名字不对,应该是we ...
分类:Web程序   时间:2021-06-13 10:34:54    阅读次数:0
# springcloud-eureka-feign-mybatis-seata ### 整合步奏
springcloud-eureka-feign-mybatis-seata 整合步奏 1.下载seata-server,修改seate-server配置 2.client端(你自己的项目)拷贝seate-server中的file.conf, registry.conf 加入自己项目 3.数据源代理 ...
分类:编程语言   时间:2021-06-11 19:16:48    阅读次数:0
JAVA mybitis入门学习
mybatis使用小案例 添加mybatis依赖 <!--mabatis依赖--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.1</version> </depe ...
分类:编程语言   时间:2021-06-11 19:08:20    阅读次数:0
mybatis获取map中的key和value
低版本mybatis <foreach collection="mapInfo.entrySet()" item="item" index="index" separator=","> ${item.key} = VALUES ( #{item.value} ) </foreach> 高版本 <fo ...
分类:其他好文   时间:2021-06-11 19:06:24    阅读次数:0
SSM拆分模块,报org.springframework.beans.factory.NoSuchBeanDefinitionException
SSM拆分模块,报org.springframework.beans.factory.NoSuchBeanDefinitionException 这个异常的意思是,找不到bean,出现这个问题的原因有很多! 我这里是拆分模块时出现(将一个applicationContext.xml文件拆到各个模块中 ...
分类:编程语言   时间:2021-06-11 18:43:51    阅读次数:0
mybatis-plus 设置主键自增
在实体类中添加@TableId注解: @Data public class DxApplication { @TableId(type = IdType.AUTO) private Long id; private String name; private Integer sort; } 在navi ...
分类:其他好文   时间:2021-06-11 18:35:34    阅读次数:0
67178条   上一页 1 ... 9 10 11 12 13 ... 6718 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!