All Products
Search
Document Center

Serverless App Engine:Notes on using GTS in a private network-based test environment of SAE

Last Updated:Aug 21, 2025

When using GTS in a private network-based test environment (specifically, a production environment) of SAE, you must set the URL parameter to https://cs2.gts.aliyuncs.com.

Using txc-client.jar

To configure the URL parameter when using txc-client.jar, refer to the sample code provided.

<bean class="com.taobao.txc.client.aop.TxcTransactionScaner">
        <constructor-arg value="myapp"/><!-- Custom identifier of an application -->
        <constructor-arg value="mygroup.xxxx.xx"/><!-- Full name of a transaction group -->
        <constructor-arg type="int" value="1"/>
        <constructor-arg value="https://cs2.gts.aliyuncs.com"/>
        <property name="accessKey" value="xxx"/>
        <property name="secretKey" value="xxx"/>
</bean>

Using txc-client-springcloud.jar

When using txc-client-springcloud.jar, include spring.cloud.txc.url=https://cs2.gts.aliyuncs.com in your properties configuration file.