From 6b6211c24cac52bcfb0147166ac120222e25986a Mon Sep 17 00:00:00 2001 From: "[li_she]" <[li.she@xujiesoft.com]> Date: Wed, 14 Jul 2021 10:46:33 +0800 Subject: [PATCH] peizhi --- .../product/controller/PageController.java | 14 ++++++ src/main/resources/application-dev.yml | 49 +++++++++++++++++++ src/main/resources/templates/login.ftl | 10 ++++ 3 files changed, 73 insertions(+) create mode 100644 src/main/java/com/gaotao/modules/product/controller/PageController.java create mode 100644 src/main/resources/application-dev.yml create mode 100644 src/main/resources/templates/login.ftl diff --git a/src/main/java/com/gaotao/modules/product/controller/PageController.java b/src/main/java/com/gaotao/modules/product/controller/PageController.java new file mode 100644 index 0000000..243d4e9 --- /dev/null +++ b/src/main/java/com/gaotao/modules/product/controller/PageController.java @@ -0,0 +1,14 @@ +package com.gaotao.modules.product.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; + +@Controller +public class PageController { + + + @GetMapping("/login") + public String login(){ + return "login"; + } +} diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000..f7f9ba8 --- /dev/null +++ b/src/main/resources/application-dev.yml @@ -0,0 +1,49 @@ +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + druid: + type: com.alibaba.druid.pool.DruidDataSource + url: jdbc:sqlserver://192.168.1.84:1433;databaseName=XuJie-Fast + username: xjsoft + password: XsoftJ123 + initial-size: 10 + max-active: 100 + min-idle: 10 + max-wait: 60000 + pool-prepared-statements: true + max-pool-prepared-statement-per-connection-size: 20 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 300000 + #Oracle需要打开注释 + #validation-query: SELECT 1 FROM DUAL + test-while-idle: true + test-on-borrow: false + test-on-return: false + stat-view-servlet: + enabled: true + url-pattern: /druid/* + #login-username: admin + #login-password: admin + filter: + stat: + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: false + wall: + config: + multi-statement-allow: true + + +##多数据源的配置 +#dynamic: +# datasource: +# slave1: +# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver +# url: jdbc:sqlserver://localhost:1433;DatabaseName=gaotao_security +# username: sa +# password: 123456 +# slave2: +# driver-class-name: org.postgresql.Driver +# url: jdbc:postgresql://localhost:5432/gaotao_security +# username: gaotao +# password: 123456 \ No newline at end of file diff --git a/src/main/resources/templates/login.ftl b/src/main/resources/templates/login.ftl new file mode 100644 index 0000000..bef0fbf --- /dev/null +++ b/src/main/resources/templates/login.ftl @@ -0,0 +1,10 @@ + + +
+ +