Solon 已有120个生态扩展插件,此次更新主要为细节打磨,且对k8s和docker-compose更友好:
1、插件 solon.coud ,事件总线增加支持本地同主题多订阅模式(以支持同服务内,领域隔离的需求)
@CloudEvent("demo.user.created")
public class EventHandlerDemo1 implements CloudEventHandler {
@Override
public boolean handler(Event event) throws Throwable {
return true;
}
}
@CloudEvent("demo.user.created")
public class EventHandlerDemo2 implements CloudEventHandler {
@Override
public boolean handler(Event event) throws Throwable {
return true;
}
}
2、插件 solon.view.beetl,升级 beetl 到 3.8
3、插件 solon.boot.smarthttp 升级 smart-http 为 1.1.9
4、插件 weed3-solon-puglin 升级 weed 3.4.8
5、修复 solon.extend.staticfiles 增加本地绝对位置时无效的问题
@Component
public class InitPluginDemo implements Plugin {
@Override
public void start(SolonApp app) {
StaticMappings.add("/", new ExtendStaticRepository());
StaticMappings.add("/", new FileStaticRepository("/data/sss/water/water_ext/"));
StaticMappings.add("/", new ClassPathStaticRepository("user"));
}
}
6、增