Files
wx-cashier-service/src/main/java/com/chaozhanggui/system/cashierservice/Shell.java
wangw fefb4c3a85 支付回调
获取数据列表接口问题
token有效期 及 续期
订单详情 为null的情况
根据桌码获取shopid接口调整
首页 默认值
2024-06-04 11:59:58 +08:00

65 lines
2.3 KiB
Java

package com.chaozhanggui.system.cashierservice;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.boot.CommandLineRunner;
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.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import java.net.ServerSocket;
import java.net.Socket;
@SpringBootApplication
@EnableScheduling
@EntityScan(basePackageClasses = {Shell.class})
@MapperScan(basePackageClasses ={Shell.class} )
//@ComponentScan(basePackageClasses ={Shell.class})
@EnableTransactionManagement
@EnableAspectJAutoProxy(proxyTargetClass = true)
@Slf4j
@EnableWebSocket
@EnableAsync
public class Shell {
private static Logger logger = LoggerFactory.getLogger(Shell.class);
public static void main(String[] args) {
SpringApplication springApplication = new SpringApplication(Shell.class);
springApplication.run(args);
}
@Bean
RestTemplate restTemplate(){
return new RestTemplate();
}
@Bean
public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
return (args) -> {
logger.info("=========================启动完成==========================");
};
}
@Bean
public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer();
propertySourcesPlaceholderConfigurer.setIgnoreUnresolvablePlaceholders(true);
return propertySourcesPlaceholderConfigurer;
}
}