Springboot 中使用注解的方式自定义aop 后 其他的配置类启动报错

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.PARAMETER})
public @interface DBChange {

}
@Aspect
@Component
public class DynamicDataSourceAspect {

@Pointcut("@annotation(com.zhou.datasource.annotation.DBChange)")
private void pointcut() {

}


    启动其他的配置类就报错
    @Configuration

public class WebSocketConfig {

  /**
       *  这个Bean会自动注册使用@ServerEndpoint注解声明的websocket endpoint
 */
@Bean
public ServerEndpointExporter serverEndpointExporter() {
    return new ServerEndpointExporter();
}

    有没
    有spring 的大佬帮忙看看啊

https://blog.csdn.net/qq_43813937/article/details/104211834

有没有异常信息 贴一下看看,这种情况没遇到过

没遇到过,你把错误信息贴出来啊,不然也不知道报的什么错