fix:修改配置文件指向资源文件的路径

dev
郭承 4 months ago
parent 45079ee231
commit 451bcd8573

@ -18,8 +18,8 @@
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations"> <property name="locations">
<list> <list>
<value>classpath:redis.properties</value> <value>file:${XYDL_DIR}/jkpg/redis.properties</value>
<value>classpath:application.properties</value> <value>file:${XYDL_DIR}/jkpg/application.properties</value>
</list> </list>
</property> </property>
</bean> </bean>

@ -6,7 +6,8 @@
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd"> http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<dubbo:application name="${base.name}" /> <!--<dubbo:application name="${base.name}" />-->
<dubbo:application name="busi_app_consumer" />
<dubbo:consumer timeout="${base.timeout}" loadbalance="${base.roundrobin}" <dubbo:consumer timeout="${base.timeout}" loadbalance="${base.roundrobin}"
retries="${base.retries}" /> retries="${base.retries}" />
<!-- 使用zookeeper注册中心暴露服务地址 --> <!-- 使用zookeeper注册中心暴露服务地址 -->

@ -17,8 +17,8 @@
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations"> <property name="locations">
<list> <list>
<value>classpath:redis.properties</value> <value>file:${XYDL_DIR}/jkpg/redis.properties</value>
<value>classpath:application.properties</value> <value>file:${XYDL_DIR}/jkpg/application.properties</value>
</list> </list>
</property> </property>
<property name="fileEncoding"> <property name="fileEncoding">

@ -6,7 +6,7 @@
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd"> http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<dubbo:application name="${base.name}" /> <dubbo:application name="busi_consumer" />
<dubbo:consumer timeout="${base.timeout}" loadbalance="${base.roundrobin}" <dubbo:consumer timeout="${base.timeout}" loadbalance="${base.roundrobin}"
retries="${base.retries}" /> retries="${base.retries}" />
<!-- 使用zookeeper注册中心暴露服务地址 --> <!-- 使用zookeeper注册中心暴露服务地址 -->

