fix: 修复调度没有打开
This commit is contained in:
@@ -20,6 +20,7 @@ import org.springframework.context.ApplicationListener
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import org.springframework.context.event.ContextClosedEvent
|
||||
import org.springframework.scheduling.annotation.EnableScheduling
|
||||
import org.springframework.web.servlet.config.annotation.CorsRegistry
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
|
||||
|
||||
@@ -40,7 +41,7 @@ data class MailProperties @ConstructorBinding constructor(
|
||||
val targets: List<String>,
|
||||
)
|
||||
|
||||
// @EnableScheduling
|
||||
@EnableScheduling
|
||||
@ConfigurationPropertiesScan
|
||||
@SpringBootApplication
|
||||
class Application : ApplicationRunner, ApplicationListener<ContextClosedEvent> {
|
||||
|
||||
Reference in New Issue
Block a user