🔄Update: 获取数据库中的 Movie

This commit is contained in:
2025-10-30 21:04:57 +08:00
parent f964515038
commit de5b7d679a
28 changed files with 423 additions and 9 deletions
+8
View File
@@ -0,0 +1,8 @@
spring:
datasource:
username: root
password: dn293830
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://47.121.181.112:3306/panel
server:
port: 8081
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.hezhaohui.movie.mapper.MovieMapper">
<resultMap id="BaseResultMap" type="cn.hezhaohui.movie.entity.Movie">
<id property="id" column="id" />
<result property="name" column="name" />
<result property="day" column="day" />
</resultMap>
<sql id="Base_Column_List">
id,name,day
</sql>
</mapper>