随笔分类 -  JavaWeb

摘要:Service层和Dao层真的有必要每个类都加上接口吗 结论: 使用接口 方便扩展 ,修改代码不至于牵一发动全身,可以直接替换实现类, 便于维护(修改) 团队开发 更具优势 队友调用service时只关心接口,不需关心实现类 更好的同步开发(前/后端、提供方/使用方) 框架层面 的代码需要使用接口 阅读全文
posted @ 2020-03-23 20:35 彩虹海。 阅读(619) 评论(0) 推荐(0)
摘要:【404】The origin server did not find a current representation for the target resource or is not willing to disclose that one exists 服务器成功启动了,但是默认页面都访问不 阅读全文
posted @ 2020-03-17 12:09 彩虹海。 阅读(4210) 评论(0) 推荐(0)