日常问题记录
一条猫仔
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Navicat for Mysql报错处理
问题: Navicat 提示 Access violation at address ***(如004ECCF4) in module ‘navicat.exe’. Read of address ***(如00000048) 原因: 内存越界的问题,需要重新注册Windows的动态链接库 方法: 在cmd中执行以下语句 : for %1 in (%windir%\system32\*....原创 2018-11-20 14:43:41 · 692 阅读 · 0 评论 -
tomcat中修改浏览器标签图标
修改浏览器标签栏显示的图标的两种方法: 1,修改tomcat目录下webapps/ROOT/favicon.ico图标 2,修改后台主页面中<link rel="shortcut icon" href=" " type="image/x-icon">...原创 2018-11-21 09:35:41 · 2196 阅读 · 0 评论 -
mybatis新插入数据查询不到问题
问题描述: 在spring集成mybatis框架中,业务需要查询数据库,若数据不存在,则需要插入一条新数据,接着再查询该数据自增id。 现象: 插入数据后查询不到,但数据库中存在。 原因: 参考:https://blog.youkuaiyun.com/lnktoking/article/details/80936188 解决方法: 在查询方法上加入注解@Transactional(isolati...原创 2018-11-15 11:48:42 · 12522 阅读 · 1 评论 -
JDNI数据源使用tomcat数据连接池
步骤: 1,在application.xml文件中添加datasource 2,在tomcat中的server.xml中添加 3,在tomcat中的context.xml中添加原创 2018-12-21 17:55:42 · 245 阅读 · 0 评论 -
mybatis嵌套查询
需求: list中有个字段为list的情况; 解决办法: 使用mybatis的嵌套查询功能; 实例: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-m...原创 2019-02-20 10:47:23 · 268 阅读 · 0 评论 -
mysql数据库默认排序问题
1,mysql官方回答: SELECT * FROM tbl -- this will do a "table scan". If the table has never had any DELETEs/REPLACEs/UPDATEs, the records will happen to be in the insertion order, hence what you observed. ...原创 2019-02-20 17:32:16 · 3602 阅读 · 0 评论
分享