编程笔记
-
springmvc多文件上传
多文件上传和单文件其实没啥区别,将接收的 MultipartFile 类变成数组或集合就行了。 代码: @RequestMapping("/upload") public String upload(String desc, MultipartFile[] myfile) throws IOException { for (M…
-
Matn数学工具类
Matn数学工具类 这个方法中有许多数学的方法 我们看几个常用的 public static void main(String[] args) {// 向上取整 System.out.println(Math.ceil(9.8)); System.out.println(Math.ceil(8.8)); System.out.print…
-
针对github上部分安装错误的解决方案
报错: yarn : 无法加载文件 C:/Users/1/AppData/Roaming/npm/yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。 解…
-
Jenkins构建项目连接Repository URL的填坑之路
提示Unable to access the repository。点击构建后,构建失败提示:org.tmatesoft.svn.core.SVNException: svn: E175002: SSL handshake failed: 'The server selected protocol version TLS10 is not accepted by …
-
POJ - 3279 Fliptile 【状态压缩、dfs】
题目简述 Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipulate an M × N grid (1 ≤ M ≤ 15; …
-
Invalid .internal.selfref detected and fixed by taking a (shallow) copy
see the solution and explanations on github and StackOverFlow.
-
SpringCloud-Alibaba学习(四):Ribbon负载均衡
目录 Ribbon负载均衡 1、简介 2、Ribbon 使用 3、Ribbon 工作流程 4、Ribbon 源码了解 5、Ribbon 的负载均衡策略 切换 Ribbon 默认的负载均衡策略 Ribbon负载均衡 1、简介 Ribbon 是 Netflix 公司开源的一个负载均…
-
庆祝香港回归祖国 25 周年大会 All In One
庆祝香港回归祖国 25 周年大会 All In One <iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="315" src…
-
IdentityServer4 如何修改绑定路径 ,修改.well-known/openid-configuration 返回的前缀
4.0已经删除了以下属性,所以这样不行 services.AddIdentityServer(options => { //4.0已经删除此属性 options.PublicOrigin = "https://my.id.server"; }); 正确的是直接使用ASP.NET Core转发标头方法: app.…
-
mqtt模式--Work 模式--公平分发
rabbitmq 使用带有 perfetchCount = 1 设置的 basicQos 方法。当消费者接受处理并确认前一条消息前,不向此消费者发送新消息,会分配给其他空闲的消费者。 package com.tszr.work; import com.rabbitmq.client.Chan…