自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

IT小酱

it学习中遇到的问题分析及见解

  • 博客(10)
  • 收藏
  • 关注

原创 nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could n

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)nginx: [emerg] still could not bind()80端口被占用用netstat -ltunp命令,可以看到80端口被nginx占用了,因为之前安过一次,现在再安了一次,冲突了。只需要关闭服务即可: service ngi...

2019-10-21 09:36:46 1846

原创 java.lang.IllegalStateException: No instances available for service-provider

在配置负载均衡时,用@LoadBalanced时报异常。。我仔细想了一下,是地址名用错了,在消费方应该调提供方的地址名:ppp

2019-10-08 16:14:06 3273 1

原创 org.springframework.web.client.HttpClientErrorException$NotFound: 404 null

在解决硬编码问题时,id名应为提供服务方名称(ppp)记得检查名字

2019-10-08 11:22:23 7052

原创 java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more...

spring cloud抛了一个错误:java.sql.SQLException: The server time zone value ‘�й���׼ʱ��’ is unrecognized or represents more…ERROR o.a.tomcat.jdbc.pool.ConnectionPool - Unable to create initial connections o...

2019-10-07 20:57:36 2366 1

原创 sql 导入linux问题:ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-m

ASCII ‘\0’ appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII ‘\0’ is expected. Query: ...

2019-09-26 16:10:14 6418 1

原创 500 Request processing failed; nested exception is java.lang.NullPointerException

上图两个要相同,如果不同则出现下图错误:

2019-09-15 16:25:38 402

原创 Spring无法自动注入之注解用错

expected at least 1 bean which qualifies as autowire candidate@ComponentScan注解打错,何等的粗心。代码核对再多遍也没用啊!!

2019-09-10 12:51:13 315

原创 认识constructor

constructor 是一种用于创建和初始化class创建的对象的特殊方法。在一个类中只能有一个名为 “constructor” 的特殊方法。 一个类中出现多次构造函数 (constructor)方法将会抛出一个 SyntaxError 错误。在一个构造方法中可以使用super关键字来调用一个父类的构造方法。如果没有显式指定构造方法,则会添加默认的 constructor 方法。如果不指...

2019-08-28 17:09:57 1839

原创 length及size认识

总是不太清楚size跟length,所以今天把这个弄出来,更深刻地理解。首先区分一下length和length():length是数组的属性;public static void main(String[] args) {int[] intArray = {1,2,3};System.out.println(“这个数组的长度为:” + intArray.length);}length...

2019-08-28 10:41:10 1281

原创 Java反射机制

Java反射机制指的是在Java程序运行状态中,对于任何一个类,都可以获得这个类的所有属性和方法;对于给定的一个对象,都能够调用它的任意一个属性和方法。这种动态获取类的内容以及动态调用对象的方法称为反射机制。Java的反射机制允许编程人员在对类未知的情况下,获取类相关信息的方式变得更加多样灵活,调用类中相应方法,是Java增加其灵活性与动态性的一种机制。功能:1、获得某个对象的属性。通过g...

2019-08-27 22:31:42 154

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除