Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -18,7 +18,7 @@ public class ServiceLRUCache { | ... | @@ -18,7 +18,7 @@ public class ServiceLRUCache { |
18 | } | 18 | } |
19 | public ServiceLRUCache(int capacity) { | 19 | public ServiceLRUCache(int capacity) { |
20 | this.capacity = capacity; | 20 | this.capacity = capacity; |
21 | - this.serviceLRUcache = new ConcurrentHashMap<String, AbstractService>(200); | 21 | + this.serviceLRUcache = new ConcurrentHashMap<String, AbstractService>(capacity); |
22 | } | 22 | } |
23 | /** | 23 | /** |
24 | * serialVersionUID:TODO | 24 | * serialVersionUID:TODO | ... | ... |
... | @@ -3,7 +3,7 @@ application.message=\u8D75\u6D8C\u5728\u7EBFAPI GateWay\u6B22\u8FCE\u60A8 | ... | @@ -3,7 +3,7 @@ application.message=\u8D75\u6D8C\u5728\u7EBFAPI GateWay\u6B22\u8FCE\u60A8 |
3 | spring.application.name=apigateway | 3 | spring.application.name=apigateway |
4 | server.port=80 | 4 | server.port=80 |
5 | #server.address=192.168.0.162 | 5 | #server.address=192.168.0.162 |
6 | -server.address=192.168.1.102 | 6 | +#server.address=192.168.1.102 |
7 | 7 | ||
8 | es.host=192.168.0.162 | 8 | es.host=192.168.0.162 |
9 | es.port=9300 | 9 | es.port=9300 | ... | ... |
-
Please register or login to post a comment