上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页

2019年7月29日

egg 阻止 sql 注入,相关文章

摘要: egg 阻止 sql 注入,相关文章 | 网址 | 注意!!我们极其不建议开发者拼接 sql 语句,这样很容易引起 sql 注入!!如果必须要自己拼接 sql 语句,请使用 mysql.escape 方法。 | https://eggjs.org/zh cn/tutorials/mysql.html 阅读全文

posted @ 2019-07-29 16:39 cag2050 阅读(1238) 评论(0) 推荐(0) 编辑

项目中有私有仓库模块时,使用 npm ci 命令的安装步骤

摘要: 项目中有私有仓库模块时,使用 npm ci 命令的安装步骤: 1. 先安装私有仓库模块: 2. 再运行命令:`npm ci` 阅读全文

posted @ 2019-07-29 11:41 cag2050 阅读(557) 评论(0) 推荐(0) 编辑

nginx 负载均衡,如何判断某台服务器宕机?

摘要: 答:使用参数:proxy_connect_timeout; 这个参数是连接的超时时间。设置成1,表示是1秒后超时会连接到另外一台服务器。 配置在 server 部分里。 阅读全文

posted @ 2019-07-29 11:03 cag2050 阅读(4493) 评论(0) 推荐(0) 编辑

2019年7月23日

服务器端渲染 VS 浏览器端渲染

摘要: 这里的渲染,就是指生成html文档的过程,和浏览器渲染html没有关系。 浏览器端渲染,指的是用js去生成html,前端做路由。举例:React, Vue等等前端框架。适合单页面应用程序。 服务器端渲染,指的是用后台语言通过一些模版引擎生成html。举例:PHP文件、JSP文件、Python的Fla 阅读全文

posted @ 2019-07-23 19:47 cag2050 阅读(226) 评论(0) 推荐(0) 编辑

Java 并发,相关术语

摘要: Java 并发,相关术语: 术语 | 作用 | synchronize | 可修饰方法、代码块、类;介绍:https://www.cnblogs.com/zyxiaohuihui/p/9096882.html Lock | 可代替 synchronize volatile | 修饰变量;多线程访问时 阅读全文

posted @ 2019-07-23 16:28 cag2050 阅读(169) 评论(0) 推荐(0) 编辑

2019年7月13日

如何将 egg-validate 插件的错误提示,修改为中文?

