摘要:
1. 在需要设置样式的标签上绑定鼠标移入移出事件 <span class="preview" @mouseover="mouseOver($event)" @mouseleave="mouseLeave($event)" @click="previewClick(scope.row)" >点击预览< 阅读全文
摘要:
1. 首先准备一个级联选择框 <el-form-item label="地址" prop="address"> <el-cascader filterable placeholder="请选择" ref="addPoint" :props="cityProps" :options="cityOpti 阅读全文
摘要:
使用id查询单条数据数据时,使用findById(id).orElse(null)方式查询,如果没有结果,会返回null。 @Override public Shop getById(Integer id) { return shopRepository.findById(id).orElse(nu 阅读全文
摘要:
Mybatis使用MySQL中遇到的一个问题 | CodeDogluoliangdsga.github.io 解决办法: 登陆到mysql,分别执行以下两行命令: set global time_zone ='+08:00'; set time_zone ='+08:00'; 阅读全文
摘要:
配置文件db.properties url=jdbc:mysql://localhost:3306/dbtest name=root password=root maxActive=20 读取配置文件 <property name="url" value="${url}" /> <property 阅读全文
摘要:
这是因为在mysql5.7以上启用了严格模式,临时关闭: 在Navicat中执行下面的语句,重启Navicat即可。 SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); 永久关闭: 在MySQL的配置文件 阅读全文