package com.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.service.impl.DomainServiceImpl;
import com.vo.DomainVo;
@Controller
public class DomainController {
@Autowired
private DomainServiceImpl domainServiceImpl;
@RequestMapping("/findProvice")
public void findProvice(HttpServletResponse response) throws IOException{
List<DomainVo>list=domainServiceImpl.findProvince();
JSONArray arr=JSONArray.fromObject(list);
response.getWriter().print(arr.toString());
}
@RequestMapping("/findCityByPid")
public void findCityByPid(Integer pId,HttpServletResponse response) throws IOException{
if(pId==null){
}else{
List<DomainVo>list=domainServiceImpl.findCityByPid(pId);
JSONArray arr=JSONArray.fromObject(list);
response.getWriter().print(arr.toString());
}
}
@RequestMapping("/findAreaByCid")
public void findAreaByCid(Integer cId,HttpServletResponse response) throws IOException{
if(cId==null){
}else{
List<DomainVo>list=domainServiceImpl.findAreaByCid(cId);
JSONArray arr=JSONArray.fromObject(list);
response.getWriter().print(arr.toString());
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
ssm+maven省市区三级联动
共42个文件
xml:10个
class:5个
java:5个
1星 需积分: 9 21 下载量 130 浏览量
2017-11-22
17:30:46
上传
评论 1
收藏 39KB 7Z 举报
温馨提示
使用当下主流框架ssm,利用maven管理jar包,数据库为mysql数据库
资源推荐
资源详情
资源评论
收起资源包目录
fristmaven.7z (42个子文件)
fristmaven
.project 1KB
src
test
resources
java
main
webapp
WEB-INF
classes
log4j.properties 963B
spring-mvc.xml 1KB
web.xml 2KB
index.jsp 4KB
js
jquery-3.2.1.min.js 85KB
META-INF
MANIFEST.MF 39B
css
login
supersized.css 2KB
reset.css 1KB
style.css 5KB
resources
applicationContext.xml 3KB
jdbc.properties 118B
java
com
service
DomainService.java 348B
impl
DomainServiceImpl.java 724B
controller
DomainController.java 1KB
mapper
DomainMapper.java 445B
DomainMapper.xml 1016B
vo
DomainVo.java 1KB
target
m2e-jee
web-resources
META-INF
MANIFEST.MF 105B
maven
http
http
pom.properties 212B
pom.xml 9KB
classes
applicationContext.xml 3KB
com
service
DomainService.class 386B
impl
DomainServiceImpl.class 1KB
controller
DomainController.class 2KB
mapper
DomainMapper.xml 1016B
DomainMapper.class 516B
vo
DomainVo.class 2KB
jdbc.properties 118B
test-classes
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 450B
org.eclipse.m2e.core.prefs 90B
com.genuitec.eclipse.core.prefs 137B
org.eclipse.jdt.core.prefs 430B
org.eclipse.wst.validation.prefs 50B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.prefs.xml 161B
org.eclipse.core.resources.prefs 257B
org.eclipse.wst.common.component 680B
.jsdtscope 530B
pom.xml 9KB
.classpath 1KB
共 42 条
- 1
资源评论
- 王人冉2018-03-17没有数据库文件
weixin_41012215
- 粉丝: 5
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功