常见错误
天明少侠
这个作者很懒,什么都没留下…
展开
-
idea 无法在线安装插件
插件源被屏蔽或失效:如果你所使用的插件源被屏蔽或已失效,那么你就无法在线安装插件。此时,你可以尝试切换到其他可用的插件源或者手动安装插件。网络问题:如果你的网络出现了问题,可能会导致插件无法在线安装。此时,你可以检查一下你的网络连接,或者尝试使用其他网络环境。idea --> Settings --> Marketplace 显示不出来。此时,你可以尝试寻找其他兼容的插件或者升级你的应用程序或操作系统版本。权限问题:如果你的用户权限不足,可能会导致插件无法在线安装。原创 2020-03-30 23:06:06 · 1040 阅读 · 1 评论 -
idea 错误: 找不到或无法加载主类
尝试:菜单—》File—》Invalidate Caches/Restart 选择Invalidate and Restart 或者 只是Invalidate,清除掉缓存,然后Rebuild Project。结果:启动成功,问题解决。原创 2021-02-09 15:03:31 · 286 阅读 · 2 评论 -
Spring Boot访问不到controller
解决方案1、确认启动类 ComponentScan 是否扫描到了 controller2、配置上下文路径# 请求上下文(可修改)server.servlet.context-path = /api/相关文档原创 2021-03-04 14:43:07 · 407 阅读 · 1 评论 -
Error running ‘Application‘: command line is too long
idea 运行 TEST 类解决方案:Shorten command line 选项,选择:JAR manifest - …不要更改idea/workspace.xml文件,不然运行其他Spring Boot项目会有问题(jar包的类找不到,无法注入spring容器)原创 2020-12-29 18:20:05 · 152 阅读 · 0 评论 -
Java实战项目常见报错
一、DOS命令启动Tomcat出错问题描述(problem description)The JRE_HOME environment variable is not defined correct This environment variable is needed to run this program解决方案1、编辑文件D:\Java\apache-tomcat-7...原创 2018-06-22 21:31:59 · 199 阅读 · 0 评论 -
一直卡在 Initializing Spring embedded WebApplicationContext
描述:Spring Boot项目启动不了,一直卡在 Initializing Spring embedded WebApplicationContext,看启动日志,找到 ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console… ,其实是 pom 依赖包的问题,因为项目.原创 2020-05-28 17:31:56 · 17307 阅读 · 6 评论 -
maven 配置远程仓库和第二仓库
错误信息意思是默认的远程仓库连接不上,下载不了相应的插件[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:3.1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:3.1.0: Could not trans原创 2020-05-26 14:46:39 · 1013 阅读 · 0 评论 -
No qualifying bean of type 'org.springframework.transaction.PlatformTransactionManager' available
问题描述Spring Boot配置两个数据源和和两个相关的事务管理器,添加@Transactional注解报错org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.springframework.transaction.PlatformTransact...原创 2020-04-13 20:10:28 · 14091 阅读 · 4 评论 -
remote: HTTP Basic: Access denied
错误信息remote: HTTP Basic: Access deniedfatal: Authentication failed for ‘http://gitlab.sto.cn/abc/template-pc.git/’解决方案更新Windows凭证原创 2020-04-27 22:40:13 · 213 阅读 · 0 评论 -
github 上传文件太大被拒绝
问题描述git 提交代码到 github 报错,信息如下:remote: Resolving deltas: 100% (2/2), completed with 2 local objects.remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://gi...原创 2020-04-01 13:32:09 · 1051 阅读 · 0 评论 -
时间戳问题
一次开发遇到的问题,调用其他部门的HTTP接口,需要一个13位时间戳的参数,时间工具类写好,13位时间戳获取的没问题,当我把时间设置成2000的某个日期,时间戳变成了12位(原因是总毫秒数没有达到13位),导致程序报错,问题找了好久,记录一下。时间戳时间戳是指格林威治时间1970年01月01日00时00分00秒(北京时间1970年01月01日08时00分00秒)起至现在的总毫秒数。代码...原创 2020-03-28 21:08:57 · 1132 阅读 · 0 评论 -
GitLab登录报错
错误描述GitLab登录报错,或idea更新项目提示报错Could not autenticate you from Ldapmain because “Invalid credentials”.可能原因就是密码改了 输入正确的密码即可...原创 2019-11-21 14:36:12 · 1953 阅读 · 0 评论 -
Whitelabel Error Page
idea 启动 Spring Boot项目,访问JSP页面,报 Whitelabel Error Page 错误解决方案1.启动的是Spring Boot项目2.配置Working directoryRun/Debug Configurations--->Spring Boot---->Working directory---->$MODULE_WORKING_D...原创 2020-01-01 17:30:30 · 150 阅读 · 0 评论 -
IE报应用程序已被 Java 安全阻止
IE浏览器连接linux服务器,报应用程序已被 Java 安全阻止解决方案应用程序已被 Java 安全阻止原创 2019-12-30 21:03:49 · 1134 阅读 · 0 评论