图形验证码

This commit is contained in:
none
2023-02-15 16:54:03 +08:00
parent a9296cdfe2
commit 2813e98d9e
35 changed files with 2769 additions and 112 deletions

View File

@@ -1,4 +0,0 @@
spring.datasource.url=jdbc:mysql://127.0.0.1:33060/playedu
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

View File

@@ -1,11 +0,0 @@
# ????
spring.profiles.active=dev
#mysql
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#mybatis
mybatis.mapper-locations=classpath:mapper/*.xml
#mybatis-plus
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl

View File

@@ -0,0 +1,38 @@
spring:
profiles:
active: "dev"
aop:
auto: true
proxy-target-class: true
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: "jdbc:mysql://127.0.0.1:33060/java-meedu?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false"
username: "root"
password: "root"
# Redis配置
data:
redis:
host: "127.0.0.1"
port: 6379
password:
database: 0
timeout: 5000
lettuce:
pool:
max-wait: 30000 # 连接池最大阻塞等待时间(使用负数表示没有限制,默认-1)
max-active: 100 # 连接池最大连接数(使用负数表示没有限制,默认8)
max-idle: 20 # 连接池中的最大空闲连接(默认8)
min-idle: 5 # 连接池中的最小空闲连接(默认0)
mybatis:
mapper-locations: classpath:mapper/*.xml
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
playedu:
captcha:
expire: 300 #分5钟
cache-name: "captcha:key:"

View File

@@ -9,6 +9,7 @@
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="email" column="email" jdbcType="VARCHAR"/>
<result property="password" column="password" jdbcType="VARCHAR"/>
<result property="salt" column="salt" jdbcType="VARCHAR"/>
<result property="loginIp" column="login_ip" jdbcType="VARCHAR"/>
<result property="loginAt" column="login_at" jdbcType="TIMESTAMP"/>
<result property="isBanLogin" column="is_ban_login" jdbcType="TINYINT"/>
@@ -19,8 +20,8 @@
<sql id="Base_Column_List">
id,name,email,
password,login_ip,login_at,
is_ban_login,login_times,created_at,
updated_at
password,salt,login_ip,
login_at,is_ban_login,login_times,
created_at,updated_at
</sql>
</mapper>