|
|
@@ -10,12 +10,19 @@ import controller.InputDataController;
|
|
|
import model.Config;
|
|
|
import model.InputData;
|
|
|
|
|
|
+import java.io.File;
|
|
|
+
|
|
|
public class WebConfig extends JFinalConfig {
|
|
|
- @Override
|
|
|
- public void configConstant(Constants constants) {
|
|
|
- constants.setDevMode(true);
|
|
|
+ public static boolean IsDev = false;
|
|
|
+
|
|
|
+ static {
|
|
|
+ File file = new File(".debug");
|
|
|
+ IsDev = file.exists();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void configConstant(Constants constants) {}
|
|
|
+
|
|
|
@Override
|
|
|
public void configRoute(Routes routes) {
|
|
|
routes.add("/", HelloController.class);
|
|
|
@@ -31,8 +38,11 @@ public class WebConfig extends JFinalConfig {
|
|
|
|
|
|
@Override
|
|
|
public void configPlugin(Plugins plugins) {
|
|
|
- DruidPlugin dp = new DruidPlugin("jdbc:mysql://localhost:3306/input_data",
|
|
|
- "root", "123456");
|
|
|
+ String url = "jdbc:mysql://44.201.61.85:3306/input_data";
|
|
|
+ String user = "root";
|
|
|
+ String password = "abccccdddddeee123";
|
|
|
+
|
|
|
+ DruidPlugin dp = new DruidPlugin(url, user, password);
|
|
|
plugins.add(dp);
|
|
|
|
|
|
ActiveRecordPlugin arp = new ActiveRecordPlugin(dp);
|