上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: vue-cli3构建的项目: 在vue.config.js的devServer中配置proxy devServer:{ port:8086, // 启动端口 open:false, // 启动后是否自动打开网页 proxy: { '/api': { target: 'http://s.gecimi. 阅读全文
posted @ 2021-03-31 21:25 xing柠檬 阅读(2683) 评论(0) 推荐(0)
摘要: 多态是同一个行为具有多个不同表现形式或形态的能力 多态性意味着有多重形式,在面向对象编程范式中,多态性往往表现为“一个接口,多个功能” 多态性可以是静态的也可以是动态的,在静态多态性中,函数的响应是在编译的时候发生的,在动态多态性中,函数的响应是在运行时发生的。 在C#中,每个类型都是多态的,因为包 阅读全文
posted @ 2021-03-29 11:44 xing柠檬 阅读(247) 评论(0) 推荐(0)
摘要: VirtualBox中安装CentOS7后无法上网的解决方案 重新安装了VirtualBox(CentOS7镜像)后无法上网,在网上找到了相应解决方案,所以分享记录下来 1 配置VirtualBox的虚拟网卡 1)打开网络和共享中心,找到VirtualBox Host-Only Network 2) 阅读全文
posted @ 2021-03-27 10:36 xing柠檬 阅读(545) 评论(0) 推荐(0)
摘要: 继承是面向对象程序设计中重要的概念之一,C#作为面向对象的语言也支持继承, 其中被继承的类叫做基类,新的类叫做派生类 与java使用“extends”关键字不同的是,C#使用“ : ”来实现继承 C#中创建派生类的语法如下: <访问修饰符> class <基类名称> { ...; } class < 阅读全文
posted @ 2021-03-26 11:18 xing柠檬 阅读(504) 评论(0) 推荐(0)
摘要: vue过程中遇到的Uncaught (in promise) TypeError: Cannot read property '$message' of undefined 在写一个vue项目,想把项目中使用的vue-resource换成vue-axios,语法从http.$http.post变为a 阅读全文
posted @ 2021-02-24 13:34 xing柠檬 阅读(39327) 评论(0) 推荐(0)
摘要: springboot2.x以上版本默认采用lettuce,而SpringBoot1.5默认采用的是jedis //springboot2.x以上版本LettuceConnectionFactory connectionFactory = (LettuceConnectionFactory) redi 阅读全文
posted @ 2021-02-23 14:35 xing柠檬 阅读(865) 评论(0) 推荐(0)
摘要: 1、在docker run中加入 --privileged=true 给容器加上特定权限2、关闭selinux3、在selinux添加规则,修改挂载目录 阅读全文
posted @ 2021-02-23 10:44 xing柠檬 阅读(1120) 评论(0) 推荐(0)
摘要: 1、data参数适用于 post、put、patch请求,使用data时url中不会携带参数,data是将参数添加到请求体(body)中 2、params参数适用于get请求,params将参数添加到url的请求字符串中,因此使用params时url中会携带参数 阅读全文
posted @ 2021-02-22 14:21 xing柠檬 阅读(1615) 评论(0) 推荐(0)
摘要: 1、docker pull mysql:8.0.20 2、cd /home mkdir mnt cd mnt mkdir mysql8.0.20 cd mysql8.0.20 mkdir logs mysql conf data mysql-files 3、vi mysql.sh #!/bin/sh 阅读全文
posted @ 2021-02-20 10:45 xing柠檬 阅读(230) 评论(0) 推荐(0)
摘要: alter table tb_course add selected int(3) not null default 0 check ( selected between 0 and total_people ) comment '课程已选人数'; 报错:Column check constrain 阅读全文
posted @ 2020-12-26 13:20 xing柠檬 阅读(3923) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页