修改库存
This commit is contained in:
@@ -14,6 +14,7 @@ import org.springframework.context.ApplicationContext;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
||||
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
@@ -32,11 +33,14 @@ public class Shell {
|
||||
SpringApplication springApplication = new SpringApplication(Shell.class);
|
||||
springApplication.run(args);
|
||||
}
|
||||
|
||||
|
||||
@Bean
|
||||
RestTemplate restTemplate(){
|
||||
public RestTemplate restTemplate(){
|
||||
return new RestTemplate();
|
||||
}
|
||||
|
||||
|
||||
@Bean
|
||||
public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
|
||||
return (args) -> {
|
||||
|
||||
Reference in New Issue
Block a user