复制配置文件
创建包fig
ller
cn.wolfcode.service
cn.wolfcode.service.impl
cn.wolfcode.qo
cn.wolfcode.util
在main路径下创建webapp/l和views包
fig里写MyFreemarkerConfig
MyFreemarkerConfig类
public class MyFreemarkerConfig extends FreeMarkerConfigurer {@Overridepublic void afterPropertiesSet() throws IOException, TemplateException {super.afterPropertiesSet();Configuration configuration = Configuration();configuration.setSharedVariable("shiro",new ShiroTags());}
}
PermissionMapper接口
public interface PermissionMapper {int deleteByPrimaryKey(Long id);int insert(Permission record);Permission selectByPrimaryKey(Long id);List<Permission> selectAll();int updateByPrimaryKey(Permission record);int count();List<Permission> list(QueryObject qo);List<String> selectExpressionByCurrentuserId(Long id);List<String> selectAllExpression();
}
IPermissionService类
public interface IPermissionService {int deleteByPrimaryKey(Long id);int insert(Permission record);Permission selectByPrimaryKey(Long id);List<Permission> selectAll();int updateByPrimaryKey(Permission record);PageInfo<Permission> list(QueryObject qo);List<String> selectExpressionByCurrentuserId(Long id);List<String> selectAllExpression();
}
PermissionServiceImpl类
@Service
public class PermissionServiceImpl implements IPermissionService {@Autowiredprivate PermissionMapper mapper;@Overridepublic int deleteByPrimaryKey(Long id) {return mapper.deleteByPrimaryKey(id);}@Overridepublic int insert(Permission record) {return
本文发布于:2024-02-01 07:24:12,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170674345434865.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |