first commit
This commit is contained in:
10
comm/News/config/spring/applicationContext-hibernate.xml
Executable file
10
comm/News/config/spring/applicationContext-hibernate.xml
Executable file
@@ -0,0 +1,10 @@
|
||||
|
||||
admin
|
||||
|
||||
<!-- news -->
|
||||
<value>newsService</value>
|
||||
<value>adminNewsService</value>
|
||||
|
||||
api
|
||||
<!-- news -->
|
||||
<value>newsService</value>
|
||||
18
comm/News/config/spring/applicationContext-news.xml
Executable file
18
comm/News/config/spring/applicationContext-news.xml
Executable file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://code.alibabatech.com/schema/dubbo
|
||||
http://code.alibabatech.com/schema/dubbo/dubbo.xsd ">
|
||||
|
||||
|
||||
<bean id="newsService" class="project.news.internal.NewsServiceImpl">
|
||||
<property name="hibernateTemplate" ref="hibernateTemplate" />
|
||||
<property name="redisHandler" ref="redisHandler" />
|
||||
</bean>
|
||||
|
||||
|
||||
|
||||
|
||||
</beans>
|
||||
23
comm/News/config/spring/applicationContext-news_admin.xml
Executable file
23
comm/News/config/spring/applicationContext-news_admin.xml
Executable file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://code.alibabatech.com/schema/dubbo
|
||||
http://code.alibabatech.com/schema/dubbo/dubbo.xsd ">
|
||||
|
||||
|
||||
<bean id="adminNewsService" class="project.news.internal.AdminNewsServiceImpl">
|
||||
<property name="hibernateTemplate" ref="hibernateTemplate" />
|
||||
<property name="pagedDao" ref="pagedDao" />
|
||||
<property name="newsService" ref="newsService" />
|
||||
|
||||
</bean>
|
||||
|
||||
<bean id="newsService" class="project.news.internal.NewsServiceImpl">
|
||||
<property name="hibernateTemplate" ref="hibernateTemplate" />
|
||||
<property name="redisHandler" ref="redisHandler" />
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
22
comm/News/config/spring/applicationContext-news_data.xml
Executable file
22
comm/News/config/spring/applicationContext-news_data.xml
Executable file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://code.alibabatech.com/schema/dubbo
|
||||
http://code.alibabatech.com/schema/dubbo/dubbo.xsd ">
|
||||
|
||||
<!-- init-method="init" -->
|
||||
|
||||
<bean id="newsService" class="project.news.internal.NewsServiceImpl">
|
||||
<property name="hibernateTemplate" ref="hibernateTemplate" />
|
||||
<property name="redisHandler" ref="redisHandler" />
|
||||
</bean>
|
||||
<bean id="newsLoadCacheService"
|
||||
class="project.data.loadcache.NewsLoadCacheService">
|
||||
<property name="hibernateTemplate" ref="hibernateTemplate" />
|
||||
<property name="redisHandler" ref="redisHandler" />
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
13
comm/News/config/spring/normal.xml
Executable file
13
comm/News/config/spring/normal.xml
Executable file
@@ -0,0 +1,13 @@
|
||||
admin
|
||||
<action name="adminNewsAction" class="project.news.web.AdminNewsAction">
|
||||
<result name="list">/news_list.jsp</result>
|
||||
<result name="add">/news_add.jsp</result>
|
||||
<result name="update">/news_update.jsp</result>
|
||||
|
||||
</action>
|
||||
|
||||
api
|
||||
|
||||
<action name="news"
|
||||
class="project.news.web.NewsAction">
|
||||
</action>
|
||||
Reference in New Issue
Block a user