From a6631e60e1aecd42a976cb50573e5e9946f8b2c9 Mon Sep 17 00:00:00 2001 From: PeterAlbus Date: Fri, 21 Jan 2022 20:14:11 +0800 Subject: [PATCH] add controller test --- .../controller/EarthquakeInfoController.java | 6 +++++ src/main/resources/application.yml.example | 26 ------------------- 2 files changed, 6 insertions(+), 26 deletions(-) delete mode 100644 src/main/resources/application.yml.example diff --git a/src/main/java/com/peteralbus/controller/EarthquakeInfoController.java b/src/main/java/com/peteralbus/controller/EarthquakeInfoController.java index 98d7ae4..d0605ed 100644 --- a/src/main/java/com/peteralbus/controller/EarthquakeInfoController.java +++ b/src/main/java/com/peteralbus/controller/EarthquakeInfoController.java @@ -165,4 +165,10 @@ public class EarthquakeInfoController return "fail"; } } + + @RequestMapping("/233") + public String test() + { + return "233"; + } } diff --git a/src/main/resources/application.yml.example b/src/main/resources/application.yml.example deleted file mode 100644 index 4355fcd..0000000 --- a/src/main/resources/application.yml.example +++ /dev/null @@ -1,26 +0,0 @@ -server: - port: 8087 - -spring: - servlet: - multipart: - enabled: true - max-file-size: 100MB - max-request-size: 1000MB - jackson: - date-format: yyyy-MM-dd HH:mm:ss - time-zone: GMT+8 - datasource: - username: username - password: password - url: jdbc:mysql://47.117.160.245:3306/earthquake?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai - driver-class-name: com.mysql.cj.jdbc.Driver - mvc: - pathmatch: - matching-strategy: ant_path_matcher - -mybatis-plus: - mapper-locations: classpath:mapper/*Mapper.xml - type-aliases-package: com.peteralbus.entity - configuration: - map-underscore-to-camel-case: true