| | |
| | | package com.dy.sso.config; |
| | | |
| | | import com.dy.common.webListener.ConfigListener; |
| | | import com.dy.sso.util.SsoListener; |
| | | import jakarta.servlet.ServletContextListener; |
| | | import org.springframework.boot.web.servlet.ServletListenerRegistrationBean; |
| | | import org.springframework.context.annotation.Bean; |
| | |
| | | /** |
| | | * 内部提供listener |
| | | * @return 注册Bean |
| | | */ |
| | | @Bean |
| | | public ServletListenerRegistrationBean<? extends ServletContextListener> reqSsoListener() { |
| | | ServletListenerRegistrationBean<SsoListener> listenerRegistrationBean = new ServletListenerRegistrationBean<>(); |
| | |
| | | listenerRegistrationBean.setOrder(order_sso); |
| | | return listenerRegistrationBean; |
| | | } |
| | | */ |
| | | } |