diff --git a/pom.xml b/pom.xml index 9604271..b421e46 100644 --- a/pom.xml +++ b/pom.xml @@ -14,4 +14,86 @@ UTF-8 + + org.springframework.boot + spring-boot-starter-parent + 2.7.5 + + + + org.springframework.boot + spring-boot-starter-security + + + + org.springframework.boot + spring-boot-starter-web + + + org.projectlombok + lombok + true + + + + org.springframework.boot + spring-boot-starter-data-redis + + + com.alibaba + fastjson + 1.2.62 + + + io.jsonwebtoken + jjwt + 0.9.1 + + + io.swagger + swagger-annotations + 1.6.2 + + + + + com.mysql + mysql-connector-j + + + com.baomidou + mybatis-plus-boot-starter + 3.5.3.1 + + + + + org.springframework.boot + spring-boot-starter-test + + + org.springframework.security + spring-security-test + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + \ No newline at end of file diff --git a/src/main/java/org/codenotknock/secycode/SecurityApplication.java b/src/main/java/org/codenotknock/secycode/SecurityApplication.java new file mode 100644 index 0000000..1bad569 --- /dev/null +++ b/src/main/java/org/codenotknock/secycode/SecurityApplication.java @@ -0,0 +1,15 @@ +package org.codenotknock.secycode; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +/** + * @author xiaofu + * springSecurity 源码的学习 + */ +@SpringBootApplication +public class SecurityApplication { + + public static void main(String[] args) { + SpringApplication.run(SecurityApplication.class, args); + } +} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..a4280c0 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,21 @@ +server: + port: 9999 + +logging: + level: + org.springframework: DEBUG + +# sql +spring: + datasource: + password: 123456 + username: root + url: jdbc:mysql://localhost:3306/mp?characterEncoding=utf-8&&serverTime=Asia/Shanghai + driver-class-name: com.mysql.cj.jdbc.Driver + + +# mybatisPlus +# 开启下划线和驼峰的映射 +mybatis-plus: + configuration: + map-underscore-to-camel-case: true