Eric 发布的文章

网站测速 在线工具

有时候为了优化网站, 有时候为了测试一下网站在全国的访问速度, 需要这种专业的测试工具, 常用的有:

  1. 阿里测 [][1]
  2. 奇云测 [][2]

只可惜, 我的路由器经不起这么多的站点同时测试, nginx 很容易100% CPU.

RESTful 学习笔记

  1. REST: Representational State Transfer, 我喜欢译为 "可表示的状态的传输", "可描述的状态的传输". 表示的, 或者描述的是背后的资源/资产 (Resoure). 状态是 Resource 的状态 (期望的状态或当前的状态).
  2. RESTful 是一种 Style, 不是一个规范;
  3. 有几个特别熟悉的词要熟悉一下它原来的含义
    Uniform Resource Identifier (URI)
    HyperText Transfer Protocol (HTTP)
    HyperText Mark-up Language (HTML)
  4. Hypermedia as the engine of application state (HATEOAS);

Maven 完全参考 学习笔记 (3) Project Object Model - Project Dependencies

  1. There are 4.5 types of dependence scope. compile(default), test[junit], provided[servlet], runtime[mysql-jdbc], system;
  2. you can define: Optional Dependencies. subproject or depends project will choose dependence;
  3. Version Ranges: (, ), [, ], [3.8,4.0), [,3.8.1], etc;
  4. 传递性依赖 和 冲突解析;
  5. Project relationship: depends, parent-child, project-subModule;
  6. Child POM inherits from its parent POM:
    identifiers (at least one of groupId or artifactId must be overridden.)
    developers and contributors
    plugin lists
    reports lists
    plugin executions (executions with matching ids are merged)
    plugin configuration
  7. Maven assumes that the parent POM is available from the local repository, or available in the parent directory (../pom.xml) of the current project. Or you can use relativePath to customize: <relativePath>../a-parent/pom.xml</relativePath>
  8. Best Practices:
    Grouping Dependencies
    Multi-module vs. Inheritance