由于学校机房的IDE只有eclipse,因而不得不在自己的电脑重新下载安装,以便熟悉eclipse开发环境(应付考试)
为了符合之前在IDEA的编码习惯,下面总结了一些eclipse的基本操作和配置
使用Servlet做登录验证功能时,启动Tomcat后,DAO层jdbc连接报错java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver
测试验证码存入redis时,spring报错:
org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.161.129:6379
项目整合登录验证功能时遇到如下错误:
org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing
由于阿里云短信发送服务审核过严,故将其替换为邮件发送验证码,记录一下整合邮件发送服务过程
springcloud引入openfeign依赖后,启动项目报错:
Unsatisfied dependency expressed through field 'vodClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atguigu.eduservice.client.VodClient': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalancer?
在模块的test/java中进行代码测试时,报错:
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project service_vod: Command execution failed.
使用阿里云视频点播功能时,service_vod
模块的 aliyun-sdk-vod-upload
依赖一直爆红
查阅文档,发现该依赖并未正式开源,需要自行去阿里云官网下载
但是下载完成并通过 cmd
命令手动导入至 maven 仓库后,该依赖仍然爆红,让我感到十分疑惑