|
|
@@ -16,12 +16,12 @@ import java.io.File;
|
|
|
|
|
|
public class WebConfig extends JFinalConfig {
|
|
|
public static boolean IsDev = false;
|
|
|
- private static String url = "jdbc:mysql://localhost:3306/ethmev";
|
|
|
+ private static String url = "jdbc:mysql://localhost:3306/ethmev?useSSL=false";
|
|
|
private static String user = "root";
|
|
|
private static String password = "Qwe410410.";
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- UndertowServer.start(WebConfig.class, 8088, WebConfig.IsDev);
|
|
|
+ UndertowServer.start(WebConfig.class, 8088, true);
|
|
|
}
|
|
|
|
|
|
static {
|
|
|
@@ -31,7 +31,9 @@ public class WebConfig extends JFinalConfig {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void configConstant(Constants constants) {}
|
|
|
+ public void configConstant(Constants constants) {
|
|
|
+ constants.setDevMode(true);
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
public void configRoute(Routes routes) {
|
|
|
@@ -49,7 +51,7 @@ public class WebConfig extends JFinalConfig {
|
|
|
@Override
|
|
|
public void configPlugin(Plugins plugins) {
|
|
|
if (IsDev) {
|
|
|
- url = "jdbc:mysql://localhost:3306/ethmev";
|
|
|
+ url = "jdbc:mysql://localhost:3306/ethmev?useSSL=false";
|
|
|
password = "123456";
|
|
|
}
|
|
|
|