Browse Source

peizhi

master
[li_she] 5 years ago
parent
commit
6b6211c24c
  1. 14
      src/main/java/com/gaotao/modules/product/controller/PageController.java
  2. 49
      src/main/resources/application-dev.yml
  3. 10
      src/main/resources/templates/login.ftl

14
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";
}
}

49
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

10
src/main/resources/templates/login.ftl

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
66666666666666666666666666666666
</body>
</html>
Loading…
Cancel
Save