| | |
| | | package com.zy.asrs.common.config; |
| | | |
| | | import com.zy.asrs.framework.common.SnowflakeIdWorker; |
| | | import com.zy.asrs.framework.common.SpringUtils; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * Created by vincent on 12/19/2023 |
| | | */ |
| | | @Configuration |
| | | public class PlusBeanConfig { |
| | | |
| | | @Bean |
| | | public SpringUtils getSpringUtils(){ |
| | | return new SpringUtils(); |
| | | } |
| | | |
| | | @Bean |
| | | public SnowflakeIdWorker snowflakeIdWorker(){ |
| | | return new SnowflakeIdWorker(); |
| | | } |
| | | |
| | | |
| | | } |
| | | package com.zy.asrs.common.config;
|
| | |
|
| | | import com.zy.asrs.framework.common.SnowflakeIdWorker;
|
| | | import com.zy.asrs.framework.common.SpringUtils;
|
| | | import org.springframework.context.annotation.Bean;
|
| | | import org.springframework.context.annotation.Configuration;
|
| | |
|
| | | /**
|
| | | * Created by vincent on 12/19/2023
|
| | | */
|
| | | @Configuration
|
| | | public class PlusBeanConfig {
|
| | |
|
| | | @Bean
|
| | | public SpringUtils getSpringUtils(){
|
| | | return new SpringUtils();
|
| | | }
|
| | |
|
| | | @Bean
|
| | | public SnowflakeIdWorker snowflakeIdWorker(){
|
| | | return new SnowflakeIdWorker();
|
| | | }
|
| | |
|
| | |
|
| | | }
|