`
lixuexia
  • 浏览: 15064 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
Spring Cloud用Zuul做代理服务器,查看Zuul中注册的所有服务: http://localhost:port/routes 返回字符串实例: {"/api-demand/**":"cloud-service-rawdemand","/cloud-config-server/**":"cloud-config-server","/cloud-service-rawdemand/**":"cloud-service-rawdemand","/cloud- ...
文档地址: http://projects.spring.io/spring-cloud/#quick-start
Spring Cloud实现心跳监测,在服务注册和停止时,注册中心能得到通知,并更新服务实例列表 Spring Cloud注册中心添加配置: eureka.server.enable-self-preservation=false Spring Cloud服务提供者添加配置: eureka.instance.lease-renewal-interval-in-seconds=5 eureka.instance.lease-expiration-duration-in-seconds=5
Spring Boot指定端口运行微服务实例: java -jar cloud-service-rawdemand-0.0.1-SNAPSHOT.jar --name="cloud-service-rawdemand-spring" --server.port=52012 参数:--service.port=52012 如程序中配置了52011,现在还想多运行一个实例到52012端口,即用该参数
带有package的java类编译与运行: 编译: javac -d . xxx.java 假设包名:com.lixx.io 运行: java com.lixx.io.xxx 否则会出现错误:找不到主类 如果没有包,则无需加参数,直接javac和java即可。 如果javac能编译,但java不能运行,并提示: Exception in thread "main" java.lang.NoClassDefFoundError 或 找不到主类 多半是这个原因
HTTP Status 500 - /index.jsp (line: 11, column: 1) Attribute name invalid for tag property according to TLD 错误原因: <s:property name="prop01" value="pagename"/> 多写了name="prop01"导致 Struts2的标签库中,property不存在属性name
Global site tag (gtag.js) - Google Analytics