03 2022 档案
摘要:server { listen 80; server_name localhost; client_max_body_size 1024M; location / { root e:wwwroot; //思路:通过/将所有的请求,转发给root处理 index index.html; } } 一.n
阅读全文
摘要:C:\Windows\System32\drivers\etc的hosts文件,在里面添加上:192.30.253.112 github.com151.101.88.249 github.global.ssl.fastly.net 欢迎关注作者微信公众号
阅读全文
摘要:第一种 1、登录进入MySQL linux登录的:mysql -u username -p ,然后输入密码,输入SQL:show variables like ‘%sql_mode’; 2.容器下的mysql配置文件在/etc/mysql/mysql.conf.d路径下的mysqld.cnf文件 修
阅读全文
摘要:application.properties # spring server.servlet.contextPath=${SERVER_SERVLET_CONTEXTPATH:/nacos} server.contextPath=/nacos server.port=${NACOS_APPLICAT
阅读全文
摘要:问题:9848报错新版本部署Nacos2.0版本相比1.X新增了gRPC的通信方式,因此需要增加2个端口。新增端口是在配置的主端口(server.port)基础上,进行一定偏移量自动生成 端口 与主端口的偏移量 描述9848 1000 客户端gRPC请求服务端端口,用于客户端向服务端发起连接和请求9
阅读全文
摘要:示例 String json = "{\"resultCode\":\"SUCCESS\",\"resultDesc\":\"SUCCESS\",\"userProfile\":{\"userId\":\"901228507\",\"registTime\":\"20180622161442\",\
阅读全文
摘要:代码如下:获取13位时间戳 private static void test14() { System.out.println(System.currentTimeMillis()); System.out.println(Calendar.getInstance().getTimeInMillis
阅读全文
摘要:代码如下 String[] words = new String[]{"Hello","World"}; List<String[]> a = Arrays.stream(words) .map(word -> word.split("")) .distinct() .collect(toList(
阅读全文
摘要:代码如下 //设备总数 List<String> strList = devices.stream().map(Device::getDevice_id).collect(Collectors.toList()); //将Object数组转换为String数组 String[] strByte =
阅读全文
摘要:Double d = Double.parseDouble(object.toString());//转intint intBalance = d==null ? 0 : d.intValue();//转doubleDouble d = Double.parseDouble(object.toStr
阅读全文