- 博客(13)
- 收藏
- 关注
原创 报错:org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for localhos
微服务报错:org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for localhost
2022-10-19 19:20:37
651
原创 微服务启动报:No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loa
微服务启动报错: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalancer?
2022-09-26 15:47:21
718
原创 Nacos启动报错:ERROR Nacos failed to start, please see E:\Environm\nacos\logs\nacos.log for more details.
Nacos启动报错:ERROR Nacos failed to start, please see E:\Environm\nacos\logs\nacos.log for more details.
2022-08-16 15:36:18
3171
原创 Java 中new String 创建了几个对象?
1.说到String创建对象,先来看看String创建对象的两种方式吧!(1)方式一:直接赋值 String s1 = "hello"; (2) 方式二 调用构造器 String s2 = new String("hello");2.两种创建String对象的区别方式一:先从常量池查看是否有"hello"的数据空间,如果有,直接指向其数据空间,如果没有,则重新创建,然后指向s1。s1最终指向的是常量池空间地址。 方式二:先再堆中创建空间,里面维护了value属性(看底层源码),指向常量...
2022-04-11 21:41:43
790
原创 web项目报错: 错误: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099;
IDEA 启动WEB项目时报错信息如下:错误: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.BindException: Address already in use: JVM_Bindsun.management.AgentConfigurationError: java.rmi.server.ExportException: Port a...
2022-03-30 20:31:29
2164
1
原创 生成验证码时,验证码图片不显示,报错信息如下:Can‘t create output stream;Can‘t create cache file
登录验证时,验证码不显示,解决办法如下: 今天写了一个简单的demo,测试使用验证码登录验证,遇到了一个问题,验证码不显示,浏览器显示页面如下(简单测试,页面就随便写了一个) 浏览器显示界面如下(验证码无法显示): 报错信息如下:错误日志1:错误日志2:错误日志3:错误总结下来大概就是下面三个: Can't create output stream!(没有办法创建输出流) Can't create cache file!(没有办法创建缓冲文件) ...
2022-03-28 20:00:26
8607
1
原创 Java从键盘获取输入,判断其输入为数字、字母、空格,并统计其各自的数量
public class CharDemo {/*2. 请编写程序,由键盘录入一个字符串,统计字符串中英文字母、数字和空格分别有多少个。 */public static void main(String[] args) { int wordCount = 0;//字母 int numCount = 0;//数字 int SpaceCount = 0;//空格 int otherCount = 0;//其他 /*int upperCount = 0;..
2022-03-28 19:51:55
2087
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人