| | |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.core.env.Environment; |
| | | |
| | | /** |
| | | * 启动程序 |
| | | * |
| | | * @author ots |
| | | */ |
| | | @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) |
| | | @EnableEncryptableProperties |
| | | public class OtsApplication implements CommandLineRunner { |
| | |
| | | private ApplicationContext applicationContext; |
| | | |
| | | public static void main(String[] args) { |
| | | |
| | | // System.setProperty("spring.devtools.restart.enabled", "false"); |
| | | SpringApplication.run(OtsApplication.class, args); |
| | | StringBuilder builder = new StringBuilder(); |
| | | builder.append("********************************************************************\n"); |
| | |
| | | Environment environment = applicationContext.getEnvironment(); |
| | | l.info(stringEncryptor.encrypt(environment.getProperty("password"))); |
| | | } |
| | | } |
| | | } |