我知道可以配置Spring应用程序withouttheuseofXMLconfigfiles,并致力于此方法。但是,我不确定如何声明HTTPinterceptors以这种方式。我正在使用thistutorial,它声明了以下XML。welcomeController/WEB-INF/pages/.jsp如何在Java中执行此操作?没有@Interceptor注释。SpringApplication.java@SuppressWarnings("WeakerAccess")@SpringBootApplication@PropertySources(value={@PropertySou