File tree 9 files changed +3114
-221
lines changed
9 files changed +3114
-221
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- contents : [ " summary.md" ] ,
3
- pathToPublic : " pdf/advanced-java.pdf" ,
4
- pdfOptions : " <options for puppeteer.pdf()>" ,
5
- removeTemp : true ,
6
- emulateMedia : " screen" ,
2
+ contents : [ ' summary.md' ] ,
3
+ pathToPublic : ' pdf/advanced-java.pdf' ,
4
+ pdfOptions : ' <options for puppeteer.pdf()>' ,
5
+ removeTemp : true ,
6
+ emulateMedia : ' screen' ,
7
7
} ;
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ yarn-debug.log*
25
25
yarn-error.log *
26
26
27
27
dist
28
- package-lock.json
29
28
lib
30
29
31
30
node_modules
Original file line number Diff line number Diff line change
1
+ .idea /
2
+ .github /
3
+ node_modules /
Original file line number Diff line number Diff line change 7
7
"bracketSpacing": true,
8
8
"jsxBracketSameLine": false,
9
9
"arrowParens": "avoid"
10
- }
10
+ }
Original file line number Diff line number Diff line change @@ -288,25 +288,25 @@ public class TokenBucket {
288
288
289
289
``` yaml
290
290
spring :
291
- cloud :
292
- gateway :
293
- routes :
294
- - id : requestratelimiter_route
295
-
296
- uri : lb://pigx-upms
297
- order : 10000
298
- predicates :
299
- - Path=/admin/**
300
-
301
- filters :
302
- - name : RequestRateLimiter
303
-
304
- args :
305
- redis-rate-limiter.replenishRate : 1 # 令牌桶的容积
306
- redis-rate-limiter.burstCapacity : 3 # 流速 每秒
307
- key-resolver : ' #{@remoteAddrKeyResolver}' # SPEL表达式去的对应的bean
308
-
309
- - StripPrefix=1
291
+ cloud :
292
+ gateway :
293
+ routes :
294
+ - id : requestratelimiter_route
295
+
296
+ uri : lb://pigx-upms
297
+ order : 10000
298
+ predicates :
299
+ - Path=/admin/**
300
+
301
+ filters :
302
+ - name : RequestRateLimiter
303
+
304
+ args :
305
+ redis-rate-limiter.replenishRate : 1 # 令牌桶的容积
306
+ redis-rate-limiter.burstCapacity : 3 # 流速 每秒
307
+ key-resolver : ' #{@remoteAddrKeyResolver}' # SPEL表达式去的对应的bean
308
+
309
+ - StripPrefix=1
310
310
` ` `
311
311
312
312
` ` ` java
@@ -329,37 +329,37 @@ KeyResolver remoteAddrKeyResolver() {
329
329
330
330
``` yaml
331
331
spring :
332
- cloud :
333
- nacos :
334
- discovery :
335
- server-addr : localhost:8848
336
- sentinel :
337
- transport :
338
- dashboard : localhost:8080
339
- port : 8720
340
- datasource :
341
- ds :
342
- nacos :
343
- server-addr : localhost:8848
344
- dataId : spring-cloud-sentinel-nacos
345
- groupId : DEFAULT_GROUP
346
- rule-type : flow
347
- namespace : xxxxxxxx
332
+ cloud :
333
+ nacos :
334
+ discovery :
335
+ server-addr : localhost:8848
336
+ sentinel :
337
+ transport :
338
+ dashboard : localhost:8080
339
+ port : 8720
340
+ datasource :
341
+ ds :
342
+ nacos :
343
+ server-addr : localhost:8848
344
+ dataId : spring-cloud-sentinel-nacos
345
+ groupId : DEFAULT_GROUP
346
+ rule-type : flow
347
+ namespace : xxxxxxxx
348
348
` ` `
349
349
350
350
- 配置内容在 nacos 上进行编辑
351
351
352
352
` ` ` json
353
353
[
354
- {
355
- " resource " : " /hello" ,
356
- " limitApp " : " default" ,
357
- " grade " : 1,
358
- " count " : 1,
359
- " strategy " : 0,
360
- " controlBehavior " : 0,
361
- " clusterMode " : false
362
- }
354
+ {
355
+ " resource " : " /hello" ,
356
+ " limitApp " : " default" ,
357
+ " grade " : 1,
358
+ " count " : 1,
359
+ " strategy " : 0,
360
+ " controlBehavior " : 0,
361
+ " clusterMode " : false
362
+ }
363
363
]
364
364
```
365
365
You can’t perform that action at this time.
0 commit comments