• 首页
  • 产品中心
    • 数式Oinone四大产品

      低代码开发平台无代码开发平台集成开发平台AI大模型开发
    • 数式Oinone体系能力

      用户与组织权限管理文件管理消息中心国际化业务审计
    • 数式Oinone核心产品特性

      低无一体面向软件公司场景无限制应用级扩容可分可合
  • 服务中心
    • 客户服务

      预约演示方案咨询私有部署找人定制
    • 开发者

      问答下载
    • Oinone学院

      社区学习

    《精讲面向软件公司的低代码平台——以Oinone为例》

  • 合作伙伴
    渠道申请伙伴名录专家库
  • 关于数式
0571-88757863

Environmental Protection:Oinone Environmental Protection (above v5.2.3)


Ⅰ. Overview

The Oinone platform provides partners with an environmental protection function to ensure that deployment operations such as modifying configuration files and starting multiple JVMs can be carried out under relatively safe conditions in a single environment.

This chapter mainly introduces the startup parameters related to the environmental protection function.

Ⅱ. Nomenclature

  • Local development environment: The environment where developers start the business project locally.
  • Public environment: The environment including the designer image and business project.

Ⅲ. Introduction to Environmental Protection Parameters

(Ⅰ) -PenvProtected=${value}

Whether to enable environmental protection, with the default being true.

Environmental protection works by comparing with the data recently saved in the base_platform_environment table of the database and judging according to the configuration characteristics of each parameter. Errors will be printed in the startup log to help developers troubleshoot problems.

Additionally, the environmental protection function provides some optimization suggestions for production configurations. Developers can pay attention to these logs during startup to optimize the configurations of the production environment.

(Ⅱ) -PsaveEnvironments=${value}

Whether to save the environmental parameters of this startup to the database, with the default being true.

In some special cases, to avoid unnecessary changes to the protection parameters in the public environment, we can choose not to save the configuration parameters of this startup to the database, so as not to affect the startup of other JVMs due to failed validation.

(Ⅲ) -PstrictProtected=${value}

Whether to use the strict validation mode, with the default being false.

It is generally recommended to enable the strict validation mode in the public environment to maximize the protection of the public environment's metadata from interference by other environments.

Note:

When enabling the strict validation mode, avoid scenarios where different connection addresses are used for internal and external networks. If this cannot be avoided, the strict validation mode cannot be enabled.

Ⅳ. Common Issues

(Ⅰ) How to migrate the database and change the database connection address?

  1. Migrate the original database to the new database.
  2. Modify the database connection address in the configuration file.
  3. Add -PenvProtected=false to the startup script to disable environmental protection.
  4. Start the JVM service. Error logs will be prompted, but the current startup will not be interrupted.
  5. Remove -PenvProtected=false from the startup script or change the value to true. Environmental protection checks will continue at the next startup.
  6. Check that the corresponding database connection configuration in the base_platform_environment table has been modified. If other JVMs do not modify it correctly before startup, they will fail to start.

(Ⅱ) How to modify the Redis connection address to the local one during local development without affecting the public environment?

Note:

Since the metadata cache in Redis is synchronized based on database deltas, this operation will cause the public environment to fail to correctly refresh the metadata cache in Redis during startup. It needs to be operated with the pamirs.distribution.session.allMetaRefresh parameter. Unless necessary, we do not recommend using this form for collaborative development, as multiple configuration modifications will increase the probability of errors.

  1. When starting the local environment for the first time, in addition to modifying the Redis-related configurations, also configure pamirs.distribution.session.allMetaRefresh=true to initialize the locally connected Redis.
  2. When starting locally, add the startup parameters -PenvProtected=false -PsaveEnvironments=false to ensure that the local startup does not modify the public environment's configurations and can pass the environmental protection check normally.
  3. After the local environment is successfully started and the function is developed normally, when publishing to the public environment for testing, first modify the pamirs.distribution.session.allMetaRefresh=true configuration in the public environment's business project, and then start the business project.
  4. After starting the business project once, restore the configuration to pamirs.distribution.session.allMetaRefresh=false.
Edit this page
Last Updated:6/23/25, 9:28 AM
Prev
Source Code Configuration:How to Configure Expressions Using Source Code
Next
Environment Upgrade:Cache Connection Switched from Jedis to Lettuce
默认页脚
Copyright © 2026 Mr.Hope