From e8b488e9431fe2d74d2bbbf93f0909751181550c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=90=8C=E6=96=B0?= <13658798+jjhyyds@user.noreply.gitee.com> Date: Thu, 30 May 2024 19:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A7=9C=E9=92=A7=E7=80=9A=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 34 +++++-------------- .../com/teaching/backend/MainApplication.java | 21 ------------ src/main/resources/application.yml | 6 ++-- 3 files changed, 13 insertions(+), 48 deletions(-) delete mode 100644 src/main/java/com/teaching/backend/MainApplication.java diff --git a/pom.xml b/pom.xml index 52d1cea..a0963d6 100644 --- a/pom.xml +++ b/pom.xml @@ -28,6 +28,14 @@ org.springframework.boot spring-boot-starter-aop + + + + org.freemarker + freemarker + 2.3.28 + + org.mybatis.spring.boot mybatis-spring-boot-starter @@ -39,31 +47,7 @@ mybatis-plus-boot-starter 3.5.2 - - - org.springframework.boot - spring-boot-starter-data-redis - - - org.springframework.session - spring-session-data-redis - - - - org.springframework.boot - spring-boot-starter-data-elasticsearch - - - - org.apache.commons - commons-lang3 - - - - cn.hutool - hutool-all - 5.8.8 - + mysql mysql-connector-java diff --git a/src/main/java/com/teaching/backend/MainApplication.java b/src/main/java/com/teaching/backend/MainApplication.java deleted file mode 100644 index 293b98a..0000000 --- a/src/main/java/com/teaching/backend/MainApplication.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.teaching.backend; - -import org.mybatis.spring.annotation.MapperScan; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration; - -/** - * 主类(项目启动入口) - * - */ -// todo 如需开启 Redis,须移除 exclude 中的内容 -@SpringBootApplication(exclude = {RedisAutoConfiguration.class}) -@MapperScan("com.teaching.backend.mapper") -public class MainApplication { - - public static void main(String[] args) { - SpringApplication.run(MainApplication.class, args); - } - -} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index de8b6b9..7f1e8c0 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,5 +1,5 @@ server: - port: 8081 + port: 8080 spring: application: name: teaching-backend @@ -11,4 +11,6 @@ spring: url: jdbc:mysql://localhost:3306/teaching_db username: root password: root - +mybatis: + configuration: + map-underscore-to-camel-case: true \ No newline at end of file