sentinel module support to jdk 17

pull/2948/head
ruansheng 2 years ago
parent fead2a36c1
commit eebe114291

@ -109,7 +109,7 @@
<modules>
<!-- todo disable the following modules temporarily -->
<module>spring-cloud-alibaba-dependencies</module>
<!--<module>spring-cloud-alibaba-examples</module>-->
<!-- <module>spring-cloud-alibaba-examples</module> -->
<module>spring-cloud-alibaba-docs</module>
<module>spring-cloud-alibaba-starters</module>
<!--<module>spring-cloud-alibaba-coverage</module>-->

@ -17,16 +17,14 @@
<modules>
<module>spring-cloud-starter-alibaba-nacos-config</module>
<module>spring-cloud-starter-alibaba-nacos-discovery</module>
<!-- todo seata using sentinel -->
<!--<module>spring-cloud-starter-alibaba-seata</module>-->
<module>spring-cloud-starter-alibaba-seata</module>
<module>spring-cloud-starter-stream-rocketmq</module>
<module>spring-cloud-starter-bus-rocketmq</module>
<module>spring-cloud-starter-alibaba-sidecar</module>
<!-- todo sentinel is not supported JDK 17 for now-->
<!--<module>spring-cloud-circuitbreaker-sentinel</module>-->
<!--<module>spring-cloud-starter-alibaba-sentinel</module>-->
<!--<module>spring-cloud-alibaba-sentinel-datasource</module>-->
<!--<module>spring-cloud-alibaba-sentinel-gateway</module>-->
<module>spring-cloud-circuitbreaker-sentinel</module>
<module>spring-cloud-starter-alibaba-sentinel</module>
<module>spring-cloud-alibaba-sentinel-datasource</module>
<module>spring-cloud-alibaba-sentinel-gateway</module>
<module>spring-cloud-alibaba-commons</module>
</modules>

@ -86,8 +86,9 @@ public class SentinelWebAutoConfiguration implements WebMvcConfigurer {
}
else {
if (StringUtils.hasText(properties.getBlockPage())) {
sentinelWebMvcConfig.setBlockExceptionHandler(((request, response,
e) -> response.sendRedirect(properties.getBlockPage())));
// todo support jakarta servlet
// sentinelWebMvcConfig.setBlockExceptionHandler(((request, response,
// e) -> response.sendRedirect(properties.getBlockPage())));
}
else {
sentinelWebMvcConfig

Loading…
Cancel
Save