Commit 3e43fdfb authored by frank.xa.zhang's avatar frank.xa.zhang

add tomcat maven config

fixed a small issue
parent 3b90b175
...@@ -455,7 +455,19 @@ ...@@ -455,7 +455,19 @@
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<!-- tomcat7的插件, 不同tomcat版本这个也不一样 -->
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<!-- 通过maven tomcat7:run运行项目时,访问项目的端口号 -->
<port>8180</port>
<!-- 项目访问路径 本例:localhost:9090, 如果配置的aa, 则访问路径为localhost:9090/aa-->
<path>/</path>
<uriEncoding>UTF-8</uriEncoding>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>
...@@ -20,7 +20,7 @@ public class ModelConfigurationController { ...@@ -20,7 +20,7 @@ public class ModelConfigurationController {
@Autowired @Autowired
ModelConfigurationService modelConfigurationService; ModelConfigurationService modelConfigurationService;
@RequestMapping(value = "model/byIndustry", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "/model/byIndustry", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public @ResponseBody List<ModelProfileDto> GetModelListByIndustry(@RequestParam String industryID, public @ResponseBody List<ModelProfileDto> GetModelListByIndustry(@RequestParam String industryID,
@RequestParam String serviceTypeID) { @RequestParam String serviceTypeID) {
return modelConfigurationService.GetModelListByIndustry(serviceTypeID, industryID); return modelConfigurationService.GetModelListByIndustry(serviceTypeID, industryID);
......
...@@ -244,7 +244,20 @@ ...@@ -244,7 +244,20 @@
</webResources> </webResources>
</configuration> </configuration>
</plugin> </plugin>
</plugins> <plugin>
<groupId>org.apache.tomcat.maven</groupId>
<!-- tomcat7的插件, 不同tomcat版本这个也不一样 -->
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<!-- 通过maven tomcat7:run运行项目时,访问项目的端口号 -->
<port>8080</port>
<!-- 项目访问路径 本例:localhost:9090, 如果配置的aa, 则访问路径为localhost:9090/aa-->
<path>/</path>
<uriEncoding>UTF-8</uriEncoding>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment