IntelliJ IDE
1、批量生成私有字段的get、set和toString。
方法:Alt+Insert快捷键
2、大小写转换
方法:Shift+Ctrl+U
3、代码格式化:Ctrl + Alt + L
4、添加新项目
File->Project Structure(Shift+Ctrl+Alt+S),右侧加号,如下图
5、编辑器多个类文件在多个窗口显示,如下图
方法:选择类文件->Split Vertically
6、IDEA编译maven窗口不显示,如下设置
Help->Find Actions->Actions->输入Add->选择Add Maven Projects
7、重置默认窗口布局
Window->Restore Default Layout
8、设置显示行背景颜色
9、Maven项目运行配置,如下
10、IDEA 2020.2X 循环弹出的 JetbrainsAgent 配置助手 对话框(已经破解)
打开系统界面快捷键shift 两下打开搜索,输入关键字jetbrains,选择点击第二项jetbrains-agent,后面的ON变为OFF,右下角弹出提示插件有变化,重启一下IDEA
11、项目启动报内存溢出错误,Exception in thread "File Watcher" java.lang.OutOfMemoryError: Java heap space。
解决方法:在IDEA工具中配置-Xms128m -Xmx1024m -XX:MaxPermSize=512m
如
12、IDEA启动JDK报错,如下
(1)将2800修改为1200
又出现新的错误
2021-11-18 17:12:32.515 WARN [restartedMain] [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reactiveStringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisReactiveAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.redis.core.ReactiveStringRedisTemplate]: Factory method 'reactiveStringRedisTemplate' threw exception; nested exception is java.lang.OutOfMemoryError: Java heap space
2021-11-18 17:12:35.800 ERROR [restartedMain] [com.xxl.job.core.executor.XxlJobExecutor] - null
java.lang.NullPointerException: null
at com.xxl.job.core.executor.XxlJobExecutor.stopEmbedServer(XxlJobExecutor.java:158)
at com.xxl.job.core.executor.XxlJobExecutor.destroy(XxlJobExecutor.java:85)
at com.xxl.job.core.executor.impl.XxlJobSpringExecutor.destroy(XxlJobSpringExecutor.java:55)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:258)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:579)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:551)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1092)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:512)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1085)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1061)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at com.bdsoft.BDPWebApplication.main(BDPWebApplication.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
2021-11-18 17:12:37.663 INFO [restartedMain] [c.b.dynamic.datasource.DynamicRoutingDataSource] - dynamic-datasource start closing ....
2021-11-18 17:12:37.669 INFO [restartedMain] [com.alibaba.druid.pool.DruidDataSource] - {dataSource-1} closing ...
2021-11-18 17:12:37.691 INFO [restartedMain] [com.alibaba.druid.pool.DruidDataSource] - {dataSource-1} closed
2021-11-18 17:12:37.692 INFO [restartedMain] [com.alibaba.druid.pool.DruidDataSource] - {dataSource-2} closing ...
2021-11-18 17:12:37.693 INFO [restartedMain] [com.alibaba.druid.pool.DruidDataSource] - {dataSource-2} closed
2021-11-18 17:12:37.693 INFO [restartedMain] [c.b.dynamic.datasource.DynamicRoutingDataSource] - dynamic-datasource all closed success,bye
2021-11-18 17:12:37.732 INFO [restartedMain] [org.apache.catalina.core.StandardService] - Stopping service [Tomcat]
2021-11-18 17:12:37.753 INFO [restartedMain] [o.s.b.a.l.ConditionEvaluationReportLoggingListener] -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-11-18 17:12:38.321 ERROR [restartedMain] [org.springframework.boot.SpringApplication] - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reactiveStringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisReactiveAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.redis.core.ReactiveStringRedisTemplate]: Factory method 'reactiveStringRedisTemplate' threw exception; nested exception is java.lang.OutOfMemoryError: Java heap space
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:655)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:635)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at com.bdsoft.BDPWebApplication.main(BDPWebApplication.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.redis.core.ReactiveStringRedisTemplate]: Factory method 'reactiveStringRedisTemplate' threw exception; nested exception is java.lang.OutOfMemoryError: Java heap space
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650)
... 25 common frames omitted
(1)Caused by: java.lang.OutOfMemoryError: Java heap space
(2)Connected to the target VM, address: '127.0.0.1:49182', transport: 'socket'
(3)上面的这两个错误是由于系统内存资源不足导致的,需要配置内存大小
-Xms512m -Xmx1024m -XX:MaxPermSize=512m
解决方案:-Xms512m -Xmx512m
设置IDEA内存大小
配置环境变量:-Xms512m -Xmx512m
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:39 min
[INFO] Finished at: 2022-01-29T01:23:15+08:00
[INFO] Final Memory: 73M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Java heap space -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
解决方案:使用命令编译:mvn clean install
编译前端:npm i
启动服务命令:npm run serve
打包命令:npm run build
idea右边找不到maven窗口不见了
右侧边栏没有出现maven, 还有一种可能就是pom.xml文件没有识别, idea觉得这个项目就不是个maven项目,导致idea无法加载依赖包。因此上述三种方法都没有用,
解决办法:右键pom.xml文件, 点击" add as maven project "
IDEA删除缓存,如下
IDEA工具启动时,找不到或无法加载主类 com.beidasoft.BDPWebApplication
解决方法:原因module 里面缺少iml文件,生成iml文件
方法一:(建议):刷新一下Maven Project就会自动生成.iml文件。点击下图红框标记的按钮即可,完成后就会自动生成.iml文件。
方法二:在缺少.iml文件项目下运行mvn idea:module,完成后将自动生成.iml文件。
intellij debug模式提示 Method breakpoints may dramatically slow down debugging 解决办法
解决方法:
点击图中按钮 或者 快捷键(Ctrl - Shift -F8 ) 出现下图
IntelliJ IDE相关推荐
- Java SE 9:使用IntelliJ IDE开发和测试模块之间的隐式可读性(第5部分)
I have already discussed many theoretical concepts about "Java 9 Module System" and also d ...
- com.intellij.ide.plugins.PluginManager$StartupAbortedException
Android studio打开崩溃:插件错误 com.intellij.ide.plugins.PluginManager$StartupAbortedException 前言: 早起来到公司,和平 ...
- AndroidStudio 安装插件导致奔溃 Start Failed com.intellij.ide.plugins.PluginManager$StartupAbortedException
在AndroidStudio中打开了一个txt文件,在文件顶部提示我安装一个插件. 我想这是AS提供的插件,你说让我安装呢我就安装吧,然后悲剧就这么悄然而至 安装成功后重新启动AndroidStudi ...
- Ant的安装和intellij IDE的配置和使用
1.安装jdk和intellij IDE: 2.下载Ant,下载Ant的网址:Apache Ant - Binary Distributionshttp://ant.apache.org/bindow ...
- 异常断电后,桌面软件打不开,一直转圈,com.intellij.ide.plugins.StartupAbortedException: Cannot start app
文章目录 问题: 处理方式: 1.重启大法,发现重启之后不管用 2.点击所有桌面软件都是鼠标一直在转圈,无法打开程序. 3.点击我的电脑 解决分析: 4.GoLAND.DataGrip无法正常打开软件 ...
- Intellij IDE 必知配置
为什么80%的码农都做不了架构师?>>> 优化配置你的IDE,简单快速 1.修改JVM参数 (IntelliJ IDEA 10.0.1包含以上版本不需要设置) 修改idea.e ...
- 超全IntelliJ IDE开发指南,更有更改炫酷背景,字体教程!
作者:氷泠 链接:https://zhuanlan.zhihu.com/p/136346657 来源:知乎 1 概述 IDEA全称IntelliJ IDEA,主要用于Java开发的IDE,代码自动提示 ...
- 【idea配置】电脑死机重启后idea报错cannot load project:com.intellij.ide
参考博文:https://blog.csdn.net/u010454030/article/details/46965627 ------------------------------------- ...
- intelliJ IDE 打包出错:F:/InterlliJ IDEA/Demo/src/main/java/META-INF/MANIFEST.MF' already exists in VFS
在多次打包guo'过程中,突然chu'出现了一个这种错误,为了以后的学习和复习,将此错误记录下来. 错误:F:/InterlliJ IDEA/Demo/src/main/java/META-INF/M ...
最新文章
- 阿丘科技招聘|图像算法工程师
- python如何把两个dataframe合并成一个
- 五、“或许平凡与伟大,才是我们最美的样子。”
- Ocelot简易教程(二)之快速开始2
- pwm控制的基本原理_单片机PWM控制基本原理详解~
- JavaScript——exec和match
- 同济版高数(下)复习提纲
- android脚本录制脚本,Android 屏幕录制GIF脚本
- 西门子mag6000接线_西门子MAG 5000/6000电磁流量计的使用
- ubuntu 20 无法联网或无法解析域名(2022最新办法,实测有效)
- .NET爬虫获取拼多多商品价格
- 收藏!用Python一键批量将任意结构的CSV文件导入MySQL数据库。
- 尚鼎峰:抖音短视频是如何在几秒钟内吸引用户观看的?
- Python学习基础方便查询
- python class tynu()_Pisanie pierwszej aplikacji Django, część 4.
- 「云原生 | Docker」手把手教你搭建镜像仓库并上传/下载镜像
- java状态机(订单状态控制)
- wps中删除我的设备(已经不使用的)
- 拉氏变换差分方程 c语言,IIR数字滤波器的实现(C语言)
- python第五章课后编程题答案_Python核心编程-第五章课后习题
热门文章
- 设计模式之六个创建型模式的相关知识,简单易懂。
- Twitch,斗鱼的“万里知音”
- 实际记录vue3中使用rrweb以及rrweb-player组件实现网页录屏和回放功能,还有遇到的问题和解决思考
- python 基于PHP在线音乐网站
- [转载] 新妖女传说:奸魔
- MSP430-流水灯和key
- 别收藏 Excel 函数大全了!北大硕博生为帮助女朋友,开发了个 ChatExcel,一键处理表格...
- No valid crumb was included in the request
- 获取所有节假日及周末
- 如何做一个能赚钱的技术公众号?