You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
740 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.aurora.mapper;// 在Maven项目中mapper包通常位于数据访问层专门负责与数据库的交互操作
import com.aurora.entity.About;//导入和数据库对应的实体类About,接口操作的就是这个实体类对应的数据库表
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
@Repository //标注在接口上用于标记这是一个数据访问层的组件避免IDE报“找不到Bean"的警告让Spring扫描并管理该Bean
public interface AboutMapper extends BaseMapper<About> {
//AboutMapper可以直接使用BaseMapper里的基础CRUD方法来操作About对应的数据库表about无需手动编写基础的SQL语句
}