寻找最大值最小值,求和
reduce版
总和
var array [1,2,3,4,5]
array.reduce((a, b) > a b)
示例: 最大值
var array [12, 34, 22, 32, 21]
array.reduce((a, b) > a > b ? a : b)
示例: 最小值
var array [12, 34, 22, …
Git push报错:
git push -u origin main fatal: unable to access ‘https://github.com/xxx/xxx.git/’: Failed to connect to github.com port 443 after 21030 ms: Couldn’t connect to server
$ git push -u origin main
fatal: unable to access https://g…
The dependencies of some of the beans in the application context form a cycle: ┌──->──┐ | com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
解决:yml添加一下配置 spring: main: allow-circular-references: true