- 博客(12)
- 收藏
- 关注

原创 更改tokenendpoint中默认的url
更改tokenendpoint中默认的url一、首先自己写个类AuthServerConfig去继承AuthorizationServerConfigurerAdapter类二、复写方法configure(AuthorizationServerEndpointsConfigurer endpoints)三、在方法中设置endpoints.pathMapping("/oauth/authorize", urlPrefix+"/oauth/authorize"),前一个路径为默认路径,后一个为你希望替换的
2020-09-08 10:22:25
2145
原创 sqlServer使用pageHelper需要order by时会出现bug
sqlServer使用pageHelper需要order by时会出现bug
2021-05-11 09:29:07
879
原创 Error: Invalid or corrupt jarfile
Error: Invalid or corrupt jarfile打包到服务器运行报错
2021-05-10 14:01:05
5921
原创 gateway整合Hystrix详细教程
gateway整合Hystrix详细教程一、首先maven依赖导入 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-ribbon</artifactId> </dependency>二、设置yml文件,在routes
2020-12-15 17:34:23
3187
2
原创 gateway整合filters
Unable to find GatewayFilterFactory with name AddRequestParamter
2020-12-14 17:32:04
2594
原创 zoo.cfg file is missing
zoo.cfg file is missing一、首先解压好我们下载的zookeeper二、将conf目录下的zoo_sample.cfg文件,复制一份,重命名为zoo.cfg三、在我们的解压目录(apache-zookeeper-3.6.1-bin)创建一个data文件夹四、修改我们的zoo.cfg,将dataDir=/tmp/zookeeper,改为我们刚才第三步的data文件夹的目录...
2020-09-01 19:35:33
1657
原创 一段代码教你学会并查集
一段代码教你学会并查集public class Test2 {public static void main(String args[]){int A[] = {1,2,3,1,2,4,5,6,3};//9DSU dsu = new DSU(A.length,A);for(int i = 0;i<A.length;i++) {for(int j = i+1;j<A.length;j++) {//要在下面union加判断,因为1不知道最后的3是不是比他现在的首领大,所以就会认3做老大
2020-07-23 18:25:39
154
原创 IDEA部署web项目,绝对一次成功
IDEA部署tomcat项目首先直接用IDEA去open你的web项目打开Project Structure选中Modules,先把默认的Modules删掉,然后点击‘+’号,选择Import Modules,选择你要部署的项目,然后选择Create Modules from existing sources,然后一直next到最后。接下来就选择Facets,点击‘+’号,选择web,然后让你Choose Modules,就选中你上一步生成的Modules。接下来的步骤我将以图片形式展示IDEA部署tomc
2020-05-21 11:21:14
1289
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人