摘要: 1.业务层实现: CategoryServic接口: public interface CategoryService { public ResultVO listCategories(); } CategoryServicImpl实现类: @Service public class Categor 阅读全文
posted @ 2022-07-18 15:46 临易 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 一、首页-分类列表 实现流程分析: 1.方案一:一次查询三级分类 优点:只需要一次查询,根据一级分类显示二级分类时响应速度较快。 缺点:数据库查询效率较低,页面首次加载的速度也相对较慢。 2.方案二:先只查询一级分类,用户点击/鼠标移动到一级分类,动态加载二级分类。 优点:数据库查询效率提高,页面首 阅读全文
posted @ 2022-07-18 15:33 临易 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1.报错信息 七月 18, 2022 2:51:48 下午 org.junit.platform.launcher.core.DefaultLauncher handleThrowable 警告: TestEngine with ID 'junit-jupiter' failed to discov 阅读全文
posted @ 2022-07-18 14:55 临易 阅读(2157) 评论(0) 推荐(0) 编辑
摘要: 1.具体报错信息: Caused by: org.apache.ibatis.builder.BuilderException: Ambiguous collection type for property 'categories'. You must specify 'javaType' or ' 阅读全文
posted @ 2022-07-18 14:51 临易 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 当进入到index.html,在进行页面初始化之后,就需要请求轮播图数据进行轮播图的显示。 <script type="text/javascript"> var baseUrl="http://localhost:8080/"; var vm = new Vue({ el:"#container" 阅读全文
posted @ 2022-07-18 11:29 临易 阅读(147) 评论(0) 推荐(0) 编辑