Skip to main content

Node.js require 缓存

· One min read
Alan
Maintainer of blog

在Node环境, 使用require多次加载模块时, 返回的都是同一个对象, 通过require.cache可以迭代查看所有require缓存的对象.

如何使用命令行创建带有多个子模块的Maven项目

· 5 min read
Alan
Maintainer of blog

In this guide, we learn how to create Maven Multi-Module using Command Line with very easy steps. A multi-module project is defined by a parent POM referencing one or more sub-modules. In this example, we will create a blogger web application with different modules. Let's create a blogger as parent project and it's 3 sub-modules are blogger-core, blogger-common, blogger-web.

Real-world examples of maven multi-module projects are: