mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-17 10:56:39 +08:00
refactor(smart-admin-api-java17-springboot3): 移除 Dao 接口中的冗余注解
- 删除了 Dao.java.vm 文件中的 @Component 注解- 优化了代码结构,减少了不必要的导入
This commit is contained in:
parent
b1cbad8362
commit
92fd908619
@ -7,7 +7,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ${basic.description} Dao
|
* ${basic.description} Dao
|
||||||
@ -18,7 +17,6 @@ import org.springframework.stereotype.Component;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Mapper
|
@Mapper
|
||||||
@Component
|
|
||||||
public interface ${name.upperCamel}Dao extends BaseMapper<${name.upperCamel}Entity> {
|
public interface ${name.upperCamel}Dao extends BaseMapper<${name.upperCamel}Entity> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user