软件项目管理系统 工程初始化

master
zhc077 2 years ago
parent e8dfefdaca
commit d8aa09c0ee
  1. 18
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/JeecgSystemApplication.java
  2. 2
      jeecg-boot/jeecg-boot-module-system/src/main/resources/application-dev.yml
  3. 2
      jeecg-boot/jeecg-boot-module-system/src/main/resources/application-prod.yml

@ -8,7 +8,6 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableScheduling;
import java.io.IOException; import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;
@ -19,8 +18,8 @@ import java.net.UnknownHostException;
*/ */
@Slf4j @Slf4j
@SpringBootApplication @SpringBootApplication
@EnableScheduling //@EnableScheduling
public class JeecgSystemApplication extends SpringBootServletInitializer /*implements CommandLineRunner*/ { public class JeecgSystemApplication extends SpringBootServletInitializer {
//dsadsadsadasd //dsadsadsadasd
@ -64,18 +63,5 @@ public class JeecgSystemApplication extends SpringBootServletInitializer /*imple
}finally { }finally {
serverSocket.close(); serverSocket.close();
}*/ }*/
} }
// @Autowired
// private Environment environment;
// @Autowired
// private NewsWebMagicTask newWebMagicTask;
//
// @Override
// public void run(String... strings) throws Exception {
// // 爬取数据
//// newWebMagicTask.crawl();
// }
} }

@ -137,7 +137,7 @@ spring:
# driver-class-name: com.mysql.cj.jdbc.Driver # driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置 # 多数据源配置
#multi-datasource1: #multi-datasource1:
url: jdbc:mysql://182.92.169.222:3306/jeecg-education?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai url: jdbc:mysql://182.92.169.222:3306/project_management?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root username: root
password: ycwl2022. password: ycwl2022.
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver

@ -132,7 +132,7 @@ spring:
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
datasource: datasource:
master: master:
url: jdbc:mysql://182.92.169.222:3306/jeecg-education?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai url: jdbc:mysql://182.92.169.222:3306/project_management?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root username: root
password: ycwl2022. password: ycwl2022.
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver

Loading…
Cancel
Save