logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Idea springboot应用,启动报错:org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputExcept

Failed to load property source from location 'classpath:/application.yml'cause by:org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException原因有2:其一:文件编码有问题,比如从A机器提交到svn,B机器...

java -jar 或eclipse启动报错:There is insufficient memory for the Java Runtime Environment to continue.

经查:发现是因为内存不够用,同时,没有设置虚拟内存导致的,设置虚拟内存即可。## There is insufficient memory for the Java Runtime Environment to continue.# Native memory allocation (malloc) failed to allocate 1112512 bytes for Chunk::n...

Fegin RPC调用远程接口返回值解析问题:java.util.LinkedHashMap cannot be cast to com.xxx.xxx

现象:BaseResponse 对象中有个Property名为result,为Object 类型,接口为这个result赋值是一个Map<String, NodeDetail> 对象,结果在用Map<String, NodeDetail> 类型强转result时报错:java.util.LinkedHashMap cannot be cast to com.xxx.xxx.

MySQL或mybatis连接异常:No operations allowed after connection closed & Communications link failure

使用javaSE连接mysql,无论是直接使用jdbc连接还是使用mybatis,运行一段时间后,都有如下两个异常:No operations allowed after connection closed或CommunicationsException: Communications link failure The last packet successfully received from

文章图片
#mysql#数据库#database
MySQL或mybatis连接异常:No operations allowed after connection closed & Communications link failure

使用javaSE连接mysql,无论是直接使用jdbc连接还是使用mybatis,运行一段时间后,都有如下两个异常:No operations allowed after connection closed或CommunicationsException: Communications link failure The last packet successfully received from

文章图片
#mysql#数据库#database
虚拟机中Centos7 部署nginx

1.首先保证虚拟机是否能正常联网,如果不能正常联网,无法yum安装,但只会提示unknown error解决办法:虚拟机联网:首先确保,网上邻居里的“VMware Network Adapter VMnet1”和“VMware Network Adapter VMnet8”两个连接都是启用状态。服务里的“VMware Authorization Service搜索”,“VMware D

使用SecureCRT远程连接虚拟机CentOS

【声明】欢迎转载,但请保留文章原始出处→_→生命壹号:http://www.cnblogs.com/smyhvae/文章来源:http://www.cnblogs.com/smyhvae/p/3919940.html联系方式:smyhvae@163.com  【正文】虚拟机版本:VMware Workstation_10.0.3Lin

linux使用rz命令在终端中直接上传文件

1、如果服务器不支持rz命令的话,需要安装执行 yum -y install lrzsz 注意:如果不是root用户,需要先切换到root用户,su root 回车后输入密码2、再输入rz -be命令,选择需要上传的本地文件,然后就直接上传道当前的路径下

#linux
SpringBoot应用接口无法访问,但应用看起来正常

背景:应用中有多个实现了CommandLineRunner接口的类,其中一个类A单独起了一个线程去执行逻辑,另一个类B也实现了CommandLineRunner接口但是没有new新线程的操作。现象:应用部署在k8s平台之上,应用启动后,pod看起来正常,应用日志感觉也正常,但就是无法访问接口,ping或者访问这个接口都是connection refused。原因:应用启动后,类A的run方法先启动

#spring boot#后端#java
容器中的Springboot应用连接Nacos,无法读取环境变量的尴尬问题

问题描述:本地测试连接nacos可以,但在k8s的pod中连接不到nacos,提示groupId为空。其中,bootstrap.yml文件为:spring:application:name: ms-scriptenginecloud:config:enabled: falsenacos:config:enabled: trueserver-addr: nacos.public.svc..

#bash
    共 13 条
  • 1
  • 2
  • 请选择