Solon v2.9.3

solon-web 及常见组合方案

</> markdown

1、solon-web

solon-web 是个快捷组合包,是在 solon-lib 的基础上,组合基础的 web 开发插件。相对于旧版:

  • 移除了 solon-view-freemarker(方便自选)
  • 增加了 solon-security-validation(由 solon-lib 移过来)

以下为 v2.9 之后的内容

<parent>
    <groupId>org.noear</groupId>
    <artifactId>solon-parent</artifactId>
    <version>2.9.3</version>
</parent>

<dependencies>
    <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon-lib</artifactId>
    </dependency>

    <!-- Http 启动器 -->
    <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon-boot-smarthttp</artifactId>
    </dependency>

    <!-- Json序列化支持插件 -->
    <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon-serialization-snack3</artifactId>
    </dependency>

    <!-- 本地SessionSate支持插件 -->
    <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon-sessionstate-local</artifactId>
    </dependency>

    <!-- 静态文件支持插件 -->
    <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon-web-staticfiles</artifactId>
    </dependency>

    <!-- 跨域处理插件 -->
    <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon-web-cors</artifactId>
    </dependency>

    <!-- 参数与实体验证扩展插件 -->
    <dependency>
        <groupId>org.noear</groupId>
        <artifactId>solon-security-validation</artifactId>
    </dependency>
</dependencies>

2、常见组合方案

2.9.2 移除的快捷组合包,是通过以下方式组合而成:

旧版快捷组合包新的组合方式备注
solon-apisolon-web多了 solon-sessionstate-local
solon-websolon-web +
solon-view-freemarker
solon-rpcsolon-web +
nami-coder-snack3 +
nami-channel-http-okhttp
solon-beetl-web
(或 solon-web-beetl)
solon-web +
solon-view-beetl +
beetlsql-solon-plugin
solon-enjoy-web
(或 solon-web-enjoy)
solon-web +
solon-view-enjoy +
activerecord-solon-plugin
solon-cloud-alibabasolon-web + solon-cloud +
nacos-solon-cloud-plugin +
rocketmq-solon-cloud-plugin +
sentinel-solon-cloud-plugin
solon-cloud-watersolon-web + solon-cloud +
water-solon-cloud-plugin