![](https://img-blog.csdnimg.cn/20201215204152497.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
一文解决,常见问题。
一文解决,工作中常见的问题。
遇见1995
期待关注我的微信公众号「 编程图解 」,查看最近的文章和动态。
展开
-
一文解决,SpringBoot 静态属性注入
一文解决,SpringBoot 静态属性注入静态字段绑定@PostConstruct结合Environment实现注入。import org.springframework.core.env.Environment;import org.springframework.stereotype.Component;import javax.annotation.PostConstruct;import javax.annotation.Resource;/** * @author YuJia原创 2021-04-16 17:07:55 · 420 阅读 · 0 评论 -
一文解决,ORA-01722 无效数字
一文解决,ORA-01722 无效数字方法替换表名formmain_1776,字段field0065为你要查找的字段信息即可。select * from formmain_1776 t where t.field0065 is not null and length(translate(t.field0065, '-.0123456789' || t.field0065, '-.01234567原创 2021-03-06 15:19:46 · 899 阅读 · 0 评论 -
一文解决,IDEA 出现 Command line is too long. Shorten command line for SpringBootMainApplication
解决 IDEA 出现 Command line is too long. Shorten command line for SpringBootMainApplication or also for Application原创 2021-01-22 00:14:38 · 283 阅读 · 0 评论 -
一文解决,docker 安装、卸载
一文解决,docker 安装、卸载配置 Rancher 集群失败时,需要重新卸载 docker 并删除相关镜像方可再次安装成功。安装# 安装项目依赖yum install -y yum-utils device-mapper-persistent-data lvm2# 配置镜像库yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo# 安装 dockeryum inst原创 2021-01-07 21:15:14 · 190 阅读 · 1 评论 -
一文解决,linux 开启、关闭防火墙,及开放端口
一文解决,linux 开启、关闭防火墙,及开放端口不建议生产环境或公网服务器关闭防火墙,对我个人而已仅是为了学习才会关闭防火墙避免不必要的错误,例如安装 Rancher。推荐只放开特定端口。开启# 查看状态systemctl status firewalld# 开启防火墙systemctl start firewalld# 主机启动时,开启防火墙systemctl enable firewalld关闭# 查看状态systemctl status firewalld# 关闭原创 2021-01-07 21:01:13 · 936 阅读 · 0 评论 -
一文解决,Tomcat 开启远程 debug
一文解决,Tomcat 开启远程 debug背景接手一个较老的项目,类似方法在 tomcat 的 bin 目录,修改 startup.sh,开头增加如下代码即可。declare -x CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788"自荐期待关注我的微信公众号 「 编程图解 」 ,查看最近的文章和原创 2021-01-07 20:47:22 · 588 阅读 · 0 评论 -
一文解决,you need to use @ContextConfiguration or @SpringBootTest(classes=...)
一文解决,you need to use @ContextConfiguration or @SpringBootTest(classes=…)背景Spring cloud 项目编写 单元测试时,报错如下:you need to use @ContextConfiguration or @SpringBootTest(classes=...) 方法spring cloud 项目编写单元测试需要指定 启动类。@RunWith(SpringRunner.class)@SpringBootTe原创 2020-12-24 16:31:21 · 4529 阅读 · 1 评论 -
一文解决,Parsing error was found in mapping #{}
Parsing error was found in mapping #{}.的解决方法。原创 2020-12-24 08:20:45 · 8373 阅读 · 0 评论 -
一文解决,IntelliJ IDEA 2018 配置servlet
前提配置好java web开发环境:点击主要有俩种方法.在servlet3.0以前,需要在web.xml文件中将其映射为url. .在servlet3.0(即tomcat7以上),在类名上添加@webServlet("/class_name")即可.我们采用mvc模式,实现俩个数字的运算.名为inputNumber.jsp的页面提供一个表单,用户可以通过表单输入两个数和运算符...原创 2018-10-31 23:44:16 · 6669 阅读 · 3 评论 -
一文解决,IntelliJ IDEA 2018 添加jar包
打开idea菜单栏的file选项点击选择project Structure(或直接用Ctrl+Alt+Shift+S)点击选择Module—> Dependencies—>右边绿色+号选择第一个JARS or directories,再选择jar文件存放的路径,按确定保存就行。...原创 2018-08-04 21:13:38 · 3243 阅读 · 0 评论 -
一文解决,docker: Error response from daemon ...Unhandle exception:Filesharing has been cancelled..
docker: Error response from daemon ...Unhandle exception:Filesharing has been cancelled.. 解决方案。原创 2020-08-26 23:17:35 · 799 阅读 · 0 评论 -
一文解决,IntelliJ IDEA 2018 配置Java web开发环境
一、配置要求jdk已经配置好 tomcat 已经安装好二、配置过程ps:在IntelliJ IDEA里面“new Project” 就相当于eclipse里的“workspace”,而“new Module”才是创建一个工程。创建项目:file->new->project点击next,命名和选择位置,点击完成。注意:如果盘符后面是\\,要改成\。否则会出现文...原创 2018-09-03 23:40:36 · 6943 阅读 · 5 评论 -
一文解决,PLSQL Developer 取消科学计数法
PLSQL Developer 取消科学计数法原创 2020-09-11 14:36:49 · 2563 阅读 · 0 评论 -
一文解决, hosts 文件修改
修改 hosts 文件的方法原创 2020-12-12 17:26:55 · 229 阅读 · 2 评论 -
一文解决,declares multiple JSON fields named
【gson】declares multiple JSON fields named 解决方法。原创 2020-08-28 13:24:04 · 3922 阅读 · 0 评论 -
一文解决,Unexpected end of JSON input while parsing near 错误
Unexpected end of JSON input while parsing near 错误解决方法.原创 2020-08-19 22:58:15 · 1717 阅读 · 0 评论 -
一文解决,Copying files to remote side failed. Failure writing to local file.
文件传输报:Copying files to remote side failed. Failure writing to local file.解决方法。原创 2020-04-07 14:26:52 · 2303 阅读 · 1 评论 -
一文解决,node-sass安装失败
方法npm install -g mirror-config-china --registry=http://registry.npm.taobao.orgnpm install node-sass图示参照www.nodejs.com原创 2019-11-28 11:38:42 · 296 阅读 · 0 评论 -
一文解决,idea 中web.xml配置文件中webapp标签报红字错误
问题描述导入项目发现web.xml报错,信息为:The content of element type “web-app” must match “(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*...原创 2019-03-07 21:49:55 · 14519 阅读 · 2 评论 -
一文解决,win10 配置 maven (The JAVA_HOME environment variable is not defined correctly)
这里写自定义目录标题简述流程问题解决方法参见简述这几天因为Arch Linux挂掉了,还没时间去弄,所以需要在win10上配置maven。为了完成作业。然后踩了很多坑。流程1.安装好jdk(本人是用jdk10)2.安装maven3.测试第一步:点击查看之前的文章第二步:没错,我就是在这里被坑了很久。先在官网下载点击下载.然后配置maven_home(看自己的安装路径)这...原创 2019-02-23 22:45:04 · 4213 阅读 · 0 评论 -
一文解决,IntelliJ IDEA 2018 println报红字错误
out.println报红字错误,这是因为没有关联好tomcat服务器点击File –>Project Structure–>Modules –>Dependencies点击绿色+ –>library,点击确认。...原创 2018-11-07 15:50:03 · 6677 阅读 · 1 评论 -
一文解决,IntelliJ IDEA 2018 解决浏览器打不开问题
如题,点击出现:Cannot run program "chrome": error=2, No such file or directory原因文件路径未配置好,或软件没有安装。这里先查找chrome文件路径。#查找chrome文件路径find / -name chrome找到后我们在进行配置如图点击path(路径如图所示)进行修改。确定后,再打开,就行...原创 2018-09-17 08:45:07 · 15772 阅读 · 3 评论 -
一文解决,IDEA Error copying configuration files &Address localhost:8080 is already in use
在Archlinux下,idea运行tomcat出现,如下错误信息。Error running 'Tomcat 8.0.47': Error copying configuration files from /usr/share/tomcat8/conf....产生原因:指定文件权限不足(permission denied)。解决方法:进入tomcat目录下的conf文件...原创 2018-09-16 20:16:41 · 7390 阅读 · 0 评论 -
一文解决,IntelliJ IDEA 2018 关闭代码重复波浪线
问题情况如图,代码出现波浪线,这是idea中的代码重复功能。解决办法setting 下,搜索 duplicated code去掉勾就行。如图所示原创 2018-08-31 22:02:04 · 3938 阅读 · 0 评论 -
一文解决,MySQL出现ERROR 1819
1、原因MySQL对设置密码进行了默认的限制(policy = 1)。即MEDIUM,所以设置的密码必须符合长度(默认为 8 ),且必须含有数字,小写或大写字母,特殊字符。2、解决办法进入MySQL下(前提是validate_password插件必须已经安装,从5.7版本开始默认安装)首先,修改validate_password_policy参数的值即policy...原创 2018-07-27 16:40:11 · 18320 阅读 · 0 评论 -
一文解决,Xshell连接CentOS 7(IP地址不显示问题)
1、设置虚拟机的网络连接方式双击虚拟机右下角,弹出虚拟机设置点击网络适配器,连接改成自定义的vmnet8(nat 模式),确定保存2、查询ip地址打开终端输入ifconfig -a若如图,无显示ip地址进行如下操作进入指定目录network-scripts,编辑对应的ifcfg-ensxx(这里是ens33) 找到onboot 修改为yes,保存退出...原创 2018-07-25 19:12:49 · 2307 阅读 · 2 评论 -
一文解决,MySQL 安装(解决出现ERROR 1290 (HY000)错误)
1、下载安装MySQL的Yum资源wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpmyum -y install mysql57-community-release-el7-10.noarch.rpmyum -y install mysql-community-ser...原创 2018-07-25 15:17:32 · 12006 阅读 · 0 评论 -
一文解决,JAVA SE JDK-10安装、配置(解决java成功,javac失败问题)
本文是在win10环境下安装JDK-10在linux环境下安装JDK-10请点击:CentOS 7 安装、配置JDK-101、下载JDK包点击打开下载网站点击图中的Accept License Agreement,再选择Win版本进行下载2、安装JDK包下载完毕,运行安装程序修改安装路径(这里选择的按照路径是D:\Program Files\Java\JDK-1...原创 2018-07-11 18:28:36 · 10312 阅读 · 12 评论 -
一文解决,oracle显示ORA-01017
首先在网上拷贝scott.sql文件内容(新建记事本,在改后缀.sql)下载scott.sql (数据库文件)再拷到虚拟机中,随意放一个位置(自己记住就好)我放的位置是:/home/oracle不知道位置的可以用:输入 pwd 命令查看位置或者右键查看然后我们进入sqlsqlplus / as sysdbaconn / as sysdba在导入scott.sql...原创 2018-07-16 22:31:19 · 6335 阅读 · 0 评论 -
一文解决,端口被占用
本文讲解,在 win 10 或 linux 系统下如何解除 端口占用。原创 2020-12-15 20:38:02 · 98 阅读 · 0 评论 -
一文解决,命令后台运行
如何后台运行命令?nohup &原创 2020-12-13 13:06:54 · 151 阅读 · 0 评论