From 2fb93f2b5d31d13b641bfa454c7eae717a13a376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Sat, 19 Jul 2025 08:53:40 +0800 Subject: [PATCH] xx --- gateway/.idea/workspace.xml | 63 ++++++++---------- gateway/target/classes/application.properties | 15 +++++ .../tuoheng/gateway/GatewayApplication.class | Bin 0 -> 748 bytes .../gateway/config/SecurityConfig.class | Bin 0 -> 3453 bytes oidc/pom.xml | 4 -- .../target/classes/application.properties | 1 + .../resourceservice/HelloController.class | Bin 0 -> 1223 bytes .../ResourceServiceApplication.class | Bin 0 -> 788 bytes .../target/classes/application.properties | 1 + .../resourceservice/HelloController.class | Bin 0 -> 1223 bytes .../ResourceServiceApplication.class | Bin 0 -> 788 bytes 11 files changed, 43 insertions(+), 41 deletions(-) create mode 100644 gateway/target/classes/application.properties create mode 100644 gateway/target/classes/com/tuoheng/gateway/GatewayApplication.class create mode 100644 gateway/target/classes/com/tuoheng/gateway/config/SecurityConfig.class create mode 100644 resourceservice/target/classes/application.properties create mode 100644 resourceservice/target/classes/com/tuoheng/resourceservice/HelloController.class create mode 100644 resourceservice/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class create mode 100644 resourceserviceb/target/classes/application.properties create mode 100644 resourceserviceb/target/classes/com/tuoheng/resourceservice/HelloController.class create mode 100644 resourceserviceb/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class diff --git a/gateway/.idea/workspace.xml b/gateway/.idea/workspace.xml index 267654b..c7b02d0 100644 --- a/gateway/.idea/workspace.xml +++ b/gateway/.idea/workspace.xml @@ -5,18 +5,7 @@ - - - - - - - - - - - - { + "keyToString": { + "Maven.Unknown [clean].executor": "Run", + "Maven.gateway [clean].executor": "Run", + "Maven.gateway [package].executor": "Run", + "RequestMappingsPanelOrder0": "0", + "RequestMappingsPanelOrder1": "1", + "RequestMappingsPanelWidth0": "75", + "RequestMappingsPanelWidth1": "75", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.git.unshallow": "true", + "Spring Boot.GatewayApplication.executor": "Debug", + "git-widget-placeholder": "main", + "kotlin-language-version-configured": "true", + "last_opened_file_path": "/Users/sunpeng/workspace/remote/oauth2/gateway", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "project.structure.last.edited": "SDK", + "project.structure.proportion": "0.0", + "project.structure.side.proportion": "0.0", + "settings.editor.selected.configurable": "MavenSettings", + "vue.rearranger.settings.migration": "true" } -}]]> +} diff --git a/gateway/target/classes/application.properties b/gateway/target/classes/application.properties new file mode 100644 index 0000000..83f1639 --- /dev/null +++ b/gateway/target/classes/application.properties @@ -0,0 +1,15 @@ +server.port=8080 + +spring.cloud.gateway.routes[0].id=resource-server-a +spring.cloud.gateway.routes[0].uri=http://localhost:8081 +spring.cloud.gateway.routes[0].predicates[0]=Path=/a/** +spring.cloud.gateway.routes[0].filters[0]=RewritePath=/a/(?.*), /api/${segment} +spring.cloud.gateway.routes[0].filters[1]=TokenRelay + +spring.cloud.gateway.routes[1].id=resource-server-b +spring.cloud.gateway.routes[1].uri=http://localhost:8082 +spring.cloud.gateway.routes[1].predicates[0]=Path=/b/** +spring.cloud.gateway.routes[1].filters[0]=RewritePath=/b/(?.*), /api/${segment} +spring.cloud.gateway.routes[1].filters[1]=TokenRelay + +spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://localhost:9000/oauth2/jwks \ No newline at end of file diff --git a/gateway/target/classes/com/tuoheng/gateway/GatewayApplication.class b/gateway/target/classes/com/tuoheng/gateway/GatewayApplication.class new file mode 100644 index 0000000000000000000000000000000000000000..0e4fc1f970846a280ba821c5de9cb097ce7c3213 GIT binary patch literal 748 zcma)4O;6iE5PcgG986juP$;wurE1g%*aIm&<&SrE7$;SrvJlQ|45c;|>|*Q9a3KSenK*O9;&=a# zeo4>iIePr;@i%#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gr=~%S(w1=ywb^17 - - org.springframework.boot - spring-boot-starter-data-jpa - org.springframework.boot spring-boot-starter-oauth2-authorization-server diff --git a/resourceservice/target/classes/application.properties b/resourceservice/target/classes/application.properties new file mode 100644 index 0000000..bafddce --- /dev/null +++ b/resourceservice/target/classes/application.properties @@ -0,0 +1 @@ +server.port=8081 \ No newline at end of file diff --git a/resourceservice/target/classes/com/tuoheng/resourceservice/HelloController.class b/resourceservice/target/classes/com/tuoheng/resourceservice/HelloController.class new file mode 100644 index 0000000000000000000000000000000000000000..f5ffdcf30f8a079c5d90e338de7c091abba1275a GIT binary patch literal 1223 zcmb7D?M@Rx6g|@xc3a99&%$+;;o^$WHzyJLB1z;Jg22u=_hVNQB@>{}dT1td|q#7a= z>PR+(wILkGU-vz&e8&;WK!#!DkRNf&;pDzuKNJnk(7!4@sn;0N<=H)k%(}lXa!4ba zM<4nbhHdGI_mNu{YM0j?!BDXM26y(jlJU7?%;=U38RqT(fK+AZYsDxTM$5Byf-Tb0 zv9@?XciEb3dR#|}axP!KUv0Z5RBBpDuUYM}w8>T1D9Xf6>u-O^5{ZKYbfZ&L%fhmwK&41?Wx6f2J@ zOjDbJh`P2?zRLEhrBl!lb&me=HIT&s{qt=HS_kPw^~NxT8lim(qbSfi zMAk9-#y^3DxRC_@f(+eLf}bdUJjE@$QkW>*`Hs73e5e#2oZ-cu7X0U{p1YkLNL7hu1D`ZLG71>gFodAt#Re`_W Ch&Y%4 literal 0 HcmV?d00001 diff --git a/resourceservice/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class b/resourceservice/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class new file mode 100644 index 0000000000000000000000000000000000000000..c558287df0153a799a7d02790457f71c97c70ff6 GIT binary patch literal 788 zcmbVKO;6iE5PcgG986juv`{D&;udn~-T)~TQX7erp@^XLz-etZ&Qg0fTCZvU7N=G{ z^au1uRh>1F@F84!@Qml{&CHwq^Y_K%?5nnQCdLo8vXgBF$< z)*_|lMVZIaUW+)B4Bf~iA{z^S^p>2zdY546!EzM!Wu>! aTi7Q58~R%G7)Uj+Q^{StCGFep0sjE6K-3-p literal 0 HcmV?d00001 diff --git a/resourceserviceb/target/classes/application.properties b/resourceserviceb/target/classes/application.properties new file mode 100644 index 0000000..8d51d0c --- /dev/null +++ b/resourceserviceb/target/classes/application.properties @@ -0,0 +1 @@ +server.port=8082 \ No newline at end of file diff --git a/resourceserviceb/target/classes/com/tuoheng/resourceservice/HelloController.class b/resourceserviceb/target/classes/com/tuoheng/resourceservice/HelloController.class new file mode 100644 index 0000000000000000000000000000000000000000..59c413afafee72fb47bfc1155472e569d315d3d5 GIT binary patch literal 1223 zcmb7D?M@Rx6g@*rcUwwji?;0J{Y>jwy0LSjgikRk~s7~`*L8QQ_^?q+rt!UOm| z`U}*=2k@bccc(?5{J|!j*?aHIJ?EZ#=l7ofUn>@(CLc+!XgVh#c$eY5(Aj8DEa9zK+ zul#m#TZDe38lqSe>QFYsAEsB6>ns47xygO&!UJ)hTJ)w zs_!+a;6v_4Vr!paw6t-NNF1)%ctA(OPRTYN5p=H*7N!}>4ZrQ^$ZrW!UUjAFUUQ6! zYrdzI@47-UB-i{s!7x;no_HU%>q71Dx=WsX)o*Zjmn#|DU1w6a;$r5i|AA3q=x@c% zBVkJ2s!YSFHx#ppV&HqBA#tg36f9gOaU7fxS?sjwEYHe?uGO@XB-aH`XZ$LwlrUYB zO^@qH5!_NQn`>to-;TU^9(H9YNt`#H=WDJdRl%@O^;OdegP6p=;%#x{tIy7ns5^D( z?K%A4S?8V5Bta09C5cS$88QwJq|?ln(>*?KmEEbLRwee_L^m*$mn8agx zvGK1DL;xvTOJq5;Gur!SPr$yJ@C>bS7)WE5)@^4agmCGeq~A3H_i6ccCWRQ_T2^DCuEAciRrlNf+rJw}nk6us>^3>(-&Cv_Lr v#x!w#O7PFj4Voq6c}|`e_J6VmVsE#*;!*o7?W9aIWJqLI3qmWrUT=*lygiRp|Tc|5>xbp>L< z2k=o9*F&Ua5jI%zy}EDvocsL$@d>~ob{eQ)ET#uDw49P-i%ZO~zeehLX~(%uQiqnM-@4V#&|OcK_8r8I4jE3#W{3pn(qonoTTX ziJ@a`!t;?;I=QkUlefnH<&iOt_elW{BG1JQK;1BT+a*kd{!&F=O9}yeUY#*h4_;