06 2021 档案

摘要:Sleep代码 export const Sleep = (ms)=> { return new Promise(resolve=>setTimeout(resolve, ms)) } 使用代码 await Sleep(1500) 先打印1,休眠1.5秒后打印2 async test(){ cons 阅读全文
posted @ 2021-06-29 16:42 HumorChen99 阅读(43) 评论(0) 推荐(0) 编辑
摘要:代码 package threadlocal; public class ThreadLocalDemo { public static void main(String[] args) { AccessCount accessCount = new AccessCount(); new Threa 阅读全文
posted @ 2021-06-28 11:48 HumorChen99 阅读(6) 评论(0) 推荐(0) 编辑
摘要:依赖包 junit-4.7.jar @Test 注解 package junit; import org.junit.Test; /** * 选中add,右键运行 add() */ public class Demo1 { @Test public void add(){ int a = 10; i 阅读全文
posted @ 2021-06-27 22:46 HumorChen99 阅读(21) 评论(0) 推荐(0) 编辑
摘要:自定义一个注解@Test package annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.Retention 阅读全文
posted @ 2021-06-27 22:31 HumorChen99 阅读(1) 评论(0) 推荐(0) 编辑
摘要:无参构造方式创建 创建 package enums.demo1; public enum Season { SPRING,SUMMER,AUTUMN,WINTER;//后面没有内容时分号可以省略,一般不省略。 } 使用 package enums.demo1; public class Demo1 阅读全文
posted @ 2021-06-27 16:14 HumorChen99 阅读(4) 评论(0) 推荐(0) 编辑
摘要:schema .xsd文件定义xml文件约束 Schema约束文件schema约束文件示范引入schema约束文件定义元素属性 Schema约束文件 schema约束文件示范 <?xml version="1.0" encoding="UTF-8" ?> <!-- elementFormDefaul 阅读全文
posted @ 2021-06-27 15:40 HumorChen99 阅读(2) 评论(0) 推荐(0) 编辑
摘要:XML DTD约束文件语法、示范 DTD文档约束文件结构截图示范dtd示范xml(使用上面的dtd约束)引入本地dtdxml文件内部引入dtd引入网络dtd 语法规则定义一个元素的格式简单元素复杂元素定义属性 DTD文档约束文件 结构截图 示范dtd persondtd.dtd 定义了一些元素(比如 阅读全文
posted @ 2021-06-27 15:10 HumorChen99 阅读(21) 评论(0) 推荐(0) 编辑
摘要:java 使用dom4j读取xml文件 项目结构依赖包xml内容读取代码代码运行结果 项目结构 写在了src下的xml文件夹下 依赖包 dom4j 意思是 dom for java 我这里由于是测试,没有使用maven来管理依赖,因此我下载后存入了文件夹并add as library添加到了项目的依 阅读全文
posted @ 2021-06-27 14:33 HumorChen99 阅读(18) 评论(0) 推荐(0) 编辑
摘要:单播 import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; /** * Udp 单播方式示范 */ public 阅读全文
posted @ 2021-06-22 14:23 HumorChen99 阅读(97) 评论(0) 推荐(0) 编辑
摘要:代码 根目录下 vue.config.js // const proxy = require('http-proxy-middleware'); //服务器会将任何未知请求 (没有匹配到静态文件的请求) 代理到http://localhost:4000上 module.exports = { dev 阅读全文
posted @ 2021-06-19 18:25 HumorChen99 阅读(150) 评论(0) 推荐(0) 编辑
摘要:之前的代码 this 为undefined methods:{ loadExaminationList:async ()=>{ //your code } } 改动箭头函数为function methods:{ loadExaminationList:async function(){ //your 阅读全文
posted @ 2021-06-14 13:01 HumorChen99 阅读(53) 评论(0) 推荐(0) 编辑
摘要:src目录下创建router.js import Vue from "vue"; import VueRouter from "vue-router"; import ExaminationList from "@/components/examination/ExaminationList"; i 阅读全文
posted @ 2021-06-14 12:22 HumorChen99 阅读(55) 评论(0) 推荐(0) 编辑
摘要:安装axios npm install axios 代理方式 项目根目录下创建vue.config.js module.exports = { devServer: { proxy: 'http://localhost:9000' } } 测试代码 <template> <div id="app"> 阅读全文
posted @ 2021-06-14 12:03 HumorChen99 阅读(4) 评论(0) 推荐(0) 编辑
摘要:依赖 <!-- validation--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> < 阅读全文
posted @ 2021-06-12 18:10 HumorChen99 阅读(12) 评论(0) 推荐(0) 编辑
摘要:解决办法 @SpringBootApplication @MapperScan("com.humorchen.pastry_examination.mapper") public class PastryExaminationApplication implements WebMvcConfigur 阅读全文
posted @ 2021-06-12 12:24 HumorChen99 阅读(3) 评论(0) 推荐(0) 编辑
摘要:使用示范 get import { ProxyHttpUtil } from '../../utils/ProxyHttpUtil'; let ret = await ProxyHttpUtil.get('https://xxxx.com/api/v2/summary.json') console. 阅读全文
posted @ 2021-06-08 15:46 HumorChen99 阅读(7) 评论(0) 推荐(0) 编辑
摘要:常见写法 package classes; public class ClassDemo8 { public static void main(String[] args) { System.out.println("基本写法"); } } 普通类 package classes; /** * 普通 阅读全文
posted @ 2021-06-06 16:38 HumorChen99 阅读(32) 评论(0) 推荐(0) 编辑
摘要:Git笔记 git本地仓库、远程仓库 本地仓库:修改后用git add file 将文件推到index暂存区,再使用git commit -m ‘message’,将修改推送到本地仓库 远程仓库:将本地仓库的修改推到远程仓库去 git 初始化 #在项目文件夹下E:\javaEE\GitDemo,项目 阅读全文
posted @ 2021-06-06 15:43 HumorChen99 阅读(2) 评论(0) 推荐(0) 编辑
摘要:安装crypto-js # yarn的安装 yarn add crypto-js # npm 的安装 npm install crypto-js 引入crypto-js let CryptoJS = require("crypto-js") HmacSHA256加密算法用密钥对字符串加密并使用Bas 阅读全文
posted @ 2021-06-04 09:27 HumorChen99 阅读(65) 评论(0) 推荐(0) 编辑
摘要:题目 public class Test { public static void main(String[] argss) { String str1 = new StringBuilder("58").append("tongcheng").toString(); System.out.prin 阅读全文
posted @ 2021-06-03 09:36 HumorChen99 阅读(3) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示