

Apple 美区礼品卡购买地址:Buy Apple Gift Cards - Apple

获取 Spring Boot 启动类信息:
java1 2 3 4 5 6 7 8 9 10 11import org.springframework.boot.context.event.ApplicationStartedEvent; import org.springframework.context.ApplicationListener; import org.springframework.stereotype.Component; @Component public class StorageStartApplicationClassListener implements ApplicationListener<ApplicationStartedEvent> { @Override public void onApplicationEvent(ApplicationStartedEvent event) { Class<?> mainApplicationClass = event.getSpringApplication().getMainApplicationClass(); } }上述示例使用
ApplicationStartedEvent事件,也可以使用ApplicationReadyEvent事件。

Internet Download Manager Activation Script:
lstprjct/IDM-Activation-Script快速激活:
powershell1iex(irm is.gd/idm_reset)
引入 Spring Boot 依赖的两种方式:
Parent
xml1 2 3 4 5<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.1.2</version> </parent>依赖管理
xml1 2 3 4 5 6 7 8 9 10 11<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>3.1.2</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement>

🌟 瞬间 🌟
思飘云物外 诗入画图中