pom.xml
@@ -98,6 +98,17 @@ </configuration> </plugin> </plugins> <!-- 指定资源文件的位置,否则maven打包的时候不会把文件打包进去,导致thymeleaf无法解析 --> <resources> <resource> <directory>src/main/resources</directory> </resource> <resource> <directory>src/main/webapp</directory> <targetPath>META-INF/resources</targetPath> </resource> </resources> </build> </project> src/main/java/com/whyc/controller/MotorSystemController.java
New file @@ -0,0 +1,10 @@ package com.whyc.controller; /** * Motor系统 */ public class MotorSystemController { } src/main/java/com/whyc/controller/SystemController.java
File was deleted src/main/java/com/whyc/pojo/Menu.java
@@ -1,11 +1,13 @@ package com.whyc.pojo; import com.baomidou.mybatisplus.annotation.TableName; import org.apache.ibatis.type.Alias; /** * 用户菜单 */ @Alias("Menu") @TableName( schema = "`db_3.5mw_web`",value = "tb_menu") public class Menu { private Integer id; private String name; src/main/java/com/whyc/pojo/MotorSystem.java
New file @@ -0,0 +1,76 @@ package com.whyc.pojo; import com.baomidou.mybatisplus.annotation.TableName; import org.apache.ibatis.type.Alias; /** * Motor系统 */ @Alias("System") @TableName( schema = "`db_3.5mw_motor`",value = "tb_3.5mw_motor_inf") public class MotorSystem { private Long num; private Integer sysId; //系统id private String sysName; //系统名称 private Integer devId; //设备id private String devName; //设备名称 private String devIp; //设备ip private String note; //备用 public Long getNum() { return num; } public void setNum(Long num) { this.num = num; } public Integer getSysId() { return sysId; } public void setSysId(Integer sysId) { this.sysId = sysId; } public String getSysName() { return sysName; } public void setSysName(String sysName) { this.sysName = sysName; } public Integer getDevId() { return devId; } public void setDevId(Integer devId) { this.devId = devId; } public String getDevName() { return devName; } public void setDevName(String devName) { this.devName = devName; } public String getDevIp() { return devIp; } public void setDevIp(String devIp) { this.devIp = devIp; } public String getNote() { return note; } public void setNote(String note) { this.note = note; } } src/main/java/com/whyc/pojo/Privilege.java
@@ -1,11 +1,13 @@ package com.whyc.pojo; import com.baomidou.mybatisplus.annotation.TableName; import org.apache.ibatis.type.Alias; /** * 权限 */ @Alias("Privilege") @TableName( schema = "`db_3.5mw_web`",value = "tb_privilege") public class Privilege { private Integer id; src/main/java/com/whyc/pojo/Role.java
@@ -8,6 +8,7 @@ * 角色 */ @Alias("Role") @TableName( schema = "`db_3.5mw_web`",value = "tb_role") public class Role { private Integer id; @TableField("name") src/main/java/com/whyc/pojo/RoleMenu.java
@@ -1,11 +1,13 @@ package com.whyc.pojo; import com.baomidou.mybatisplus.annotation.TableName; import org.apache.ibatis.type.Alias; /** * 角色菜单 */ @Alias("RoleMenu") @TableName( schema = "`db_3.5mw_web`",value = "tb_role_menu") public class RoleMenu { private Integer id; private Integer roleId; src/main/java/com/whyc/pojo/RolePrivilege.java
@@ -1,11 +1,13 @@ package com.whyc.pojo; import com.baomidou.mybatisplus.annotation.TableName; import org.apache.ibatis.type.Alias; /** * 角色对应权限 */ @Alias("RolePrivilege") @TableName( schema = "`db_3.5mw_web`",value = "tb_role_privilege") public class RolePrivilege { private Integer id; src/main/java/com/whyc/pojo/User.java
@@ -1,16 +1,14 @@ package com.whyc.pojo; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.*; import org.apache.ibatis.type.Alias; import java.util.Date; @Alias("User") @Data @Builder @ToString @AllArgsConstructor @TableName( schema = "`db_3.5mw_web`",value = "tb_user") public class User { private Integer id; private String name; src/main/java/com/whyc/pojo/UserRole.java
@@ -1,16 +1,14 @@ package com.whyc.pojo; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import org.apache.ibatis.type.Alias; import java.beans.Transient; /** * 用户角色表 */ @Alias("UserRole") @TableName( schema = "`db_3.5mw_web`",value = "tb_user_role") public class UserRole { private Integer id; src/main/resources/config/application.yml
@@ -1,6 +1,6 @@ #服务端口号 server: port: 8080 port: 8090 #数据库 spring: @@ -18,7 +18,6 @@ initialPoolSize: 2 minPoolSize: 2 maxPoolSize: 500 mybatis-plus: typeAliasesPackage: com.whyc.pojo mapper-locations: classpath:mapper/**/*Mapper.xml src/main/webapp/WEB-INF/index.html
New file @@ -0,0 +1,10 @@ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> </body> </html> src/main/webapp/index.html
New file @@ -0,0 +1,10 @@ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> </body> </html> src/main/webapp/web.html