草庐IT

cilk-plus

全部标签

Rollup failed to resolve import "element-plus/es/components"

vite打包异常,错误信息如下:[vite]:Rollupfailedtoresolveimport"element-plus/es/components"from"node_modules/element-plus/es/index.js".Thisismostlikelyunintendedbecauseitcanbreakyourapplicationatruntime.Ifyoudowanttoexternalizethismoduleexplicitlyadditto`build.rollupOptions.external`errorduringbuild:Error:[vite]

vue3 Element Plus按钮点击之后颜色不会还原的解决方案

思路:ElementPlus提供了样式变量,我的解决思路就是修改其样式变量。新建外部样式xxx.css加入内容:.el-button--primary{--el-button-bg-color:#409eff;--el-button-hover-bg-color:#409eff;}.el-button--primary:hover{--el-button-hover-bg-color:#79bbff;}.el-button--warning.is-plain{--el-button-bg-color:#fdf6ec;--el-button-hover-text-color:#e6a23c;--

vue3 Element Plus按钮点击之后颜色不会还原的解决方案

思路:ElementPlus提供了样式变量,我的解决思路就是修改其样式变量。新建外部样式xxx.css加入内容:.el-button--primary{--el-button-bg-color:#409eff;--el-button-hover-bg-color:#409eff;}.el-button--primary:hover{--el-button-hover-bg-color:#79bbff;}.el-button--warning.is-plain{--el-button-bg-color:#fdf6ec;--el-button-hover-text-color:#e6a23c;--

day13-SpringBoot整合MyBatis/Plus

SpringBoot整合MyBatis/Plus1.SpringBoot整合MyBatis1.1整合案例需求:整合SpringBoot和Mybatis,向数据库中查询数据。项目结构:1.1.1创建数据库和表--创建数据库DROPDATABASEIFEXISTSspringboot_mybatis;CREATEDATABASEspringboot_mybatis;USEspringboot_mybatis;--创建表CREATETABLEmonster(`id`INTNOTNULLAUTO_INCREMENT,`age`INTNOTNULL,`birthday`DATEDEFAULTNULL,`

day13-SpringBoot整合MyBatis/Plus

SpringBoot整合MyBatis/Plus1.SpringBoot整合MyBatis1.1整合案例需求:整合SpringBoot和Mybatis,向数据库中查询数据。项目结构:1.1.1创建数据库和表--创建数据库DROPDATABASEIFEXISTSspringboot_mybatis;CREATEDATABASEspringboot_mybatis;USEspringboot_mybatis;--创建表CREATETABLEmonster(`id`INTNOTNULLAUTO_INCREMENT,`age`INTNOTNULL,`birthday`DATEDEFAULTNULL,`

day13-SpringBoot整合MyBatis/Plus

SpringBoot整合MyBatis/Plus1.SpringBoot整合MyBatis1.1整合案例需求:整合SpringBoot和Mybatis,向数据库中查询数据。项目结构:1.1.1创建数据库和表--创建数据库DROPDATABASEIFEXISTSspringboot_mybatis;CREATEDATABASEspringboot_mybatis;USEspringboot_mybatis;--创建表CREATETABLEmonster(`id`INTNOTNULLAUTO_INCREMENT,`age`INTNOTNULL,`birthday`DATEDEFAULTNULL,`

day13-SpringBoot整合MyBatis/Plus

SpringBoot整合MyBatis/Plus1.SpringBoot整合MyBatis1.1整合案例需求:整合SpringBoot和Mybatis,向数据库中查询数据。项目结构:1.1.1创建数据库和表--创建数据库DROPDATABASEIFEXISTSspringboot_mybatis;CREATEDATABASEspringboot_mybatis;USEspringboot_mybatis;--创建表CREATETABLEmonster(`id`INTNOTNULLAUTO_INCREMENT,`age`INTNOTNULL,`birthday`DATEDEFAULTNULL,`

MyBatis-Plus修改数据,会不会把其他字段置为null

前两天在用MyBatis-Plus写了一张单表的增删改查,在写到修改的时候,就突然蹦出一个奇怪的想法。MyBatis-Plus的BaseMapper中有两个关于修改的方法。如下:intupdateById(@Param("et")Tentity);intupdate(@Param("et")Tentity,@Param("ew")WrapperupdateWrapper);就我在想,在修改的时候,给这个entity个别字段赋值,部分字段不管它,在调用update方法的时候,会不会在修改完之后,数据库的其他字段被置为null。开始测试1.测试updateById方法首先这是未修改之前的数据点击查

MyBatis-Plus修改数据,会不会把其他字段置为null

前两天在用MyBatis-Plus写了一张单表的增删改查,在写到修改的时候,就突然蹦出一个奇怪的想法。MyBatis-Plus的BaseMapper中有两个关于修改的方法。如下:intupdateById(@Param("et")Tentity);intupdate(@Param("et")Tentity,@Param("ew")WrapperupdateWrapper);就我在想,在修改的时候,给这个entity个别字段赋值,部分字段不管它,在调用update方法的时候,会不会在修改完之后,数据库的其他字段被置为null。开始测试1.测试updateById方法首先这是未修改之前的数据点击查

MyBatis-Plus入门教程及基本API使用案例

一、MyBatisPlus简介1.入门案例问题导入MyBatisPlus环境搭建的步骤?1.1SpringBoot整合MyBatisPlus入门程序①:创建新模块,选择Spring初始化,并配置模块相关基础信息②:选择当前模块需要使用的技术集(仅保留JDBC)③:手动添加MyBatisPlus起步依赖com.baomidoumybatis-plus-boot-starter3.4.1com.alibabadruid1.1.16注意事项1:由于mp并未被收录到idea的系统内置配置,无法直接选择加入注意事项2:如果使用Druid数据源,需要导入对应坐标④:制作实体类与表结构(类名与表名对应,属性