deploy 遇到 400 错误
错误日志
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project xxxx: Failed to deploy artifacts: Could not transfer artifact xxx:pom:1.0.1 from/to archiva.internal (http://nexus.xxx/nexus/content/reposito
Read more ...
行为模式关注类和对象如何交互,以及如何负责对应的事务,也就是怎么定义类的行为和职责。
行为模式还可以大致分成:类行为模式(继承)和对象行为模式(组合或聚合),后者更符合「合成复用原则」。
具体模式
Observer, Notifies multiple objects about state changes in another object.
Strategy, Defines interchangeable algorithms within a family of algorithms
Command, Encapsulates
Read more ...
设计模式中的结构模式可以让我们组合类或者对象形成比较大型的结构,但也能保证结构的可维护性和可扩展性。
Adapter, Allows incompatible interfaces to work together.
Decorator, Dynamically adds behavior to objects without altering their structure.
Facade, Simplifies access to complex systems by providing a unified interface.
Read more ...