This commit is contained in:
Calvin
2012-07-24 13:23:18 +08:00
parent 8e5856639d
commit 49bbdcc2e7
5 changed files with 10 additions and 27 deletions
@@ -20,6 +20,8 @@ import com.sun.jersey.api.client.WebResource;
/**
* 使用Jersey Client的AccountResourceService REST客户端.
*
* Department相关的使用XML格式,User 相关的使用JSON格式 。
*
* @author calvin
*/
public class AccountResourceClient {
@@ -1,21 +0,0 @@
package org.springside.examples.miniweb.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class IndexController {
@RequestMapping(value = "/")
public String index() {
return "redirect:/task";
}
@RequestMapping(value = "/healthcheck", produces = "text/plain")
public @ResponseBody
String healthCheck() {
return "ok222222";
}
}
@@ -21,4 +21,7 @@
<property name="prefix" value="/WEB-INF/views/"/>
<property name="suffix" value=".jsp"/>
</bean>
<!-- 定义无Controller的的path<->view映射 -->
<mvc:view-controller path="/" view-name="redirect:/task"/>
</beans>
@@ -1,6 +1,6 @@
baseUrl=http://localhost:8082/mini-web
#selenium settings, options include firefox,ie,chrome,remote:localhost:4444:firefox
#selenium settings, options include firefox,ie,chrome,htmlunit,remote:localhost:4444:firefox
selenium.driver=firefox
#(optional)override jdbc url for functional test
@@ -16,14 +16,13 @@
<mvc:default-servlet-handler/>
<!-- 定义直接显示的JSP -->
<mvc:view-controller path="/" view-name="index"/>
<mvc:view-controller path="/web/mashup-client" view-name="/web/mashup-client"/>
<!-- 定义JSP -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/views/"/>
<property name="suffix" value=".jsp"/>
</bean>
<!-- 定义无Controller的的path<->view映射 -->
<mvc:view-controller path="/" view-name="index"/>
<mvc:view-controller path="/web/mashup-client" view-name="/web/mashup-client"/>
</beans>