feat: 优化模式

This commit is contained in:
wangyu 2024-10-12 16:27:24 +08:00
parent 2f9404ebf7
commit 8d75560d7d
2 changed files with 8 additions and 8 deletions

14
pom.xml
View File

@ -62,13 +62,13 @@
<!-- <scope>system</scope>--> <!-- <scope>system</scope>-->
<!-- <systemPath>${project.basedir}/lib/cas-client-core-3.1.12.jar</systemPath>--> <!-- <systemPath>${project.basedir}/lib/cas-client-core-3.1.12.jar</systemPath>-->
<!-- </dependency>--> <!-- </dependency>-->
<!-- <dependency>--> <dependency>
<!-- <groupId>edu.yale.its</groupId>--> <groupId>edu.yale.its</groupId>
<!-- <artifactId>cas-client-java</artifactId>--> <artifactId>cas-client-java</artifactId>
<!-- <version>7.0.8</version>--> <version>7.0.8</version>
<!-- <scope>system</scope>--> <scope>system</scope>
<!-- <systemPath>${project.basedir}/lib/sso-client-java-7.0.8.jar</systemPath>--> <systemPath>${project.basedir}/lib/sso-client-java-7.0.8.jar</systemPath>
<!-- </dependency>--> </dependency>
</dependencies> </dependencies>

View File

@ -70,7 +70,7 @@ public class CASContext {
ServerHttpResponse response = exchange.getResponse(); ServerHttpResponse response = exchange.getResponse();
response.setRawStatusCode(HttpStatus.FOUND.value()); response.setRawStatusCode(HttpStatus.FOUND.value());
response.getHeaders().setLocation(URI.create(url)); response.getHeaders().setLocation(URI.create(url));
return chain.filter(exchange.mutate().response(response).build()); return Mono.empty();
} }
ServerHttpRequest getRequest() { ServerHttpRequest getRequest() {