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

2019年8月14日

Spring @Autowired 注解 学习资料

摘要: Spring @Autowired 注解 学习资料 | 网址 | Spring @Autowired 注解 | "https://wiki.jikexueyuan.com/project/spring/annotation based configuration/spring autowired a 阅读全文

posted @ 2019-08-14 17:46 cag2050 阅读(131) 评论(0) 推荐(0)

2019年8月13日

spring mvc @RequestMapping method 不写的话,默认GET、POST都支持,根据前端方式自动适应

摘要: method 不写的话,默认GET、POST都支持,根据前端方式自动适应。 阅读全文

posted @ 2019-08-13 11:24 cag2050 阅读(5346) 评论(0) 推荐(0)

JUnit 4.x 与 5.x 的区别?

摘要: 区别项 | 4.x | 5.x | | 手动把测试和测试方法声明为public | 需要 | 不需要 @Test | | 与JUnit 4的@Test注解不同的是,它没有声明任何属性,因为JUnit Jupiter中的测试扩展是基于它们自己的专用注解来完成的。这样的方法会被继承,除非它们被覆盖。 一 阅读全文

posted @ 2019-08-13 11:09 cag2050 阅读(1270) 评论(0) 推荐(0)

2019年8月10日

Mybatis 全局配置文件中 typeAliases (别名)

摘要: 出处:https://blog.csdn.net/fxq8866/article/details/52635153 阅读全文

posted @ 2019-08-10 21:21 cag2050 阅读(238) 评论(0) 推荐(0)

2019年8月8日

Mockito 学习资料

摘要: Mockito 学习资料 | 网址 | 单元测试指南:Mockito | https://blinkfox.github.io/2018/11/15/hou duan/java/dan yuan ce shi zhi nan/ toc heading 18 Mockito中文文档 | https:/ 阅读全文

posted @ 2019-08-08 15:10 cag2050 阅读(210) 评论(0) 推荐(0)

Java 8 学习资料

摘要: Java 8 学习资料 | 网址 | Java 8 简明教程 | http://blog.didispace.com/books/java8 tutorial/ 阅读全文

posted @ 2019-08-08 11:37 cag2050 阅读(192) 评论(0) 推荐(0)

Lombok 学习资料

摘要: Lombok 学习资料 | 网址 | Lombok 官方网站 | https://projectlombok.org/features/all Lombok:让JAVA代码更优雅 | http://blog.didispace.com/java lombok 1/ Java开发神器Lombok的使用 阅读全文

posted @ 2019-08-08 11:26 cag2050 阅读(128) 评论(0) 推荐(0)

hashCode、HashMap 的原理

摘要: hashCode 的契约是:如果两个对象相等,那么调用两个对象的 hashCode() 方法一定会返回相同的 hash 值。 HashMap 中 存储桶 的原理: 1. 当你在 hashMap 中存储值的时候,这些值实际存储在一组桶中。每个桶都分配了一个用于识别它的号码。当你在 HashMap 中 阅读全文

posted @ 2019-08-08 10:36 cag2050 阅读(194) 评论(0) 推荐(0)

2019年8月5日

JUnit 5.x 知识点

摘要: 出处: "https://blinkfox.github.io/2018/11/15/hou duan/java/dan yuan ce shi zhi nan/ toc heading 14" 表面上来看,使用方式和 Junit4 差别不大,但是与 JUnit4 比较起来还是有些不同的。 1. 导 阅读全文

posted @ 2019-08-05 16:04 cag2050 阅读(342) 评论(0) 推荐(0)

2019年8月1日

spring security 学习资料

摘要: spring security 学习资料 | 网址 | Spring Security 文档参考手册中文版 | https://springcloud.cc/spring security.html 阅读全文

posted @ 2019-08-01 20:59 cag2050 阅读(363) 评论(0) 推荐(0)

设计模式,学习资料

摘要: 设计模式,学习资料 | 网址 | 菜鸟教程 | https://www.runoob.com/design pattern/design pattern tutorial.html 阅读全文

posted @ 2019-08-01 15:30 cag2050 阅读(131) 评论(0) 推荐(0)

知名博主

摘要: 知名博主 | 真实姓名 | 博客 | github | | | 纯洁的微笑 | 张强 | http://www.ityouknow.com/ | https://github.com/ityouknow 程序猿DD | 翟永超 | http://blog.didispace.com/ | https 阅读全文

posted @ 2019-08-01 14:25 cag2050 阅读(271) 评论(0) 推荐(0)

shiro 学习资料

摘要: shiro 学习资料 | 网址 | (官方文档)spring boot 整合 shiro | https://shiro.apache.org/spring boot.html (纯洁的微笑)Spring Boot (十四): Spring Boot 整合 Shiro 登录认证和权限管理 | htt 阅读全文

posted @ 2019-08-01 10:58 cag2050 阅读(217) 评论(0) 推荐(0)

2019年7月31日

nuxt 中使用 koa-session

摘要: 官方 github 网址:https://github.com/koajs/session 自己做的demo:https://github.com/cag2050/nuxt_session_demo session 是一个对象,可以添加属性值。 阅读全文

posted @ 2019-07-31 17:28 cag2050 阅读(600) 评论(0) 推荐(0)

koa-session 知识点

摘要: github 网址:https://github.com/koajs/session session 是一个对象 阅读全文

posted @ 2019-07-31 16:28 cag2050 阅读(174) 评论(0) 推荐(0)

2019年7月30日

MySQL 中的默认数据库介绍

摘要: MySQL 中的默认数据库介绍:https://dataedo.com/kb/databases/mysql/default databases schemas 默认数据库 | 官方文档 | information_schema | https://dev.mysql.com/doc/refman/ 阅读全文

posted @ 2019-07-30 16:37 cag2050 阅读(490) 评论(0) 推荐(0)

2019年7月29日

MySQL 8.x 函数和操作符,官方网址:https://dev.mysql.com/doc/refman/8.0/en/functions.html

摘要: MySql 8.x 函数和操作符,官方网址:https://dev.mysql.com/doc/refman/8.0/en/functions.html 阅读全文

posted @ 2019-07-29 19:25 cag2050 阅读(725) 评论(0) 推荐(0)

egg 阻止 sql 注入,相关文章

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

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

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

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

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

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

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

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

2019年7月23日

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

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

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

Java 并发,相关术语

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

posted @ 2019-07-23 16:28 cag2050 阅读(176) 评论(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 阅读(1932) 评论(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 阅读(596) 评论(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 阅读(4740) 评论(0) 推荐(0)

2019年7月11日

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

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

posted @ 2019-07-11 11:59 cag2050 阅读(664) 评论(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 阅读(191) 评论(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 阅读(18032) 评论(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 阅读(248) 评论(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 阅读(525) 评论(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 阅读(176) 评论(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 阅读(475) 评论(0) 推荐(1)

2019年7月7日

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

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

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

运行SpringBoot工程的四种方法

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

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

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

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

posted @ 2019-07-07 14:31 cag2050 阅读(404) 评论(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 阅读(1102) 评论(0) 推荐(0)

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

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

posted @ 2019-07-06 19:54 cag2050 阅读(1668) 评论(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 阅读(146) 评论(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 阅读(546) 评论(0) 推荐(0)

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

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

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

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

导航