问题与分析 今天把项目的log4j的依赖改成了log4j2的依赖后,发现使用Maven打包时报错如下: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project cbx-core: Compilation failure [ERROR] cannot access org.apache.http.annotation.…
项目启动报错:Access denied for user 'root'@'localhost' (using password:YES) 原因:root帐户默认不开放远程访问权限,所以需要修改一下相关权限 解决:通过修改root账户密码可解决,但是通常配置数据库用户时不建议使用root用户,最好是创建其他用户访问,数据源配置非root账户也可以解决此问题 mysql账户创建与授权参考:https://www.cnblogs.com/leskang/p/9772602.html…
问题一:现象:打开SpringBoot项目后,所有依赖包都报红色波浪线 1.install报错(https://repo.maven.apache.org/maven2): Not authorized , ReasonPhrase:Authorizatio 2.尝试解决,删除pom.xml所有dependencies,再撤销,再导入,均不可以解决,2删除maven的repository,重新导入包,也不可以解决:不用白费力气了 3.重新导入仍显示红色波浪线 解决方法: 都出现maven无法下载…
今天进入hbase shell中输入命令报错:ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet 原因是由于hadoop的安全模式打开了,解决方法: hdfs dfsadmin -safemode leave 再重新启动HBase就可以了…
maven项目,引入javax.servlet.annotation.WebServlet的jar包,使用@WebServlet注解来实现对传统web.xml中servlet和url的映射 报错:The import javax.servlet.annotation cannot be resolved 情况说明: maven项目相关jar包正常引入,且maven可以正常的install,且使用maven启动项目(tomcat7:run)正常,但是就是报错,看着很烦 <dependency>…
出错信息: 23-Sep-2017 17:43:18.964 警告 [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [license] appears to have started a thread named [Log4j2-TF-4-Scheduled-1] but has failed to stop it. This is very li…
问题 使用maven-shade-plugin或者maven-assembly-plugin插件把项目打成一个可执行JAR包时,如果你引入了log4j2会出现如下问题: ERROR StatusLogger Unrecognized format specifier [d] ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern. ERROR St…
报错内容如下 log4j:WARN No appenders could be found for logger (org.springframework.test.context.junit4.SpringJUnit4ClassRunner). log4j:WARN Please initialize the log4j system properly. ERROR StatusLogger No log4j2 configuration file found. Using default c…
最近Xcode升级了,出现了各种蛋疼的错误提示,今天遇到个导入框架出现了提示Swift版本的问题,具体如下: "Use Legacy Swift Language Version" (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax-] menu to choo…
AndroidStudio升级到3.1后编译报错:The SourceSet ‘instrumentTest’ is not recognized by the Android Gradle Plugin. 项目中 gradle 配置 sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src']…