一、现象
通过maven-assembly-plugin插件打包,发现lib里有的Jar包格式为artifact-demo-1.0.SNAPSHOT.jar,而有的格式为artifact-demo-1.0.20211123.202203-4.jar。
有个明显的现象是执行mvn clean package
命令时,所编译的module后缀皆为SNAPSHOT。
通过maven-assembly-plugin插件打包,发现lib里有的Jar包格式为artifact-demo-1.0.SNAPSHOT.jar,而有的格式为artifact-demo-1.0.20211123.202203-4.jar。
有个明显的现象是执行mvn clean package
命令时,所编译的module后缀皆为SNAPSHOT。
1 | import org.slf4j.Logger; |
You will typically name your plugin
<yourplugin>-maven-plugin
.Calling it
maven-<yourplugin>-plugin
(note “Maven” is at the beginning of the plugin name) is strongly discouraged since it’s a reserved naming pattern for official Apache Maven plugins maintained by the Apache Maven team with groupIdorg.apache.maven.plugins
. Using this naming pattern is an infringement of the Apache Maven Trademark.
本文基于Camel版本2.20.1。
地址:https://camel.apache.org/manual/latest/faq/using-getin-or-getout-methods-on-exchange.html
1)引入httpclient依赖
1 | <dependency> |
扩展接口SmartInitializingSingleton
1)AbstractApplicationContext#refresh
1 | public void refresh() throws BeansException, IllegalStateException { |
1)SpringApplication#run
1 | public ConfigurableApplicationContext run(String... args) { |
1 | ServiceLoader<MySpiInterface> load = ServiceLoader.load(MySpiInterface.class); |
Dubbo消费端的ClusterInvoker中,只有当异常是业务的RPC异常(isBiz() == true
)时不会重试。
1 | public class FailoverClusterInvoker<T> extends AbstractClusterInvoker<T> { |
1)可选,为方便起见先创建一个JAVA_HOME的软连接
ln -s /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home jdk8
2)启动hsdb
一个RPC服务在发布时不可避免的要设置其线程池大小,而我们往往却只根据经验来设置,需知不同场景不同业务下其需要配置不同的值方能使系统更稳定。以下内容是我认为应该去考虑的因素和具体的一些步骤,留待慢慢验证。