2022/3/21 修改了一点配置

master
GPU is all you need 4 years ago
parent 7fafff0d2f
commit 77610aed0b
  1. 26
      awardBE/src/main/java/edu/ncst/award/AwardApplication.java

@ -1,36 +1,30 @@
package edu.ncst.award;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
//import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.aop.framework.AopContext;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableSwagger2Doc
//@EnableSwagger2Doc
@SpringBootApplication
@MapperScan(basePackages = {"edu.ncst.award.mapper"})
@EnableTransactionManagement
@EnableAspectJAutoProxy(exposeProxy = true, proxyTargetClass = true)
@EnableCaching
@EnableAspectJAutoProxy
public class AwardApplication {
/**
* 分页插件
*/
@Bean
public PaginationInterceptor paginationInterceptor() {
return new PaginationInterceptor();
}
public static void main(String[] args) {
SpringApplication.run(AwardApplication.class, args);
System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication application = new SpringApplication(AwardApplication.class);
application.setApplicationStartup(new BufferingApplicationStartup(2048));
application.run(args);
}
}

Loading…
Cancel
Save