基于javaweb的调查问卷管理系统(java+springboot+vue+elementui+mysql)
运行环境
Java≥8、MySQL≥5.7、Node.js≥10
开发工具
后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb+mysql的调查问卷管理系统(java+SpringBoot+Vue+ElementUI+Maven+mysql)
项目介绍
- 本项目的在线问卷调查调查系统是基于SpringBoot开发的,采用了前后端分离模式来开发。
- 前端开发使用了Vue、Element UI,后端的开发则是使用了SpringBoot、MyBatis技术。
项目配置
- 下载项目压缩包,在IDEA或者Eclipse软件中打开,并修改application.yml文件中数据库的用户和密码 > * 在本地的MySQL数据库中导入项目的sql文件 > * 在编译器中运行该项目:此为SpringBoot框架,启动主类Main方法
- 在浏览器中输入localhost:8181后按回车键进入系统
用户管理控制器:
/**
- 用户管理控制器
*/
@RequestMapping(“/user/”)
@Controller
public class UserController {
@Autowired
private IUserService userService;
@Autowired
private IRoleService roleService;
@Resource
private ProcessEngineConfiguration configuration;
@Resource
private ProcessEngine engine;
@GetMapping(“/index”)
@ApiOperation(“跳转用户页接口”)
@PreAuthorize(“hasRole(‘管理员’)”)
public String index(String menuid,Model model){
List roles = queryAllRole();
model.addAttribute(“roles”,roles);
model.addAttribute(“menuid”,menuid);
//用户首页
return “views/user/user_list”;
@GetMapping(“/listpage”)
@ApiOperation(“查询用户分页数据接口”)
@ApiImplicitParams({
@ApiImplicitParam(name = “UserQuery”, value = “用户查询对象”, defaultValue = “userQuery对象”)
})
@ResponseBody
@PreAuthorize(“hasRole(‘管理员’)”)
public PageList listpage(UserQuery userQuery){
return userService.listpage(userQuery);
//添加用户
@PostMapping(“/addUser”)
@ApiOperation(“添加用户接口”)
@ResponseBody
public Map<String,Object> addUser(User user){
Map<String, Object> ret = new HashMap<>();
ret.put(“code”,-1);
if(StringUtils.isEmpty(user.getUsername())){
ret.put(“msg”,“请填写用户名”);
return ret;
if(StringUtils.isEmpty(user.getPassword())){
ret.put(“msg”,“请填写密码”);
return ret;