摘要: 1. 方案一(需要找到所有的提示并对应成中文,不是一个好方案;例子地址:https://github.com/cag2050/egg_mysql_demo/blob/master/app/controller/user.js ): 所有的文案都改成 ctx.gettext('英文'),然后配置 lo 阅读全文

posted @ 2019-07-13 16:46 cag2050 阅读(1866) 评论(0) 推荐(0) 编辑

2019年7月12日

egg 连接 mysql 的 docker 容器,报错:Client does not support authentication protocol requested by server; consider upgrading MySQL client

摘要: egg 连接 mysql 的 docker 容器,报错: 解决办法: mysql 中执行如下语句: 附: 'root'@'localhost' 与 'root'@'%' 的区别: "https://blog.csdn.net/lzq123_1/article/details/40863971" 阅读全文

posted @ 2019-07-12 17:37 cag2050 阅读(576) 评论(0) 推荐(0) 编辑

运行 npm run lint -- --fix,提示:error Use the global form of 'use strict'

摘要: 运行 npm run lint fix,提示:error Use the global form of 'use strict',使用说明网址:https://eslint.org/docs/2.0.0/rules/strict options 解决办法: .eslintrc 文件中,添加如下配置: 阅读全文

posted @ 2019-07-12 15:18 cag2050 阅读(4625) 评论(0) 推荐(0) 编辑

2019年7月11日

nuxt 项目设置缩进为4个空格

摘要: 1、.editorconfig 文件下的 更改为 2、.prettierrc 文件 { "singleQuote": true, // 使用单引号 的 "semi": false, // 结尾不加分号 的 "printWidth": 120 // 此项为我自加以上两项为默认,表示每行最多显示的字符数 阅读全文

posted @ 2019-07-11 11:59 cag2050 阅读(633) 评论(0) 推荐(0) 编辑

2019年7月10日

Spring Boot 中的测试:JUnit

摘要: 官方文档:https://docs.spring.io/spring boot/docs/current/reference/html/boot features testing.html 阅读全文

posted @ 2019-07-10 12:04 cag2050 阅读(183) 评论(0) 推荐(0) 编辑

2019年7月9日

mysql 的 3306、33060 端口区别

摘要: Port 3306 is the default port for the MySQL Protocol, which is used by the mysql client, MySQL Connectors, and utilities such as mysqldump and mysqlpu 阅读全文

posted @ 2019-07-09 20:11 cag2050 阅读(17515) 评论(0) 推荐(4) 编辑

Spring Boot属性配置文件:application.properties 详解

摘要: 学习资料 | 网址 | 官方说明文档 | https://docs.spring.io/spring boot/docs/current/reference/html/common application properties.html Spring Boot属性配置文件详解(翟永超)| http: 阅读全文

posted @ 2019-07-09 14:25 cag2050 阅读(240) 评论(0) 推荐(0) 编辑

2019年7月8日

mysql 的 docker image 使用(官方文档节选)

摘要: 1.创建一个 mysql 实例: 2.创建另一个mysql容器,通过命令行client 连接到一个已经存在的mysql容器: 作为一个命令行client,连接到一个不是docker的实例 或 远程实例: 3.创建数据库备份文件 4.从备份文件恢复数据库 $ docker exec i some my 阅读全文

posted @ 2019-07-08 20:31 cag2050 阅读(470) 评论(0) 推荐(0) 编辑

com.mysql.jdbc.Driver 和 com.mysql.cj.jdbc.Driver的区别、serverTimezone设定

摘要: https://blog.csdn.net/superdangbo/article/details/78732700 阅读全文

posted @ 2019-07-08 16:19 cag2050 阅读(167) 评论(0) 推荐(0) 编辑

Docker 中 MySQL 数据的导入导出

摘要: Creating database dumps Most of the normal tools will work, although their usage might be a little convoluted in some cases to ensure they have access 阅读全文

posted @ 2019-07-08 10:49 cag2050 阅读(459) 评论(0) 推荐(1) 编辑

2019年7月7日

maven 下载 jar 包速度慢时,可以自己手动下载 jar 包,然后粘贴到 External Libraries 中

摘要: maven 下载 jar 包速度慢时,可以自己手动下载 jar 包,然后粘贴到 External Libraries 中 阅读全文

posted @ 2019-07-07 21:48 cag2050 阅读(362) 评论(0) 推荐(0) 编辑

运行SpringBoot工程的四种方法

摘要: https://www.jianshu.com/p/0a91ee4600fa 阅读全文

posted @ 2019-07-07 15:34 cag2050 阅读(145) 评论(0) 推荐(0) 编辑

Spring Boot环境配置:Spring Boot+Mybatis+Gradle

摘要: https://blog.csdn.net/mungo/article/details/73793535 阅读全文

posted @ 2019-07-07 14:31 cag2050 阅读(392) 评论(0) 推荐(0) 编辑

2019年7月6日

用 gradle 运行 spring boot 项目

摘要: 用 gradle 运行 spring boot 项目(网页中的第6章:https://docs.spring.io/spring boot/docs/2.1.1.RELEASE/gradle plugin/reference/html/) 阅读全文

posted @ 2019-07-06 20:26 cag2050 阅读(1090) 评论(0) 推荐(0) 编辑

IntelliJ IDEA 配置Gradle运行SpringBoot Web项目(tomcat容器)

摘要: https://blog.csdn.net/maomengmeng/article/details/76522416 阅读全文

posted @ 2019-07-06 19:54 cag2050 阅读(1621) 评论(0) 推荐(0) 编辑

spring boot cli 知识点

摘要: spring boot cli 版本列表: https://repo.spring.io/snapshot/org/springframework/boot/spring boot cli/ spring boot cli 命令 | 说明 | spring version | pring [ hel 阅读全文

posted @ 2019-07-06 18:07 cag2050 阅读(137) 评论(0) 推荐(0) 编辑

OSX Homebrew 安装 Spring Boot CLI

摘要: OSX Homebrew 安装 Spring Boot CLI 如果您使用的是Mac并使用Homebrew,则可以使用以下命令安装Spring Boot CLI: Homebrew将spring安装到/usr/local/bin。 [注意] 如果您没有看到公式,那么您的brew安装可能已过时。在这种 阅读全文

posted @ 2019-07-06 18:00 cag2050 阅读(527) 评论(0) 推荐(0) 编辑

前端重定向,index.html文件被浏览器缓存,导致整个应用都是旧的

摘要: 解决方法:https://github.com/ant design/ant design pro/issues/1365 issuecomment 384496088 阅读全文

posted @ 2019-07-06 17:08 cag2050 阅读(2000) 评论(0) 推荐(0) 编辑

单页面应用,接入cdn

摘要: 出处:http://www.xbhub.com/wiki/webpack/4%E4%BC%98%E5%8C%96/4 9CDN%E5%8A%A0%E9%80%9F.html 阅读全文

posted @ 2019-07-06 16:52 cag2050 阅读(431) 评论(0) 推荐(0) 编辑

2019年7月4日

Spring Cloud 之 Hystrix 知识点:隔离、熔断、降级

摘要: Hystrix 是隔离、熔断以及降级的一个框架。 Hystrix 的隔离: Hystrix 会搞很多个小小的线程池,比如订单服务请求库存服务是一个线程池,请求仓储服务是一个线程池,请求积分服务是一个线程池。每个线程池里的线程就仅仅用于请求那个服务。 Hystrix 的熔断: 比如在 5 分钟内请求积 阅读全文

posted @ 2019-07-04 20:50 cag2050 阅读(944) 评论(0) 推荐(0) 编辑

Spring Cloud 之 Ribbon 知识点:服务器负载均衡

摘要: Ribbon 是和 Feign 以及 Eureka 紧密协作,完成工作的,具体如下: 1. 首先 Ribbon 会从 Eureka Client 里获取到对应的服务注册表,也就知道了所有的服务都部署在了哪些机器上,在监听哪些端口号。 2. 然后 Ribbon 就可以使用默认的 Round Robin 阅读全文

posted @ 2019-07-04 20:37 cag2050 阅读(244) 评论(0) 推荐(0) 编辑

Spring Cloud 之 Feign 知识点:封装了 REST 调用

摘要: Feign Client 会在底层根据你的注解,跟你指定的服务建立连接、构造请求、发起请求、获取响应、解析响应,等等。 Feign 的一个关键机制就是使用了动态代理。 1. 首先,如果你对某个接口定义了 @FeignClient 注解,Feign 就会针对这个接口创建一个动态代理。 2. 接着你要是 阅读全文

posted @ 2019-07-04 20:32 cag2050 阅读(810) 评论(0) 推荐(0) 编辑

spring cloud 学习资料

摘要: spring cloud 学习资料 | 网址 | 拜托!面试请不要再问我Spring Cloud底层原理 | https://mp.weixin.qq.com/s/ZH 3JK90mhnJPfdsYH2yDA 阅读全文

posted @ 2019-07-04 20:23 cag2050 阅读(177) 评论(0) 推荐(0) 编辑

Gradle 知识点

摘要: api或compile关键字(compile关键字已废弃,被api替代)引用的包对于其他module来说是可见的,而implementation关键字引用的包对于其他module来说是不可见的。 mac 系统中,下载的 Gradle 压缩包解压后存储的文件夹:/Users/<用户名>/.gradle 阅读全文

posted @ 2019-07-04 16:33 cag2050 阅读(200) 评论(0) 推荐(0) 编辑

Gradle 学习资料

摘要: Gradle 学习资料 网址 Gradle User Guide 中文版 https://dongchuan.gitbooks.io/gradle-user-guide-/content/ Gradle 用户手册(官方英文版) https://docs.gradle.org/current/user 阅读全文

posted @ 2019-07-04 15:20 cag2050 阅读(193) 评论(0) 推荐(0) 编辑

Maven 和 Gradle 对比

摘要: 出处:https://www.cnblogs.com/huang0925/p/5209563.html 阅读全文

posted @ 2019-07-04 15:13 cag2050 阅读(248) 评论(0) 推荐(0) 编辑

2019年7月2日

nuxt build 项目文件分析、nuxt build 发布后的资源如何部署cdn

摘要: 建议在项目发布的时候,还是将.nuxt 进行发布到生产环境,是比较稳妥的做法 出处:https://nickfu.com/p/150 nuxt build 后的前端资源都会存放在.nuxt/dist/ 文件夹下面 出处:https://nickfu.com/p/139 阅读全文

posted @ 2019-07-02 20:28 cag2050 阅读(2473) 评论(0) 推荐(0) 编辑

2019年7月1日

列表中,因高度不同,导致排列错乱

摘要: 这是因为在布局中使用了 需要去掉浮动,具体样式如下: 出处:https://blog.csdn.net/k_happy/article/details/88579601 阅读全文

posted @ 2019-07-01 17:38 cag2050 阅读(314) 评论(0) 推荐(0) 编辑

2019年6月28日

npm install 和 npm ci 的主要区别

摘要: npm install 和 npm ci 的主要区别: 1. 该项目必须有一个 package lock.json 或 npm shrinkwrap.json。 2. 如果 package lock.json 中的依赖项与 package.json 的依赖项不匹配,npm ci 则将退出并显示错误, 阅读全文

posted @ 2019-06-28 15:04 cag2050 阅读(1143) 评论(0) 推荐(0) 编辑

2019年6月21日

Nuxt.js 提供了两种发布部署应用的方式:服务端渲染应用部署 和 静态应用部署

摘要: 官方网址:https://zh.nuxtjs.org/guide/commands/ %E5%8F%91%E5%B8%83%E9%83%A8%E7%BD%B2 阅读全文

posted @ 2019-06-21 20:33 cag2050 阅读(2978) 评论(0) 推荐(0) 编辑

nuxt 项目设置缩进为4个空格

摘要: nuxt 项目设置缩进为4个空格:https://segmentfault.com/a/1190000019230150 articleHeader1 阅读全文

posted @ 2019-06-21 18:09 cag2050 阅读(412) 评论(0) 推荐(0) 编辑

Nuxt 学习资料

摘要: Nuxt 学习资料 | 网址 | 官方网站 | https://zh.nuxtjs.org/guide/installation 阅读全文

posted @ 2019-06-21 17:25 cag2050 阅读(136) 评论(0) 推荐(0) 编辑

Nuxt 知识点

摘要: 脚手架工具 create nuxt app 创建项目: 启动项目: nuxt 命令介绍 "命令列表" 在任何 Vue 组件的生命周期内, 只有 beforeCreate 和 created 这两个方法会在 客户端和服务端 被调用。其他生命周期函数仅在客户端被调用。 使用第三方模块:axios 我们可 阅读全文

posted @ 2019-06-21 17:24 cag2050 阅读(357) 评论(0) 推荐(0) 编辑

2019年6月19日

git 撤销merge

摘要: 如果没有别的操作,直接回到上一次提交就可以了,在a分支执行 git reset hard HEAD~ 会回到未merge前的状态,清空暂存区,销毁数据,如果没有推送到远程,数据就会被覆盖无法恢复,如果已推送远程,可以通过 reflog 找回。 阅读全文

posted @ 2019-06-19 21:21 cag2050 阅读(266) 评论(0) 推荐(0) 编辑

2019年6月1日

Flutter 数据存储之 shared_preferences

摘要: 资源名称 | 网址 | github | https://github.com/flutter/plugins/tree/master/packages/shared_preferences Flutter 数据存储之 shared_preferences | https://juejin.im/p 阅读全文

posted @ 2019-06-01 17:45 cag2050 阅读(626) 评论(0) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页

导航