摘要: 一、监听路由 watch: { // 方法1 //监听路由是否变化 '$route' (to, from) { if(to.query.id !== from.query.id){ this.id = to.query.id; this.init();//重新加载数据 } } } //方法 2 设置 阅读全文
posted @ 2022-01-16 13:36 TIFOSI_Z 阅读(3301) 评论(0) 推荐(0) 编辑
摘要: Application启动类添加注解 @EnableOpenApiapplication.yml配置如下 swagger: enabled: false 配置类 @Configurationpublic class SwaggerConfig { @Value("${swagger.enabled} 阅读全文
posted @ 2022-01-12 10:13 TIFOSI_Z 阅读(144) 评论(0) 推荐(0) 编辑
摘要: let: 1.不支持变量声明预解析 2.支持块作用域 3.不允许重复声明 const: 1.不支持变量声明预解析 2.支持块作用域 3.不允许重复声明 4.常量 扩展运算符: ... 把数组/对象转成参数序列(使用逗号分割的序列) ['a','b','c'] => 'a','b','c' {left 阅读全文
posted @ 2022-01-09 19:40 TIFOSI_Z 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #安装前提 #各个机器设置自己的域名 hostnamectl set-hostname xxxxxxxx ##SELinux设置为permissive模式(相当于将其禁用) sudo setenforce 0 //临时禁用 sudo sed -i 's/^SELINUX=enforcing$/SEL 阅读全文
posted @ 2022-01-05 00:14 TIFOSI_Z 阅读(22) 评论(0) 推荐(0) 编辑
摘要: #查看镜像docker images#修改容器内容##容器内部修改 docker exec -it 容器id /bin/bash:##挂载数据到外部修改 :ro只读 :rw读写 ***注意保证主机中目录内文件不为空docker run --name=mynginx -d --restart=alwa 阅读全文
posted @ 2022-01-04 22:22 TIFOSI_Z 阅读(47) 评论(0) 推荐(0) 编辑
摘要: pom.xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.12.RELEASE</version> <re 阅读全文
posted @ 2022-01-01 01:29 TIFOSI_Z 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-01-01 01:14 TIFOSI_Z 阅读(2007) 评论(0) 推荐(0) 编辑
摘要: //lsof -i TCP:3306 查看占用 [root@cen8 ~]# lsof -i TCP:3306 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME docker-pr 1845 root 4u IPv4 50569 0t0 TCP * 阅读全文
posted @ 2021-12-30 22:58 TIFOSI_Z 阅读(723) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> <version>1.18.20</version></dependency> 20 阅读全文
posted @ 2021-12-24 14:32 TIFOSI_Z 阅读(71) 评论(0) 推荐(0) 编辑
摘要: maven打包 提示Please refer to ****\target\surefire-reports for the individual test results.pom中添加 <build> <plugins> <plugin> <groupId>org.apache.maven.plu 阅读全文
posted @ 2021-12-17 16:57 TIFOSI_Z 阅读(996) 评论(0) 推荐(0) 编辑