1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package com.ruoyi;
- import com.ruoyi.common.utils.AesUtil;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
- import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;
- import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
- import org.springframework.boot.web.servlet.MultipartConfigFactory;
- import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
- import org.springframework.context.annotation.Bean;
- import javax.crypto.Cipher;
- import javax.crypto.spec.SecretKeySpec;
- import javax.crypto.IllegalBlockSizeException;
- import javax.crypto.NoSuchPaddingException;
- import javax.crypto.spec.SecretKeySpec;
- import javax.servlet.MultipartConfigElement;
- import java.security.InvalidKeyException;
- import java.security.NoSuchAlgorithmException;
- import org.apache.commons.codec.binary.Base64;
- import org.springframework.scheduling.annotation.EnableAsync;
- /**
- * 启动程序
- *
- * @author ruoyi
- */
- @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
- @EnableAsync
- public class RuoYiApplication
- {
- public static void main(String[] args)
- {
- // System.setProperty("spring.devtools.restart.enabled", "false");
- SpringApplication.run(RuoYiApplication.class, args);
- System.out.println("(♥◠‿◠)ノ゙ CPMS启动成功 ლ(´ڡ`ლ)゙");
- }
- @Bean
- MultipartConfigElement multipartConfigElement() {
- MultipartConfigFactory factory = new MultipartConfigFactory();
- factory.setLocation("/u03/tmp");
- return factory.createMultipartConfig();
- }
- }
|