Hi both,

thanks for sharing your thoughts.

I think what you actually need is to look at 
https://apereo.github.io/cas/6.6.x/configuration/Configuration-Management-Extensions.html.
 
How to add a new Spring configuration class and to define new beans within 
in it is described there.

In practice, these are 2 simple steps:

   1. Create your XyzConfiguration.java and put its fully qualified name 
   into the corresponding "
   org.springframework.boot.autoconfigure.AutoConfiguration.imports" file.
   2. Inside the XyzConfiguration.java, define your beans, which might be 
   e.g. your new Spring MVC controller.

Besides that, one should be warned that since CAS 6.4.0-RC2, you can no 
longer rely on automatic beans' scanning - see 
https://groups.google.com/a/apereo.org/g/cas-user/c/HxZbT0i8KcQ/m/1GYUkh8LAgAJ 
for details.

Regards
Petr

On Monday, 11 September 2023 at 19:02:21 UTC+2 ztf863 wrote:

> Just register the bean in Configuration
>
> @Bean("authController")public AuthController authController(){
>     return new AuthController();
> }
>
> 在 2023/9/11 21:12, ztf863 写道:
>
> Thank you very much for your reply. After my attempts, I found a solution. 
> By adding the controller's package path address in the configuration file 
> META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports,
>  
> the controller can be identified.
> 在 2023/9/8 23:22, Ray Bon 写道:
>
> See 
> https://apereo.github.io/cas/6.6.x/webflow/Webflow-Customization-Extensions.html
>  and https://fawnoos.com/2022/07/22/cas66-ui-themes/
>
> Ray
>
> On Fri, 2023-09-08 at 16:15 +0800, ztf863 wrote:
>
> Notice: This message was sent from outside the University of Victoria 
> email system. Please be cautious with links and sensitive information.
>
> Hello, I am a beginner in CAS. I want to add a new controller to the CAS7 
> server, but it does not take effect. How should I implement it?Is there 
> any documentation for this?Thanks
>
>
> -- 
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/4d2bd11d62bd88b45cb9cc5ff9477b55e2850ba6.camel%40uvic.ca
>  
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/4d2bd11d62bd88b45cb9cc5ff9477b55e2850ba6.camel%40uvic.ca?utm_medium=email&utm_source=footer>
> .
>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/9f05b979-730a-4f8a-aeac-3718258a9f62n%40apereo.org.

Reply via email to