上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: 实体类 @Configuration @ConfigurationProperties(prefix = "db-config") public class DbConfig { List<DbInfo> defalutConfigList; boolean isReadConfig; public 阅读全文
posted @ 2020-04-11 13:52 故木 阅读(3725) 评论(0) 推荐(0) 编辑
摘要: tomcat服务如何配置vue-router的history模式在应用网站根目录下新建 WEB-INF文件夹并在其下新建web.xml文件 <?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/ 阅读全文
posted @ 2020-03-26 13:45 故木 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 文件头注解模板 /** *@ClassName ${NAME} *@Description TODO *@Author gm *@Date ${DATE} ${TIME} */ 方法模板 * $param$ * @return $return$ * @author CYH * @date $date 阅读全文
posted @ 2020-03-11 20:58 故木 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 本文参考:https://aotu.io/notes/2016/04/14/js-reduce/index.html arr.reduce(callback[, initialValue]) 实例: 数组 arr = [1,2,3,4] 求数组的和 forEach 实现 123 var arr = 阅读全文
posted @ 2020-03-09 19:53 故木 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 字符串扩展 字符串接口遍历器 for (let codePoint of 'foo') { console.log(codePoint) } // "f" // "o" // "o" 2.模板字符串 穿插变量 //旧写法 $('#result').append( 'There are <b>' + 阅读全文
posted @ 2020-03-09 18:50 故木 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 并发请求 // 并发请求 axios.all([axios.get("/data.json"), axios.get("/city.json")]).then( axios.spread((dataRes, cityRes) => { console.log(dataRes, cityRes); } 阅读全文
posted @ 2020-03-08 21:11 故木 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 使用vue-cli这种脚手架工具开发时,由于项目本身启动本地服务是需要占用一个端口的,所以必然会产生跨域的问题 这里记录下解决方案 在conf index.js 对应启动配置中设置代理 proxyTable: { "/localhost_api":{ target: 'http://127.0.0. 阅读全文
posted @ 2020-03-08 21:06 故木 阅读(4443) 评论(0) 推荐(0) 编辑
摘要: 使用npm run build(dev) index.js 下的dev 和 build 分别代表了两个配置 其中assetsSubDirectory、assetsPublicPath两个参数分别可以修改 依赖的静态文件 文件夹名和在html中的引用路径 注意测试时assetsPublicPath使用 阅读全文
posted @ 2020-03-08 19:35 故木 阅读(1177) 评论(0) 推荐(0) 编辑
摘要: 提交相关 git add . git add -A 提交所有变化 git add -u 提交被修改(modified)和被删除(deleted)文件,不包括新文件(new) git add . 提交新文件(new)和被修改(modified)文件,不包括被删除(deleted)文件 git add 阅读全文
posted @ 2020-03-08 14:20 故木 阅读(106) 评论(0) 推荐(1) 编辑
摘要: 在官网下载包https://dev.mysql.com/downloads/mysql/ 解压后利用bin目录中的mysqld 注册开启服务 在bin目录下依次执行一下命令 注意使用管理员打开命令行 mysqld install mysqld --initialize net start mysql 阅读全文
posted @ 2020-03-07 19:19 故木 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页