package com.webgame.webgamebackend; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.scheduling.annotation.EnableScheduling; @SpringBootApplication @EnableAspectJAutoProxy(proxyTargetClass = true) // 启用基于 AspectJ 的自动代理功能 支持使用AOP功能 @EnableScheduling // 启用定时任务(房间超时清理) public class WebgameBackendApplication { public static void main(String[] args) { SpringApplication.run(WebgameBackendApplication.class, args); } }