摘要:
一、监听路由 watch: { // 方法1 //监听路由是否变化 '$route' (to, from) { if(to.query.id !== from.query.id){ this.id = to.query.id; this.init();//重新加载数据 } } } //方法 2 设置 阅读全文
摘要:
Application启动类添加注解 @EnableOpenApiapplication.yml配置如下 swagger: enabled: false 配置类 @Configurationpublic class SwaggerConfig { @Value("${swagger.enabled} 阅读全文
摘要:
let: 1.不支持变量声明预解析 2.支持块作用域 3.不允许重复声明 const: 1.不支持变量声明预解析 2.支持块作用域 3.不允许重复声明 4.常量 扩展运算符: ... 把数组/对象转成参数序列(使用逗号分割的序列) ['a','b','c'] => 'a','b','c' {left 阅读全文
摘要:
#安装前提 #各个机器设置自己的域名 hostnamectl set-hostname xxxxxxxx ##SELinux设置为permissive模式(相当于将其禁用) sudo setenforce 0 //临时禁用 sudo sed -i 's/^SELINUX=enforcing$/SEL 阅读全文
摘要:
#查看镜像docker images#修改容器内容##容器内部修改 docker exec -it 容器id /bin/bash:##挂载数据到外部修改 :ro只读 :rw读写 ***注意保证主机中目录内文件不为空docker run --name=mynginx -d --restart=alwa 阅读全文
摘要:
pom.xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.12.RELEASE</version> <re 阅读全文
摘要:
阅读全文
摘要:
//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 * 阅读全文
摘要:
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> <version>1.18.20</version></dependency> 20 阅读全文
摘要:
maven打包 提示Please refer to ****\target\surefire-reports for the individual test results.pom中添加 <build> <plugins> <plugin> <groupId>org.apache.maven.plu 阅读全文