Skip to content

Commit

Permalink
✨feat(config): 更新代理配置及优化查询排序实现
Browse files Browse the repository at this point in the history
- 更新 ng-ui 代理配置指向新端口
- 优化 QueryJson 排序逻辑处理默认情况
  • Loading branch information
vnobo committed Sep 5, 2024
1 parent a7a9499 commit c89797f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.google.common.base.CaseFormat;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.plate.boot.commons.exception.RestServerException;
import org.springframework.data.domain.Sort;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
Expand Down Expand Up @@ -148,7 +147,6 @@ private static Map.Entry<String, String> findKeyWord(String inputStr) {
int entry1Length = entry1.getKey().length();
int entry2Length = entry2.getKey().length();
return Integer.compare(entry1Length, entry2Length);
}).orElseThrow(() -> RestServerException.withMsg("Not support key words!",
"Not support key words: " + inputStr));
}).orElse(KEYWORDS.entrySet().iterator().next());
}
}
1 change: 0 additions & 1 deletion ng-ui/projects/web/src/core/rsocket.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export class RSocketCLientService {
}

requestStream(route?: string): Observable<MessageOut> {
console.log('requestStream');
route = route || 'request.stream';
const observable = new Observable<MessageOut>(subscriber => {
if (this.socketClient === null) {
Expand Down
4 changes: 2 additions & 2 deletions ng-ui/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/api": {
"target": "http://localhost:8080",
"target": "http://localhost:9001",
"secure": false,
"pathRewrite": {
"^/api": ""
Expand All @@ -9,7 +9,7 @@
"logLevel": "debug"
},
"/rsocket": {
"target": "ws://localhost:8080/",
"target": "ws://localhost:9001/",
"secure": false,
"ws": true,
"changeOrigin": true,
Expand Down

0 comments on commit c89797f

Please sign in to comment.