22 lines
516 B
Java
22 lines
516 B
Java
package org.nl.start;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.boot.ApplicationArguments;
|
|
import org.springframework.boot.ApplicationRunner;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
/**
|
|
* 随项目启动模块
|
|
*/
|
|
@Slf4j
|
|
@Component
|
|
@RequiredArgsConstructor
|
|
public class Init implements ApplicationRunner {
|
|
@Override
|
|
public void run(ApplicationArguments args) throws Exception {
|
|
System.out.println("项目启动成功!");
|
|
}
|
|
|
|
}
|