springboot两种方式获取配置文件中的值 Value注解与ConfigurationProperties注解的使用

首先value注解的使用controller代码package com.quan.controller;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;import com
分类: 其他 发布时间: 03-21 10:32 阅读次数: 0

拉姆达表达式groupingby后续操作

public WorkFaceAnalysisResponse getWorkFaceAnalyse(LocalDate startDate, LocalDate endDate) { Integer accessWorkFaceCount = kpiConfigDao.getAccessWorkFaceCount(); Integer recentlyAccessWorkFaceCount = kpiConfigDao.getRecentlyAccessWorkFa...
分类: 其他 发布时间: 03-21 10:32 阅读次数: 0

git clone The requested URL returned error: 403

吃水不忘跳水人,参考链接
分类: 其他 发布时间: 03-21 10:31 阅读次数: 0

多模块项目构建时,无法加载主类

参考链接
分类: 其他 发布时间: 03-21 10:31 阅读次数: 0

干掉mapper.xml!MyBatis新特性动态SQL真香!

参考链接
分类: 其他 发布时间: 03-21 10:31 阅读次数: 0

将springboot项目打war包,放入tomcat运行启动后,js css png加载不出来的解决办法

springboot项目如何达成war包,下面我提供一个链接,大家可以自行参考。重要讲标题的问题。首先只要将war文件放入webapps文件夹下,其次双击bin文件夹下的这个文件进行启动war包.第一次启动后,打开项目注意路径是 http://localhost:8080(tomcat配置文件 server.xml配置文件中的端口号)/(webapps文件夹下 war包名称的.前缀) 即可启动项目。比如我的是我启动项目的路径就是 http://localhost:8080/lock完
分类: 其他 发布时间: 03-21 10:31 阅读次数: 0

hznu-1892-永远的17岁

#include <bits/stdc++.h>using namespace std;const int N = 1e5 + 10;int main() { int T; scanf("%d", &T); while (T--) { int n; scanf("%d", &n); if (n < 15) puts("-1"); else printf("%d\n", n - 7); } return 0;}
分类: 其他 发布时间: 03-21 10:30 阅读次数: 0

Game of Hyper Knights ---LightOJ - 1315

这道题有两个坑:①棋子的移动方向,不存在返回走的路,所以经过的点不需要进行vis标记②这个棋盘只有上界和左界,题目只是给出点x,y的坐标范围,没给出棋盘范围 找bug找吐了,所以按照棋子从(500,500)往右上方走,右界应是750,从(500,500)往左下方走,下界是750数组开大一点还是有好处的其他的算是普通sg函数的递归写法。sg函数的递归写法需要注意一个点int getSG(int x,int y){ if(sg[x][y]!=-1) return sg[x][y]; bool vi
分类: 其他 发布时间: 03-21 10:30 阅读次数: 0

Drainage Ditches --网络流

① dinic#include <bits/stdc++.h>using namespace std;const int N=2e2+10;const int M=4e2+10;const int inf=0x3f3f3f3f;int head[N],cnt;struct edge{ int next,to,cap,flow;}e[M];void add(int u,int v,int cap,int flow){ e[cnt].to=v; e[cnt].next=he
分类: 其他 发布时间: 03-21 10:30 阅读次数: 0

poj 2135--Farm Tour--费用流

#include <cstdio>#include <algorithm>#include <cstring>#include <vector> #include <queue>using namespace std;const int N=1e3+10;const int inf=0x3f3f3f3f;struct Edge{ int from,to,cap,flow,w;};vector<Edge>ed
分类: 其他 发布时间: 03-21 10:30 阅读次数: 0

无题II hdu-2236

这是一个简单的游戏,在一个n*n的矩阵中,找n个数使得这n个数都在不同的行和列里并且要求这n个数中的最大值和最小值的差值最小。这道题是道不错的二分图题首先要对答案进行二分了,这个很自然就想到了;但在后面对二分是否符合的判断思路卡住了后面才想到使用枚举从(最小值,最小值+二分的差值)枚举这个区间进行行列匹配。好题!!!详情见如下代码#include <cstdio>#include <algorithm>#include <cstring>#include
分类: 其他 发布时间: 03-21 10:29 阅读次数: 0

最短路-HZNUoj-2798 (使用线段树来进行区间压缩)

DescriptionZC 家所在的小区住着很多学妹,为了方便和学妹们联络感情,ZC 大佬决定在原有的道路上,再建一些道路。由于ZC 太强了,它可以搭建以下两种道路:111 uuu LLL RRR www:对于区间 L,R 中的每一个位置 i,搭建一条 u−>iu -> iu−>i 的长度为 w 道路。222 LLL RRR uuu www:对于区间 L,R 中的每一个位置 i,搭建一条 i−>ui -> ui−>u 的长度为 w 道路。已知 ZC 的家在 1 号
分类: 其他 发布时间: 03-21 10:29 阅读次数: 0

杭电多校部分习题

Tokitsukaze and Rescuehdu6797_传送门思路对最多5个边进行删除操作,即将边权值设置成 infinfinf即可对于每一次的删边操作,枚举每一次跑的最短路径中的 n−1n-1n−1条边最后在删了k次边后再跑一遍 dijkstradijkstradijkstra由于边比较小,直接使用邻接矩阵forforfor循环跑一遍即可,身边有人用链式向前星会莫名超时,我也不懂,8s是绰绰有余的#include <bits/stdc++.h>using namespa
分类: 其他 发布时间: 03-21 10:29 阅读次数: 0

组合数学--Set1 hdu-6825

Problem DescriptionYou are given a set S=1..nS={1..n}S=1..n. It guarantees that n is odd. You have to do the following operations until there is only 1 element in the set:Firstly, delete the smallest element of SSS. Then randomly delete another element f
分类: 其他 发布时间: 03-21 10:29 阅读次数: 0

队内训练(三)

Road To The 3rd Building - HDU_6827传送门思路先进行一遍处理前nnn项和 sum(n)sum(n)sum(n)对每个例子全部写一遍发现,每一个数都有特定的出现次数,在一段n/2n/2n/2的权中,第一个只贡献一次,第二次贡献两次,依此类推…所以可得每次的cnt[i]=cnt[i−1]+(sum[n−i+1]−sum[i−1])cnt[i]=cnt[i-1]+(sum[n-i+1]-sum[i-1])cnt[i]=cnt[i−1]+(sum[n−i+1]−sum[
分类: 其他 发布时间: 03-21 10:28 阅读次数: 0

队内训练(一)

Fibonacci Sum-HDU 6755传送门思路对着式子瞎弄一顿,最后把通项公式套进去发现ans=∑i=0n15×[(1+52)ic−(1−52)ic]k=15∑i=0n([1+52]ic+[−(1−52)ic])kans=\sum_{i=0}^{n}\frac{1}{\sqrt{5}}×[(\frac{1+\sqrt{5}}{2})^{ic}-(\frac{1-\sqrt{5}}{2})^{ic}]^k\\=\frac{1}{\sqrt{5}}\sum_{i=0}^{n}([\frac{1+
分类: 其他 发布时间: 03-21 10:28 阅读次数: 0

Contest of Rope Pulling-hdu 6804-随机排序

Rope Pulling, also known as Tug of War, is a classic game. Zhang3 organized a rope pulling contest between Class 1 and Class 2.There are n students in Class 1 and m students in Class 2. The ith student has strength wi and beauty-value vi. Zhang3 needs to
分类: 其他 发布时间: 03-21 10:28 阅读次数: 0

2020 ICPC Universidad Nacional de Colombia Programming Contest

题目ABCDEFGHIJKLMNsolved∙\bullet∙∙\bullet∙∙\bullet∙♠\spadesuit♠∙\bullet∙♠\spadesuit♠♠\spadesuit♠∙\bullet∙♠\spadesuit♠ ♠\spadesuit♠比赛时通过;∙\bullet∙:赛后通过;⊘\oslash⊘ :比赛时尝试了未通过;∘\circ∘:比赛时未尝试A.Approach这题有个坑点,首先三分算法肯定是想得到的...
分类: 其他 发布时间: 03-21 10:28 阅读次数: 0

Free restricted flights (拆边建图)

传送门这道题讲的是两个人去旅行,然后他们会在一个地方(不是两者的起点)碰头,并且最后还要回到各自的起点,然后有 kkk 张免费的机票,求总的价值以及他们可能会碰头的其中一个点。由于有 kkk 张免费的机票,并且难以模拟在哪一趟兑换这张免费机票,所以采用拆边的做法,将一段路拆分成 k+1k+1k+1 段,第一段表示需要付费的票,后面分别表示使用第一张免费票的路线,第二张…第 kkk 张这里后面回到起点的做法,直接在原来给出的建图的基础上建立反边即可,便把起点当作源点,按部就班的跑一遍 dijkstrad
分类: 其他 发布时间: 03-21 10:27 阅读次数: 0

Environment-Friendly Travel ( 二维dijkstra)

传送门这道题题意就不说了,主要是有一个二维数组进行 visvisvis 标记,因为该段路程的长度上限 BBB 仅仅只是100,所以完全可以用数组标记dijkstradijkstradijkstra 的优先队列排序是先二氧化碳排放量,再进行长度,vis[point][length]vis[point][length]vis[point][length] 表示在点 vvv 长度为 lenlenlen 的已经访问过了,直接跳过这个情况,剩下的就按部就班的 dijkstradijkstradijkstra#
分类: 其他 发布时间: 03-21 10:27 阅读次数: 0