Springboot项目开发(三)文件结构(个人理财系统)

1、common里放shiro以及封装json数据的通用类Msg。

2、controller放置所有的控制器

3、interceptor放置拦截器,拦截用户访问网址。因为有shiro,所以实际上这个后来并没有用。

4、mapper放置基于mybatis的通用mapper,MySQL操作大大简化。

5、pojo放置所有类https://blog.csdn.net/Luowaterbi/article/details/107693117

6、services放置所有service接口,impl文件里放各个方法的实现。

7、resources-static放静态模板。

     resources-templates放我们自己写的页面html。

猜你喜欢

转载自blog.csdn.net/Luowaterbi/article/details/107690521