草庐IT

non-resolvable

全部标签

Cannot resolve org.springframework.cloud:spring-cloud-starter-netflix-eureka-server:unknown

前言:启动eureka项目,发现右侧maven中的项目dependencies报红,reimport也没用,经排查springcloud和springboot版本号没问题。SpringCloud 启动类也是报错,@EnableEurakaServer注入失败一、本地maven配置、仓库下载 D:\maven\repository aliyun aliyunMaven central http://maven.aliyun.com/nexus/content/groups/public/ jdk-1.8 true 1.8

druid和druid-spring-boot-starter 的区别与报错Cannot resolve configuration property ‘spring.datasource.xxx解决

druid官方文档:https://github.com/alibaba/druidhttps://github.com/alibaba/druid/wikidruidmaven仓库https://mvnrepository.com/artifact/com.alibaba/druid一、druid和druid-spring-boot-starter区别分析参考文章:https://www.cnblogs.com/dxiaodang/p/14571590.html主要原因还是要不要手动写配置类,springboot的使用auto帮我们封装好了属性值描述如下:作用是一样的,都是连接池提供连接,里

druid和druid-spring-boot-starter 的区别与报错Cannot resolve configuration property ‘spring.datasource.xxx解决

druid官方文档:https://github.com/alibaba/druidhttps://github.com/alibaba/druid/wikidruidmaven仓库https://mvnrepository.com/artifact/com.alibaba/druid一、druid和druid-spring-boot-starter区别分析参考文章:https://www.cnblogs.com/dxiaodang/p/14571590.html主要原因还是要不要手动写配置类,springboot的使用auto帮我们封装好了属性值描述如下:作用是一样的,都是连接池提供连接,里

requestPayment:fail parameter error: parameter.non…r.signType should be String instead of Undefined

uniapp微信支付报错errMsg:"requestPayment:failparametererror:parameter.non…r.signTypeshouldbeStringinsteadofUndefined;"requestPayment:失败参数错误:参数。非…r.signType应为字符串,而不是未定义解决方案:1.看后端返回的值在控制台打印出来:后端给的是字符串  这个不是我们想要的2.将字符串转成对象 JSON.parse(val) letdata=JSON.parse(res.msg.pary_result.data)                     conso

requestPayment:fail parameter error: parameter.non…r.signType should be String instead of Undefined

uniapp微信支付报错errMsg:"requestPayment:failparametererror:parameter.non…r.signTypeshouldbeStringinsteadofUndefined;"requestPayment:失败参数错误:参数。非…r.signType应为字符串,而不是未定义解决方案:1.看后端返回的值在控制台打印出来:后端给的是字符串  这个不是我们想要的2.将字符串转成对象 JSON.parse(val) letdata=JSON.parse(res.msg.pary_result.data)                     conso

Android在构建提示“Could not resolve all files for configuration ‘:app:debugRuntimeClasspath‘.”

今天在添加MQTT依赖库的时候,在构建时提示一下错误:Causedby:org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException:Couldnotresolveallfilesforconfiguration':app:debugRuntimeClasspath'.后面根据错误的提示发现可能和工程中build.gradle(:app)里面添加的这一句有关系:implementation'com.android.support:support-v4:4.4.1

Android在构建提示“Could not resolve all files for configuration ‘:app:debugRuntimeClasspath‘.”

今天在添加MQTT依赖库的时候,在构建时提示一下错误:Causedby:org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException:Couldnotresolveallfilesforconfiguration':app:debugRuntimeClasspath'.后面根据错误的提示发现可能和工程中build.gradle(:app)里面添加的这一句有关系:implementation'com.android.support:support-v4:4.4.1

import org.apache.hadoop.conf.Configuration无法import;The import org.apache cannot be resolved

查找网上许多方法都没用,最后自己从包处解决importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.FileSystem;importorg.apache.hadoop.fs.Path;importorg.apache.hadoop.io.IOUtils;出现上述都无法import的情况报错显示:Theimportorg.apachecannotberesolved分析得出无法找到对应的包,而看报错先看第一个报错org.apache.hadoop.conf.Configuration这个的包是hadoop-com

import org.apache.hadoop.conf.Configuration无法import;The import org.apache cannot be resolved

查找网上许多方法都没用,最后自己从包处解决importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.FileSystem;importorg.apache.hadoop.fs.Path;importorg.apache.hadoop.io.IOUtils;出现上述都无法import的情况报错显示:Theimportorg.apachecannotberesolved分析得出无法找到对应的包,而看报错先看第一个报错org.apache.hadoop.conf.Configuration这个的包是hadoop-com

Pycharm报错Non-zero exit code (2) - 解决方案

前言使用PyCharm在PythonInterpreter设置中的Python虚拟环境安装第三方包时,很有可能报错:Non-zeroexitcode(2),如图:甚至升级pip也会报错,如图:提示如下:Trytorunthiscommandfromthesystemterminal.Makesurethatyouusethecorrectversionof'pip'installedforyourPythoninterpreterlocatedat'D:\ProgramFiles\Python\py36-basic-v\Scripts\python.exe'.如上方所属,官方说可能的原因是pi