会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
remix_alone
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
25
下一页
2022年3月23日
Roam——快速编写JSON
摘要: {"success":true,"code":20000,"message":"空间图片添加成功2","data":{"url":"http://teaculture-001.oss-cn-chengdu.aliyuncs.com/userSpaceImg/20220323/b948ab54f9be
阅读全文
posted @ 2022-03-23 02:33 remix_alone
阅读(56)
评论(0)
推荐(0)
2022年3月13日
Mybatis学习(五)——Mybatis与spring整合方法
摘要: 1. 部署包 2. 创建项目结构 mapper,service,controller,domain,config,utils 3. resource里创建spring-mvc.xml与applicationContext.xml与sqlMapperConfig-spring.xml 4. 编写spr
阅读全文
posted @ 2022-03-13 15:41 remix_alone
阅读(67)
评论(0)
推荐(0)
Mybatis学习(四)——Mybatis和Spring整合中applicationContext说明
摘要: Mybatis与Spring整合推翻前面的配置,使用applicationContext配置SqlMapperConfig.xml里参数 1. 使用SqlSessionFactoryBean对象配置 DataSource(数据源),configLocation(sqlMapperConfig.xml
阅读全文
posted @ 2022-03-13 15:27 remix_alone
阅读(151)
评论(0)
推荐(0)
2022年3月11日
Mybatis学习(三)——动态sql
摘要: 在mapper.xml文件中使用<where> <if test> <foreach>标签实现动态sql <where>和<if>标签 <where> <if test="(对象值)!=null"> .... </if> <where> <?xml version="1.0" encoding="U
阅读全文
posted @ 2022-03-11 19:16 remix_alone
阅读(27)
评论(0)
推荐(0)
Mybatis学习(二)——代理开发模式
摘要: 规则 Mapper.xml文件中的namespace与mapper接口的全限定名相同 Mapper接口方法名和Mapper.xml中定义的每个statement的id相同 Mapper接口方法输入参数类型和mapper.xml中定义每个sql的parameterType类型相同 Mapper接口方法
阅读全文
posted @ 2022-03-11 12:29 remix_alone
阅读(47)
评论(0)
推荐(0)
Mybatis学习——SqlSessionAPI
摘要: sqlSession.selectOne(String str) 参数: str:userMapper里nameSpace.id 返回值:T object 作用:获取结果集第一个结果
阅读全文
posted @ 2022-03-11 12:07 remix_alone
阅读(62)
评论(0)
推荐(0)
Mybatis学习(一)——配置MyBatis
摘要: 1. 坐标 <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.4.6</version></dependency> 2. Resource配置sqlMapperConfig.
阅读全文
posted @ 2022-03-11 11:49 remix_alone
阅读(91)
评论(0)
推荐(0)
Mybatis学习——Mybatis操作sql
摘要: // 1. 获取配置流 InputStream is = Resources.getResourceAsStream("sqlMapperConfig.xml") // 2. 获取sql会话工厂 SqlSessionFactory sqlSessionFactory = new SqlSession
阅读全文
posted @ 2022-03-11 11:43 remix_alone
阅读(60)
评论(0)
推荐(0)
MyBatis学习——核心配置文件层级关系
摘要: configuration配置 properties 属性 settings 设置 typeAliases 类型别名 typeHandlers 类型处理器 objectFactory 对象工厂 plugins 插件 environments 环境 environment 环境变量 transacti
阅读全文
posted @ 2022-03-11 11:37 remix_alone
阅读(65)
评论(0)
推荐(0)
2022年2月21日
Android——自定义组件和游戏开发(四)项目实战
摘要: 1. 显示一张图片 要求:显示不修改的尺寸和原尺寸(110,110) 2. 自定义画板 // 用Canvas ,Paint,Path:制作个人绘画板 public class MyPaint07 extends View { private Paint paint; private Path pat
阅读全文
posted @ 2022-02-21 00:10 remix_alone
阅读(45)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
25
下一页
公告