哪个SpringREST注释处理页面加载事件?

哪个SpringREST注释处理页面加载事件?,spring,rest,spring-boot,quickbooks-online,Spring,Rest,Spring Boot,Quickbooks Online,我正在查看所有的SpringREST注释,但我想在加载页面时触发它?这是其中的一个,还是完全其他的东西。我使用的是REST模型视图 org.springframework.data.rest.repository.annotation.HandleBeforeSave (implements java.lang.annotation.Annotation) org.springframework.data.rest.repository.annotation.RepositoryEven

我正在查看所有的SpringREST注释,但我想在加载页面时触发它?这是其中的一个,还是完全其他的东西。我使用的是REST模型视图

org.springframework.data.rest.repository.annotation.HandleBeforeSave (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.RepositoryEventHandler (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.HandleAfterDelete (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.HandleBeforeRenderResources (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.HandleAfterLinkSave (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.HandleBeforeLinkSave (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.HandleAfterSave (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.HandleBeforeLinkDelete (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.RestResource (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.HandleBeforeDelete (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.ConvertWith (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.HandleAfterLinkDelete (implements java.lang.annotation.Annotation)
    org.springframework.data.rest.repository.annotation.HandleBeforeRenderResource (implements java.lang.annotation.Annotation)
我需要在加载页面时在Java中发生一些事情

@RepositoryEventHandler(myObject.class)
public class myIntuitObjectEventHandler {

com.intuit.ipp.data.myIntuitObject[] mio;

    @Autowired
    private myObjectRepository myObjectRepository; 


    @HandleAfterCreate
    public void handleBeforeCreate() {

        logger.out("Handle Before Create!");

    }

}
选项1:获取页面时使用请求映射。这样,每当您的用户向该控制器发出请求时,就会调用它。例如,每次用户点击localhost:8080/yourApp/yourService时,都会调用下面的方法

@RequestMapping(value="/yourService", method=RequestMethod.GET)
public String someMethod() { . . . };
选项#2:根据您的需要,通过客户端对以下任一事件进行AJAX调用来进行服务调用

$(window).load(function() { . . .});
$(document).ready(function(){ . . . });
选项1:获取页面时使用请求映射。这样,每当您的用户向该控制器发出请求时,就会调用它。例如,每次用户点击localhost:8080/yourApp/yourService时,都会调用下面的方法

@RequestMapping(value="/yourService", method=RequestMethod.GET)
public String someMethod() { . . . };
选项#2:根据您的需要,通过客户端对以下任一事件进行AJAX调用来进行服务调用

$(window).load(function() { . . .});
$(document).ready(function(){ . . . });

当页面加载时,您的意思是什么?如果您有一个需要调用的rest服务,请在window.onLoad()中使用javascript调用它。我该怎么做?是否有更多关于如何执行rest服务的文档加载页面时您的意思是什么?如果您有一个需要调用的rest服务,请在window.onLoad()中使用javascript调用它。我该怎么做?有关于如何进行rest服务的更多文档吗?哪里是查找rest信息的最佳位置?哪里是查找rest信息的最佳位置?