后端抛出 自己定义的异常（继承runtimeException），在前端通过spring 接受到的异常时 runtimeException，请问怎么解决

ApplicationContextAware, BeanClassLoaderAware, BeanNameAware, InitializingBean, DisposableBean {
    private transient ApplicationContext applicationContext;
    private ClassLoader beanClassLoader;
    
    private Object lazyProxy;
    
    protected String id;
    
    private String key;
    /**
     * The interface class of the reference service
     */
    private Class<?> interfaceClass;
    /*
     * remote service interface class name
     */
    
    private String interfaceName;
    
    private Map<String, Object> referenceProps;
    
    private MutablePropertyValues propertyValues;
    
    private ReferenceConfig referenceConfig;
    
    private List<Map<String,Object>> sources = new ArrayList<>();
    public ReferenceBean() {
        super();