| | |
| | | package com.ruoyi;
|
| | |
|
| | | import com.ruoyi.api.dto.ApiProperties;
|
| | | import org.springframework.boot.CommandLineRunner;
|
| | | import org.springframework.boot.SpringApplication;
|
| | | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
| | | import org.springframework.context.annotation.Bean;
|
| | | import org.springframework.scheduling.annotation.EnableScheduling;
|
| | |
|
| | | /**
|
| | |
| | | SpringApplication.run(RuoYiApplication.class, args);
|
| | | System.out.println("(â¥â â¿â )ï¾ï¾ è¥ä¾å¯å¨æå á(´ڡ`á)ï¾");
|
| | | }
|
| | |
|
| | | /**
|
| | | * 项ç®å¯å¨åæ§è¡ï¼æå°å·¥ä¿¡å±é
置信æ¯
|
| | | * éè¿ Bean 注å
¥ ApiPropertiesï¼ç´æ¥è¯»åé
ç½®
|
| | | */
|
| | | @Bean
|
| | | public CommandLineRunner printApiConfig(ApiProperties apiProperties) {
|
| | | return args -> {
|
| | | System.out.println("==================== æ¦æå¸å·¥ä¿¡å±æ°æ®æ¨éé
ç½® ====================");
|
| | | System.out.println("æ¨éIPå°åï¼" + apiProperties.getIp());
|
| | | System.out.println("ä¼ä¸åºç¨IDï¼" + apiProperties.getAppid());
|
| | | System.out.println("ä¼ä¸åºç¨ç§é¥ï¼" + apiProperties.getSecret());
|
| | | System.out.println("ä¼ä¸åç§°ï¼" + apiProperties.getEntName());
|
| | | System.out.println("ç»ä¸ç¤¾ä¼ä¿¡ç¨ä»£ç ï¼" + apiProperties.getSocialCreditCode());
|
| | | System.out.println("æ¥åç¨çµéï¼" + apiProperties.getDayPowerConsumption() + " 度");
|
| | | System.out.println("åä½äº§å¼åºæ°ï¼" + apiProperties.getOutputValuesBase() + " ä¸å
");
|
| | | System.out.println("æçµè´¹ï¼" + apiProperties.getElectricityCost() + " å
");
|
| | | System.out.println("ç»å½æ¨éå¼å
³ï¼" + (apiProperties.getLoginPush() ? "å¼å¯" : "å
³é"));
|
| | | System.out.println("çµæ°æ®æ¨éå¼å
³ï¼" + (apiProperties.getPush() ? "å¼å¯" : "å
³é"));
|
| | | System.out.println("================================================================");
|
| | | };
|
| | | }
|
| | | }
|