谷粒学苑第七天
上传到服务器 文件上传到接口中 在接口中读取内容 加到数据库
swagger:
报了实体类的错:刚刚这里忘记写数据了
一级二级都查出来了:
课程发布流程确认
报错:
实体类全部改为_STR还是报错
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘eduCourseController’: Unsatisfied dependency expressed through field ‘courseService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eduCourseServiceImp
https://blog.csdn.net/weixin_47478177/article/details/125611258:
每个mapper接口都加mapper注解
课程id与课程描述的id要统一
要修改:INPUT(手动输入 不会自动生成)
添加课程信息前端
第八天
不上传图片可以添加成功
图片内存弄小一点就可以上传了
无id
成功 但没有值
18 查不到
前端403错误:
对象:
第九天
加载后target mapper有了xml
前端:把div复制进去时 要把el-form全部覆盖调 不然会有冲突
课程列表
一对多怎么建表:
若外键声明出来 会受约束 如果删除章节时 章节下面有小节 则删不掉
课程里面不能直接删章节和小节 要注入才可以
阿里云视频点播
API(SDK的底层是API)
SDK
初始化对象
没有小绿叶解决:
默认不去加载数据库
会自动下载到本地依赖:
success!
测试视频上传功能 前端 后端 还有nginx都要启动
##手动将jar包拉到service_vod
又把jar包拉到这
爆红解决:
直接把文件夹复制到我本地的也不行
把老师maven里的aliyun复制过来
只剩下这个爆红
全部用成老师的依赖
还是会爆红
我传入的id没错呀
因为我这个没改:
一直在上传中(依赖版本问题?)
不红了
用这个方法:
BUG:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘eduChapterController’: Unsatisfied dependency expressed through field ‘chapterService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘eduChapterServiceImpl’: Unsatisfied dependency expressed through field ‘baseMapper’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘eduChapterMapper’ defined in file [C:\ITcommunication\guli_parent\service\service_edu\target\classes\com\atguigu\eduservice\mapper\EduChapterMapper.class]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method ‘sqlSessionFactory’ threw exception; nested exception is java.lang.NoClassDefFoundError: com/baomidou/mybatisplus/core/toolkit/AopUtils
https://blog.csdn.net/zychao_2012/article/details/109613029
https://blog.csdn.net/jcc4261/article/details/128060538