提交 5833a77e 编写于 作者: IBZGIT01's avatar IBZGIT01

ibizdev提交

上级 ae549575
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
<spring-version>4.2.4.RELEASE</spring-version> <spring-version>4.2.4.RELEASE</spring-version>
<jackson.version>2.9.9.3</jackson.version> <jackson.version>2.9.9.3</jackson.version>
<servlet.version>4.0.1</servlet.version> <servlet.version>4.0.1</servlet.version>
<lombok.version>1.18.6</lombok.version>
</properties> </properties>
<dependencies> <dependencies>
...@@ -43,11 +42,5 @@ ...@@ -43,11 +42,5 @@
<version>${servlet.version}</version> <version>${servlet.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
http://www.springframework.org/schema/context http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd"> http://www.springframework.org/schema/context/spring-context.xsd">
<!-- 扫描web包-->
<context:component-scan base-package="cn.ibizhub.demo.*.rest"/> <context:component-scan base-package="cn.ibizhub.demo.*.rest"/>
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"/> <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"/>
......
...@@ -26,7 +26,7 @@ public class ApplicationTest { ...@@ -26,7 +26,7 @@ public class ApplicationTest {
@Test @Test
public void testMain() { public void testMain() {
try { try {
MvcResult mvcResult = mockMvc.perform(MockMvcRequestBuilders.post("/tsweb2/quickstart/qjd.do")).andReturn(); MvcResult mvcResult = mockMvc.perform(MockMvcRequestBuilders.post("/demo/springmvc/dbet")).andReturn();
System.out.println(String.format("返回状态码为:[%s],返回内容为[%s]",mvcResult.getResponse().getStatus(),mvcResult.getResponse().getContentAsString())); System.out.println(String.format("返回状态码为:[%s],返回内容为[%s]",mvcResult.getResponse().getStatus(),mvcResult.getResponse().getContentAsString()));
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册