@ -61,7 +61,8 @@
scope="prototype"> scope="prototype">
<property name="patterns"> <property name="patterns">
<list> <list>
<value>${base.service.package}</value> <!-- <value>${base.service.package}</value> -->
<value>com.huatek.busi.service.*</value>
</list> </list>
</property> </property>
</bean> </bean>
@ -85,7 +86,8 @@
<property name="mapperLocations"> <property name="mapperLocations">
<array> <array>
<value>${base.mapper.path}</value> <!-- <value>${base.mapper.path}</value> -->
<value>classpath:com/huatek/busi/mapping/*Mapping.xml</value>
<value>classpath:com/huatek/torch/sql/mapping/*Mapper.xml</value> <value>classpath:com/huatek/torch/sql/mapping/*Mapper.xml</value>
</array> </array>
</property> </property>

@ -10,9 +10,9 @@
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations"> <property name="locations">
<list> <list>
<value>classpath:jdbc.properties</value> <value>file:${XYDL_DIR}/jkpg/jdbc.properties</value>
<value>classpath:application.properties</value> <value>file:${XYDL_DIR}/jkpg/application.properties</value>
<value>classpath:redis.properties</value> <value>file:${XYDL_DIR}/jkpg/redis.properties</value>
</list> </list>
</property> </property>
</bean> </bean>
@ -22,15 +22,17 @@
<import resource="spring-redis.xml" /> <import resource="spring-redis.xml" />
<import resource="spring-quartz.xml" /> <import resource="spring-quartz.xml" />
<dubbo:application name="${base.name}" /> <dubbo:application name="busi_provider" />
<!-- 使用zookeeper注册中心暴露服务地址 --> <!-- 使用zookeeper注册中心暴露服务地址 -->
<dubbo:registry address="${base.zookeepr}" /> <dubbo:registry address="${base.zookeepr}" />
<!-- 用dubbo协议在28080端口暴露服务 --> <!-- 用dubbo协议在28080端口暴露服务 -->
<dubbo:protocol name="dubbo" port="${base.port}"/> <!-- <dubbo:protocol name="dubbo" port="${base.port}"/> -->
<dubbo:protocol name="dubbo" port="10100"/>
<dubbo:provider timeout="${base.timeout}" threadpool="${base.threadpool}" <dubbo:provider timeout="${base.timeout}" threadpool="${base.threadpool}"
threads="${base.threads}" accepts="${base.accepts}" retries="${base.retries}" threads="${base.threads}" accepts="${base.accepts}" retries="${base.retries}"
filter="busiExceptionFilter,-exception" payload="21557050"/> filter="busiExceptionFilter,-exception" payload="21557050"/>
<!-- filter="busiExceptionFilter,-exception" --> <!-- filter="busiExceptionFilter,-exception" -->
<dubbo:annotation package="${base.service.impl.package}" /> <!-- <dubbo:annotation package="${base.service.impl.package}" /> -->
<dubbo:annotation package="com.huatek.busi.service.impl" />
</beans> </beans>

@ -20,7 +20,7 @@
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations"> <property name="locations">
<list> <list>
<value>classpath:application.properties</value> <value>file:${XYDL_DIR}/jkpg/application.properties</value>
</list> </list>
</property> </property>
</bean> </bean>

@ -6,7 +6,7 @@
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd"> http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<dubbo:application name="${base.name}" /> <dubbo:application name="base_ws_consumer" />
<dubbo:consumer timeout="${base.timeout}" loadbalance="${base.roundrobin}" <dubbo:consumer timeout="${base.timeout}" loadbalance="${base.roundrobin}"
retries="${base.retries}" /> retries="${base.retries}" />
<!-- 使用zookeeper注册中心暴露服务地址 --> <!-- 使用zookeeper注册中心暴露服务地址 -->

@ -18,8 +18,8 @@
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations"> <property name="locations">
<list> <list>
<value>classpath:redis.properties</value> <value>file:${XYDL_DIR}/jkpg/redis.properties</value>
<value>classpath:application.properties</value> <value>file:${XYDL_DIR}/jkpg/application.properties</value>
</list> </list>
</property> </property>
</bean> </bean>

@ -6,7 +6,7 @@
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd"> http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<dubbo:application name="${base.name}" /> <dubbo:application name="base_consumer" />
<dubbo:consumer timeout="${base.timeout}" loadbalance="${base.roundrobin}" <dubbo:consumer timeout="${base.timeout}" loadbalance="${base.roundrobin}"
retries="${base.retries}" /> retries="${base.retries}" />
<!-- 使用zookeeper注册中心暴露服务地址 --> <!-- 使用zookeeper注册中心暴露服务地址 -->

@ -57,7 +57,7 @@
scope="prototype"> scope="prototype">
<property name="patterns"> <property name="patterns">
<list> <list>
<value>${base.service.package}</value> <value>com.huatek.frame.base.service.*</value>
</list> </list>
</property> </property>
</bean> </bean>
@ -81,7 +81,7 @@
<property name="mapperLocations"> <property name="mapperLocations">
<array> <array>
<value>${base.mapper.path}</value> <value>classpath:com/huatek/frame/base/mapping/*Mapper.xml</value>
<value>classpath:com/huatek/torch/sql/mapping/*Mapper.xml</value> <value>classpath:com/huatek/torch/sql/mapping/*Mapper.xml</value>
</array> </array>
</property> </property>

@ -10,9 +10,9 @@
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations"> <property name="locations">
<list> <list>
<value>classpath:jdbc.properties</value> <value>file:${XYDL_DIR}/jkpg/jdbc.properties</value>
<value>classpath:application.properties</value> <value>file:${XYDL_DIR}/jkpg/application.properties</value>
<value>classpath:redis.properties</value> <value>file:${XYDL_DIR}/jkpg/redis.properties</value>
</list> </list>
</property> </property>
</bean> </bean>
@ -21,13 +21,13 @@
<import resource="spring-database.xml" /> <import resource="spring-database.xml" />
<import resource="spring-redis.xml" /> <import resource="spring-redis.xml" />
<dubbo:application name="${base.name}" /> <dubbo:application name="base_provider" />
<!-- 使用zookeeper注册中心暴露服务地址 --> <!-- 使用zookeeper注册中心暴露服务地址 -->
<dubbo:registry address="${base.zookeepr}" /> <dubbo:registry address="${base.zookeepr}" />
<!-- 用dubbo协议在28080端口暴露服务 --> <!-- 用dubbo协议在28080端口暴露服务 -->
<dubbo:protocol name="dubbo" port="${base.port}" /> <dubbo:protocol name="dubbo" port="10001" />
<dubbo:provider timeout="${base.timeout}" threadpool="${base.threadpool}" <dubbo:provider timeout="${base.timeout}" threadpool="${base.threadpool}"
threads="${base.threads}" accepts="${base.accepts}" retries="${base.retries}" /> threads="${base.threads}" accepts="${base.accepts}" retries="${base.retries}" />
<dubbo:annotation package="${base.service.impl.package}" /> <dubbo:annotation package="com.huatek.frame.base.service.impl" />
</beans> </beans>
Loading…
Cancel
Save