centos7安装k8s集群(2022版)
安装docker yum install docker sudo systemctl start docker sudo systemctl enable docker docker version 安装k8s集群 3.1 关闭防火墙 systemctl stop firewalld systemctl disable firewalld 3.2 关闭selinux setenforce 0 # 临时关闭 sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config # 永久关闭 1.3.3 关闭swap swapoff -a # 临时关闭;关闭swap主要是为了性能考虑 free # 可以通过这个命令查看swap是否关闭了 sed -...
How to access application.yml properties via lombok
For getting value from application.yml you should be using @Value from the package org.springframework.beans.factory.annotation.Value but you are using lombok's @Value <span class="hljs-string">package</span> <span class="hljs-string">com.example.demo;</span> <span class="hljs-string">import</span> <span class="hljs-string">org.springframework.beans.factory.annotation.Value;</span> &...