婴儿检测管理系统 springboot+mybatis前后端分离项目
Posted Chuck 小欧
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了婴儿检测管理系统 springboot+mybatis前后端分离项目相关的知识,希望对你有一定的参考价值。
前言
一个简单的前后端分离项目,没有难的技术点,适合新手初学框架的练手项目,或者用来应付期末项目、课程设计等,有需要的小伙伴可以上gitee下载源码。
一、技术架构
后端:Springboot + mybatis
前端:html +CSS +JS
二、项目结构
Ps:接入视频功能未实现
三、项目演示
1.登录注册页面(前端页面很简单)
2.常识推送页面(不一一展示)
3.采集宝宝数据,根据采集的数据进行分析
4.分析与建议
5.个人信息页面
四、代码实现
代码结构
pom.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.3</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.project</groupId>
<artifactId>bims</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>bims</name>
<description>婴儿信息检测系统</description>
<properties>
<java.version>1.8</java.version>
<mysql.version>8.0.20</mysql.version>
<!-- <mybatis.version>3.5.5</mybatis.version>-->
<mybatis-plus.version>3.3.2</mybatis-plus.version>
</properties>
<dependencies>
<!--swagger2接口文档维护工具-->
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.8.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.8.0</version>
</dependency>
<!-- mybatis-plus -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>$mybatis-plus.version</version>
</dependency>
<!--mysql连接器-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>$mysql.version</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
<!--docker打包工具-->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.10</version>
<configuration>
<repository>$artifactId</repository>
<tag>$project.version</tag>
<buildArgs>
<JAR_FILE>target/$project.build.finalName.jar</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
</plugins>
</build>
</project>
结果集封装
package com.project.bims.common;
import lombok.Data;
import java.io.Serializable;
/**
* 结果集封装
*
* @author makejava
* @create 2021-03-09-13:02
*/
@Data
public class Result implements Serializable
private String code;
private String msg;
private Object data;
public static Result success(String message, Object data)
Result result = new Result();
result.setCode("200");
result.setData(data);
result.setMsg(message);
return result;
public static Result success(Object data)
Result result = new Result();
result.setCode("200");
result.setData(data);
result.setMsg("成功");
return result;
public static Result fail(String message, Object data)
Result m = new Result();
m.setCode("400");
m.setData(data);
m.setMsg(message);
return m;
public static Result fail(String message)
Result m = new Result();
m.setCode("400");
m.setData(null);
m.setMsg(message);
return m;
具体代码可以去下方gitee仓库查看拉取
五、gitee地址
传送门:https://gitee.com/chen_ou/bims
有什么问题可以加我Q哦:1253540040
以上是关于婴儿检测管理系统 springboot+mybatis前后端分离项目的主要内容,如果未能解决你的问题,请参考以下文章
婴儿检测管理系统 springboot+mybatis前后端分离项目