diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
new file mode 100644
index 0000000..ba8875e
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
@@ -0,0 +1,27 @@
+package com.casic.missiles;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author lwh
+ * @Date 2021/06/06 12:06
+ */
+@SpringBootApplication
+@EnableCaching
+@EnableTransactionManagement(proxyTargetClass = true)
+@EnableAsync
+@Slf4j
+public class CasicApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasicApplication.class, args);
+ log.info("CasicApplication is success!");
+ }
+
+}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
new file mode 100644
index 0000000..ba8875e
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
@@ -0,0 +1,27 @@
+package com.casic.missiles;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author lwh
+ * @Date 2021/06/06 12:06
+ */
+@SpringBootApplication
+@EnableCaching
+@EnableTransactionManagement(proxyTargetClass = true)
+@EnableAsync
+@Slf4j
+public class CasicApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasicApplication.class, args);
+ log.info("CasicApplication is success!");
+ }
+
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
new file mode 100644
index 0000000..e30585b
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
@@ -0,0 +1,18 @@
+package com.casic.missiles;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * Guns Web程序启动类
+ *
+ * @author fengshuonan
+ * @date 2017-05-21 9:43
+ */
+public class CasicServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(CasicApplication.class);
+ }
+}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
new file mode 100644
index 0000000..ba8875e
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
@@ -0,0 +1,27 @@
+package com.casic.missiles;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author lwh
+ * @Date 2021/06/06 12:06
+ */
+@SpringBootApplication
+@EnableCaching
+@EnableTransactionManagement(proxyTargetClass = true)
+@EnableAsync
+@Slf4j
+public class CasicApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasicApplication.class, args);
+ log.info("CasicApplication is success!");
+ }
+
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
new file mode 100644
index 0000000..e30585b
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
@@ -0,0 +1,18 @@
+package com.casic.missiles;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * Guns Web程序启动类
+ *
+ * @author fengshuonan
+ * @date 2017-05-21 9:43
+ */
+public class CasicServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(CasicApplication.class);
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
new file mode 100644
index 0000000..1c988ae
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
@@ -0,0 +1,36 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.casic.missiles.config;
+
+import net.sf.ehcache.config.CacheConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration.Strategy;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 安全生产缓存区
+ */
+@Configuration
+public class StayCacheConfig {
+ public StayCacheConfig() {
+ }
+
+ @Bean
+ public CacheConfiguration robotEhcache() {
+ CacheConfiguration config = new CacheConfiguration();
+ config.setName("CONSTANT_STAY");
+ config.setMaxEntriesLocalHeap(25000L);
+ config.setEternal(true);
+ config.setClearOnFlush(false);
+ config.persistence((new PersistenceConfiguration()).strategy(Strategy.LOCALTEMPSWAP)).maxEntriesLocalDisk(0);
+ config.setMaxElementsOnDisk(100000);
+ config.setDiskExpiryThreadIntervalSeconds(120L);
+ config.setMemoryStoreEvictionPolicy("LFU");
+ config.transactionalMode("off");
+ return config;
+ }
+}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
new file mode 100644
index 0000000..ba8875e
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
@@ -0,0 +1,27 @@
+package com.casic.missiles;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author lwh
+ * @Date 2021/06/06 12:06
+ */
+@SpringBootApplication
+@EnableCaching
+@EnableTransactionManagement(proxyTargetClass = true)
+@EnableAsync
+@Slf4j
+public class CasicApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasicApplication.class, args);
+ log.info("CasicApplication is success!");
+ }
+
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
new file mode 100644
index 0000000..e30585b
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
@@ -0,0 +1,18 @@
+package com.casic.missiles;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * Guns Web程序启动类
+ *
+ * @author fengshuonan
+ * @date 2017-05-21 9:43
+ */
+public class CasicServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(CasicApplication.class);
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
new file mode 100644
index 0000000..1c988ae
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
@@ -0,0 +1,36 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.casic.missiles.config;
+
+import net.sf.ehcache.config.CacheConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration.Strategy;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 安全生产缓存区
+ */
+@Configuration
+public class StayCacheConfig {
+ public StayCacheConfig() {
+ }
+
+ @Bean
+ public CacheConfiguration robotEhcache() {
+ CacheConfiguration config = new CacheConfiguration();
+ config.setName("CONSTANT_STAY");
+ config.setMaxEntriesLocalHeap(25000L);
+ config.setEternal(true);
+ config.setClearOnFlush(false);
+ config.persistence((new PersistenceConfiguration()).strategy(Strategy.LOCALTEMPSWAP)).maxEntriesLocalDisk(0);
+ config.setMaxElementsOnDisk(100000);
+ config.setDiskExpiryThreadIntervalSeconds(120L);
+ config.setMemoryStoreEvictionPolicy("LFU");
+ config.transactionalMode("off");
+ return config;
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/controller/MockController.java b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
new file mode 100644
index 0000000..eae6c54
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
@@ -0,0 +1,82 @@
+package com.casic.missiles.controller;
+
+import cn.hutool.core.util.StrUtil;
+import com.casic.missiles.core.application.enums.LoginType;
+import com.casic.missiles.core.base.controller.BaseController;
+import com.casic.missiles.core.model.auth.AuthUser;
+import com.casic.missiles.core.model.auth.CasicCustomToken;
+import com.casic.missiles.core.shiro.ShiroKit;
+import com.casic.missiles.core.util.RSAUtils;
+import com.casic.missiles.model.response.SuccessResponseData;
+import com.casic.missiles.modular.domain.constants.PermissionConstants;
+import com.casic.missiles.modular.interfaces.log.LogManager;
+import com.casic.missiles.modular.interfaces.log.factory.LogTaskFactory;
+import com.casic.missiles.modular.system.dto.LoginSuccessDTO;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.shiro.subject.Subject;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.security.NoSuchAlgorithmException;
+import java.util.Map;
+
+import static com.casic.missiles.core.util.HttpContext.getIp;
+
+
+/**
+ * 仅为mock登录使用
+ *
+ * @author lenovo
+ */
+@Controller
+@RequestMapping("/route")
+@Slf4j
+public class MockController extends BaseController {
+
+ /**
+ * 获取mockToken
+ */
+ @GetMapping("/mockToken")
+ @ResponseBody
+ public Object mockToken(String username, String password) {
+ super.getSession().setAttribute(PermissionConstants.IS_APP, false);
+ SuccessResponseData resultData = new SuccessResponseData();
+ if (StrUtil.hasEmpty(username, password)) {
+ username = "admin";
+ password = "111111";
+ }
+ Subject currentUser = ShiroKit.getSubject();
+
+ try {
+ Map key = RSAUtils.genKeyPair();
+ ShiroKit.getSession().setAttribute(PermissionConstants.PRIVATE_KEY, key.get(RSAUtils.RSAPrivateKey));
+
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ }
+
+ //token自定义
+ CasicCustomToken token = new CasicCustomToken(username, password);
+ token.setType(LoginType.PASSWORD);
+ token.setRememberMe(false);
+
+ try {
+ currentUser.login(token);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ AuthUser shiroUser = ShiroKit.getUser();
+ super.getSession().setAttribute("shiroUser", shiroUser);
+ super.getSession().setAttribute("username", shiroUser.getAccount());
+ super.getSession().setAttribute(PermissionConstants.SESSION_KEY, shiroUser.getId());
+
+ LogManager.me().executeLog(LogTaskFactory.loginLog(shiroUser.getId(), getIp()));
+
+ ShiroKit.getSession().setAttribute("sessionFlag", true);
+ resultData.setData(new LoginSuccessDTO(ShiroKit.getSession().getId().toString(), null));
+ resultData.setMessage("登录成功");
+ return resultData;
+ }
+}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
new file mode 100644
index 0000000..ba8875e
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
@@ -0,0 +1,27 @@
+package com.casic.missiles;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author lwh
+ * @Date 2021/06/06 12:06
+ */
+@SpringBootApplication
+@EnableCaching
+@EnableTransactionManagement(proxyTargetClass = true)
+@EnableAsync
+@Slf4j
+public class CasicApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasicApplication.class, args);
+ log.info("CasicApplication is success!");
+ }
+
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
new file mode 100644
index 0000000..e30585b
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
@@ -0,0 +1,18 @@
+package com.casic.missiles;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * Guns Web程序启动类
+ *
+ * @author fengshuonan
+ * @date 2017-05-21 9:43
+ */
+public class CasicServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(CasicApplication.class);
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
new file mode 100644
index 0000000..1c988ae
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
@@ -0,0 +1,36 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.casic.missiles.config;
+
+import net.sf.ehcache.config.CacheConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration.Strategy;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 安全生产缓存区
+ */
+@Configuration
+public class StayCacheConfig {
+ public StayCacheConfig() {
+ }
+
+ @Bean
+ public CacheConfiguration robotEhcache() {
+ CacheConfiguration config = new CacheConfiguration();
+ config.setName("CONSTANT_STAY");
+ config.setMaxEntriesLocalHeap(25000L);
+ config.setEternal(true);
+ config.setClearOnFlush(false);
+ config.persistence((new PersistenceConfiguration()).strategy(Strategy.LOCALTEMPSWAP)).maxEntriesLocalDisk(0);
+ config.setMaxElementsOnDisk(100000);
+ config.setDiskExpiryThreadIntervalSeconds(120L);
+ config.setMemoryStoreEvictionPolicy("LFU");
+ config.transactionalMode("off");
+ return config;
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/controller/MockController.java b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
new file mode 100644
index 0000000..eae6c54
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
@@ -0,0 +1,82 @@
+package com.casic.missiles.controller;
+
+import cn.hutool.core.util.StrUtil;
+import com.casic.missiles.core.application.enums.LoginType;
+import com.casic.missiles.core.base.controller.BaseController;
+import com.casic.missiles.core.model.auth.AuthUser;
+import com.casic.missiles.core.model.auth.CasicCustomToken;
+import com.casic.missiles.core.shiro.ShiroKit;
+import com.casic.missiles.core.util.RSAUtils;
+import com.casic.missiles.model.response.SuccessResponseData;
+import com.casic.missiles.modular.domain.constants.PermissionConstants;
+import com.casic.missiles.modular.interfaces.log.LogManager;
+import com.casic.missiles.modular.interfaces.log.factory.LogTaskFactory;
+import com.casic.missiles.modular.system.dto.LoginSuccessDTO;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.shiro.subject.Subject;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.security.NoSuchAlgorithmException;
+import java.util.Map;
+
+import static com.casic.missiles.core.util.HttpContext.getIp;
+
+
+/**
+ * 仅为mock登录使用
+ *
+ * @author lenovo
+ */
+@Controller
+@RequestMapping("/route")
+@Slf4j
+public class MockController extends BaseController {
+
+ /**
+ * 获取mockToken
+ */
+ @GetMapping("/mockToken")
+ @ResponseBody
+ public Object mockToken(String username, String password) {
+ super.getSession().setAttribute(PermissionConstants.IS_APP, false);
+ SuccessResponseData resultData = new SuccessResponseData();
+ if (StrUtil.hasEmpty(username, password)) {
+ username = "admin";
+ password = "111111";
+ }
+ Subject currentUser = ShiroKit.getSubject();
+
+ try {
+ Map key = RSAUtils.genKeyPair();
+ ShiroKit.getSession().setAttribute(PermissionConstants.PRIVATE_KEY, key.get(RSAUtils.RSAPrivateKey));
+
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ }
+
+ //token自定义
+ CasicCustomToken token = new CasicCustomToken(username, password);
+ token.setType(LoginType.PASSWORD);
+ token.setRememberMe(false);
+
+ try {
+ currentUser.login(token);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ AuthUser shiroUser = ShiroKit.getUser();
+ super.getSession().setAttribute("shiroUser", shiroUser);
+ super.getSession().setAttribute("username", shiroUser.getAccount());
+ super.getSession().setAttribute(PermissionConstants.SESSION_KEY, shiroUser.getId());
+
+ LogManager.me().executeLog(LogTaskFactory.loginLog(shiroUser.getId(), getIp()));
+
+ ShiroKit.getSession().setAttribute("sessionFlag", true);
+ resultData.setData(new LoginSuccessDTO(ShiroKit.getSession().getId().toString(), null));
+ resultData.setMessage("登录成功");
+ return resultData;
+ }
+}
diff --git a/casic-web/src/main/resources/config/application-dev.yml b/casic-web/src/main/resources/config/application-dev.yml
new file mode 100644
index 0000000..d5d354e
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-dev.yml
@@ -0,0 +1,36 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://localhost:3306/casic-production-safety?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: 123456
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+# session:
+# store-type: redis
+# redis:
+# host: 111.198.10.15
+# port: 11412
+# password: ew5T4K3#203lwh
+# serializer: org.springframework.data.redis.serializer.StringRedisSerializer
+# redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\workspace\server\keti\casic-production-safety\casic-web\\logs
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
new file mode 100644
index 0000000..ba8875e
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
@@ -0,0 +1,27 @@
+package com.casic.missiles;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author lwh
+ * @Date 2021/06/06 12:06
+ */
+@SpringBootApplication
+@EnableCaching
+@EnableTransactionManagement(proxyTargetClass = true)
+@EnableAsync
+@Slf4j
+public class CasicApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasicApplication.class, args);
+ log.info("CasicApplication is success!");
+ }
+
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
new file mode 100644
index 0000000..e30585b
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
@@ -0,0 +1,18 @@
+package com.casic.missiles;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * Guns Web程序启动类
+ *
+ * @author fengshuonan
+ * @date 2017-05-21 9:43
+ */
+public class CasicServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(CasicApplication.class);
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
new file mode 100644
index 0000000..1c988ae
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
@@ -0,0 +1,36 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.casic.missiles.config;
+
+import net.sf.ehcache.config.CacheConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration.Strategy;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 安全生产缓存区
+ */
+@Configuration
+public class StayCacheConfig {
+ public StayCacheConfig() {
+ }
+
+ @Bean
+ public CacheConfiguration robotEhcache() {
+ CacheConfiguration config = new CacheConfiguration();
+ config.setName("CONSTANT_STAY");
+ config.setMaxEntriesLocalHeap(25000L);
+ config.setEternal(true);
+ config.setClearOnFlush(false);
+ config.persistence((new PersistenceConfiguration()).strategy(Strategy.LOCALTEMPSWAP)).maxEntriesLocalDisk(0);
+ config.setMaxElementsOnDisk(100000);
+ config.setDiskExpiryThreadIntervalSeconds(120L);
+ config.setMemoryStoreEvictionPolicy("LFU");
+ config.transactionalMode("off");
+ return config;
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/controller/MockController.java b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
new file mode 100644
index 0000000..eae6c54
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
@@ -0,0 +1,82 @@
+package com.casic.missiles.controller;
+
+import cn.hutool.core.util.StrUtil;
+import com.casic.missiles.core.application.enums.LoginType;
+import com.casic.missiles.core.base.controller.BaseController;
+import com.casic.missiles.core.model.auth.AuthUser;
+import com.casic.missiles.core.model.auth.CasicCustomToken;
+import com.casic.missiles.core.shiro.ShiroKit;
+import com.casic.missiles.core.util.RSAUtils;
+import com.casic.missiles.model.response.SuccessResponseData;
+import com.casic.missiles.modular.domain.constants.PermissionConstants;
+import com.casic.missiles.modular.interfaces.log.LogManager;
+import com.casic.missiles.modular.interfaces.log.factory.LogTaskFactory;
+import com.casic.missiles.modular.system.dto.LoginSuccessDTO;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.shiro.subject.Subject;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.security.NoSuchAlgorithmException;
+import java.util.Map;
+
+import static com.casic.missiles.core.util.HttpContext.getIp;
+
+
+/**
+ * 仅为mock登录使用
+ *
+ * @author lenovo
+ */
+@Controller
+@RequestMapping("/route")
+@Slf4j
+public class MockController extends BaseController {
+
+ /**
+ * 获取mockToken
+ */
+ @GetMapping("/mockToken")
+ @ResponseBody
+ public Object mockToken(String username, String password) {
+ super.getSession().setAttribute(PermissionConstants.IS_APP, false);
+ SuccessResponseData resultData = new SuccessResponseData();
+ if (StrUtil.hasEmpty(username, password)) {
+ username = "admin";
+ password = "111111";
+ }
+ Subject currentUser = ShiroKit.getSubject();
+
+ try {
+ Map key = RSAUtils.genKeyPair();
+ ShiroKit.getSession().setAttribute(PermissionConstants.PRIVATE_KEY, key.get(RSAUtils.RSAPrivateKey));
+
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ }
+
+ //token自定义
+ CasicCustomToken token = new CasicCustomToken(username, password);
+ token.setType(LoginType.PASSWORD);
+ token.setRememberMe(false);
+
+ try {
+ currentUser.login(token);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ AuthUser shiroUser = ShiroKit.getUser();
+ super.getSession().setAttribute("shiroUser", shiroUser);
+ super.getSession().setAttribute("username", shiroUser.getAccount());
+ super.getSession().setAttribute(PermissionConstants.SESSION_KEY, shiroUser.getId());
+
+ LogManager.me().executeLog(LogTaskFactory.loginLog(shiroUser.getId(), getIp()));
+
+ ShiroKit.getSession().setAttribute("sessionFlag", true);
+ resultData.setData(new LoginSuccessDTO(ShiroKit.getSession().getId().toString(), null));
+ resultData.setMessage("登录成功");
+ return resultData;
+ }
+}
diff --git a/casic-web/src/main/resources/config/application-dev.yml b/casic-web/src/main/resources/config/application-dev.yml
new file mode 100644
index 0000000..d5d354e
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-dev.yml
@@ -0,0 +1,36 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://localhost:3306/casic-production-safety?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: 123456
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+# session:
+# store-type: redis
+# redis:
+# host: 111.198.10.15
+# port: 11412
+# password: ew5T4K3#203lwh
+# serializer: org.springframework.data.redis.serializer.StringRedisSerializer
+# redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\workspace\server\keti\casic-production-safety\casic-web\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application-prod.yml b/casic-web/src/main/resources/config/application-prod.yml
new file mode 100644
index 0000000..a5c5ed9
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-prod.yml
@@ -0,0 +1,29 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://192.168.1.41:3000/casic_robot_inspection?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: root
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ #flowable数据源和多数据源配置
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\\logs
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
new file mode 100644
index 0000000..ba8875e
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
@@ -0,0 +1,27 @@
+package com.casic.missiles;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author lwh
+ * @Date 2021/06/06 12:06
+ */
+@SpringBootApplication
+@EnableCaching
+@EnableTransactionManagement(proxyTargetClass = true)
+@EnableAsync
+@Slf4j
+public class CasicApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasicApplication.class, args);
+ log.info("CasicApplication is success!");
+ }
+
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
new file mode 100644
index 0000000..e30585b
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
@@ -0,0 +1,18 @@
+package com.casic.missiles;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * Guns Web程序启动类
+ *
+ * @author fengshuonan
+ * @date 2017-05-21 9:43
+ */
+public class CasicServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(CasicApplication.class);
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
new file mode 100644
index 0000000..1c988ae
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
@@ -0,0 +1,36 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.casic.missiles.config;
+
+import net.sf.ehcache.config.CacheConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration.Strategy;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 安全生产缓存区
+ */
+@Configuration
+public class StayCacheConfig {
+ public StayCacheConfig() {
+ }
+
+ @Bean
+ public CacheConfiguration robotEhcache() {
+ CacheConfiguration config = new CacheConfiguration();
+ config.setName("CONSTANT_STAY");
+ config.setMaxEntriesLocalHeap(25000L);
+ config.setEternal(true);
+ config.setClearOnFlush(false);
+ config.persistence((new PersistenceConfiguration()).strategy(Strategy.LOCALTEMPSWAP)).maxEntriesLocalDisk(0);
+ config.setMaxElementsOnDisk(100000);
+ config.setDiskExpiryThreadIntervalSeconds(120L);
+ config.setMemoryStoreEvictionPolicy("LFU");
+ config.transactionalMode("off");
+ return config;
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/controller/MockController.java b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
new file mode 100644
index 0000000..eae6c54
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
@@ -0,0 +1,82 @@
+package com.casic.missiles.controller;
+
+import cn.hutool.core.util.StrUtil;
+import com.casic.missiles.core.application.enums.LoginType;
+import com.casic.missiles.core.base.controller.BaseController;
+import com.casic.missiles.core.model.auth.AuthUser;
+import com.casic.missiles.core.model.auth.CasicCustomToken;
+import com.casic.missiles.core.shiro.ShiroKit;
+import com.casic.missiles.core.util.RSAUtils;
+import com.casic.missiles.model.response.SuccessResponseData;
+import com.casic.missiles.modular.domain.constants.PermissionConstants;
+import com.casic.missiles.modular.interfaces.log.LogManager;
+import com.casic.missiles.modular.interfaces.log.factory.LogTaskFactory;
+import com.casic.missiles.modular.system.dto.LoginSuccessDTO;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.shiro.subject.Subject;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.security.NoSuchAlgorithmException;
+import java.util.Map;
+
+import static com.casic.missiles.core.util.HttpContext.getIp;
+
+
+/**
+ * 仅为mock登录使用
+ *
+ * @author lenovo
+ */
+@Controller
+@RequestMapping("/route")
+@Slf4j
+public class MockController extends BaseController {
+
+ /**
+ * 获取mockToken
+ */
+ @GetMapping("/mockToken")
+ @ResponseBody
+ public Object mockToken(String username, String password) {
+ super.getSession().setAttribute(PermissionConstants.IS_APP, false);
+ SuccessResponseData resultData = new SuccessResponseData();
+ if (StrUtil.hasEmpty(username, password)) {
+ username = "admin";
+ password = "111111";
+ }
+ Subject currentUser = ShiroKit.getSubject();
+
+ try {
+ Map key = RSAUtils.genKeyPair();
+ ShiroKit.getSession().setAttribute(PermissionConstants.PRIVATE_KEY, key.get(RSAUtils.RSAPrivateKey));
+
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ }
+
+ //token自定义
+ CasicCustomToken token = new CasicCustomToken(username, password);
+ token.setType(LoginType.PASSWORD);
+ token.setRememberMe(false);
+
+ try {
+ currentUser.login(token);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ AuthUser shiroUser = ShiroKit.getUser();
+ super.getSession().setAttribute("shiroUser", shiroUser);
+ super.getSession().setAttribute("username", shiroUser.getAccount());
+ super.getSession().setAttribute(PermissionConstants.SESSION_KEY, shiroUser.getId());
+
+ LogManager.me().executeLog(LogTaskFactory.loginLog(shiroUser.getId(), getIp()));
+
+ ShiroKit.getSession().setAttribute("sessionFlag", true);
+ resultData.setData(new LoginSuccessDTO(ShiroKit.getSession().getId().toString(), null));
+ resultData.setMessage("登录成功");
+ return resultData;
+ }
+}
diff --git a/casic-web/src/main/resources/config/application-dev.yml b/casic-web/src/main/resources/config/application-dev.yml
new file mode 100644
index 0000000..d5d354e
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-dev.yml
@@ -0,0 +1,36 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://localhost:3306/casic-production-safety?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: 123456
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+# session:
+# store-type: redis
+# redis:
+# host: 111.198.10.15
+# port: 11412
+# password: ew5T4K3#203lwh
+# serializer: org.springframework.data.redis.serializer.StringRedisSerializer
+# redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\workspace\server\keti\casic-production-safety\casic-web\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application-prod.yml b/casic-web/src/main/resources/config/application-prod.yml
new file mode 100644
index 0000000..a5c5ed9
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-prod.yml
@@ -0,0 +1,29 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://192.168.1.41:3000/casic_robot_inspection?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: root
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ #flowable数据源和多数据源配置
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application-test.yml b/casic-web/src/main/resources/config/application-test.yml
new file mode 100644
index 0000000..a5c5ed9
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-test.yml
@@ -0,0 +1,29 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://192.168.1.41:3000/casic_robot_inspection?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: root
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ #flowable数据源和多数据源配置
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\\logs
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
new file mode 100644
index 0000000..ba8875e
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
@@ -0,0 +1,27 @@
+package com.casic.missiles;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author lwh
+ * @Date 2021/06/06 12:06
+ */
+@SpringBootApplication
+@EnableCaching
+@EnableTransactionManagement(proxyTargetClass = true)
+@EnableAsync
+@Slf4j
+public class CasicApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasicApplication.class, args);
+ log.info("CasicApplication is success!");
+ }
+
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
new file mode 100644
index 0000000..e30585b
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
@@ -0,0 +1,18 @@
+package com.casic.missiles;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * Guns Web程序启动类
+ *
+ * @author fengshuonan
+ * @date 2017-05-21 9:43
+ */
+public class CasicServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(CasicApplication.class);
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
new file mode 100644
index 0000000..1c988ae
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
@@ -0,0 +1,36 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.casic.missiles.config;
+
+import net.sf.ehcache.config.CacheConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration.Strategy;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 安全生产缓存区
+ */
+@Configuration
+public class StayCacheConfig {
+ public StayCacheConfig() {
+ }
+
+ @Bean
+ public CacheConfiguration robotEhcache() {
+ CacheConfiguration config = new CacheConfiguration();
+ config.setName("CONSTANT_STAY");
+ config.setMaxEntriesLocalHeap(25000L);
+ config.setEternal(true);
+ config.setClearOnFlush(false);
+ config.persistence((new PersistenceConfiguration()).strategy(Strategy.LOCALTEMPSWAP)).maxEntriesLocalDisk(0);
+ config.setMaxElementsOnDisk(100000);
+ config.setDiskExpiryThreadIntervalSeconds(120L);
+ config.setMemoryStoreEvictionPolicy("LFU");
+ config.transactionalMode("off");
+ return config;
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/controller/MockController.java b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
new file mode 100644
index 0000000..eae6c54
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
@@ -0,0 +1,82 @@
+package com.casic.missiles.controller;
+
+import cn.hutool.core.util.StrUtil;
+import com.casic.missiles.core.application.enums.LoginType;
+import com.casic.missiles.core.base.controller.BaseController;
+import com.casic.missiles.core.model.auth.AuthUser;
+import com.casic.missiles.core.model.auth.CasicCustomToken;
+import com.casic.missiles.core.shiro.ShiroKit;
+import com.casic.missiles.core.util.RSAUtils;
+import com.casic.missiles.model.response.SuccessResponseData;
+import com.casic.missiles.modular.domain.constants.PermissionConstants;
+import com.casic.missiles.modular.interfaces.log.LogManager;
+import com.casic.missiles.modular.interfaces.log.factory.LogTaskFactory;
+import com.casic.missiles.modular.system.dto.LoginSuccessDTO;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.shiro.subject.Subject;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.security.NoSuchAlgorithmException;
+import java.util.Map;
+
+import static com.casic.missiles.core.util.HttpContext.getIp;
+
+
+/**
+ * 仅为mock登录使用
+ *
+ * @author lenovo
+ */
+@Controller
+@RequestMapping("/route")
+@Slf4j
+public class MockController extends BaseController {
+
+ /**
+ * 获取mockToken
+ */
+ @GetMapping("/mockToken")
+ @ResponseBody
+ public Object mockToken(String username, String password) {
+ super.getSession().setAttribute(PermissionConstants.IS_APP, false);
+ SuccessResponseData resultData = new SuccessResponseData();
+ if (StrUtil.hasEmpty(username, password)) {
+ username = "admin";
+ password = "111111";
+ }
+ Subject currentUser = ShiroKit.getSubject();
+
+ try {
+ Map key = RSAUtils.genKeyPair();
+ ShiroKit.getSession().setAttribute(PermissionConstants.PRIVATE_KEY, key.get(RSAUtils.RSAPrivateKey));
+
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ }
+
+ //token自定义
+ CasicCustomToken token = new CasicCustomToken(username, password);
+ token.setType(LoginType.PASSWORD);
+ token.setRememberMe(false);
+
+ try {
+ currentUser.login(token);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ AuthUser shiroUser = ShiroKit.getUser();
+ super.getSession().setAttribute("shiroUser", shiroUser);
+ super.getSession().setAttribute("username", shiroUser.getAccount());
+ super.getSession().setAttribute(PermissionConstants.SESSION_KEY, shiroUser.getId());
+
+ LogManager.me().executeLog(LogTaskFactory.loginLog(shiroUser.getId(), getIp()));
+
+ ShiroKit.getSession().setAttribute("sessionFlag", true);
+ resultData.setData(new LoginSuccessDTO(ShiroKit.getSession().getId().toString(), null));
+ resultData.setMessage("登录成功");
+ return resultData;
+ }
+}
diff --git a/casic-web/src/main/resources/config/application-dev.yml b/casic-web/src/main/resources/config/application-dev.yml
new file mode 100644
index 0000000..d5d354e
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-dev.yml
@@ -0,0 +1,36 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://localhost:3306/casic-production-safety?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: 123456
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+# session:
+# store-type: redis
+# redis:
+# host: 111.198.10.15
+# port: 11412
+# password: ew5T4K3#203lwh
+# serializer: org.springframework.data.redis.serializer.StringRedisSerializer
+# redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\workspace\server\keti\casic-production-safety\casic-web\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application-prod.yml b/casic-web/src/main/resources/config/application-prod.yml
new file mode 100644
index 0000000..a5c5ed9
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-prod.yml
@@ -0,0 +1,29 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://192.168.1.41:3000/casic_robot_inspection?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: root
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ #flowable数据源和多数据源配置
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application-test.yml b/casic-web/src/main/resources/config/application-test.yml
new file mode 100644
index 0000000..a5c5ed9
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-test.yml
@@ -0,0 +1,29 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://192.168.1.41:3000/casic_robot_inspection?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: root
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ #flowable数据源和多数据源配置
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application.yml b/casic-web/src/main/resources/config/application.yml
new file mode 100644
index 0000000..2050d60
--- /dev/null
+++ b/casic-web/src/main/resources/config/application.yml
@@ -0,0 +1,43 @@
+##########################################################
+################## 所有profile共有的配置 #################
+##########################################################
+spring:
+ profiles:
+ active: dev
+ servlet:
+ multipart:
+ max-file-size: 50MB
+ max-request-size: 80MB
+ web:
+ resources:
+ static-locations: file:C:\casic\tmp\
+ redis:
+ host: 192.168.1.20
+ port: 6379
+ # password: ew5T4K3#203lwh
+ database: 3
+ serializer: org.springframework.data.redis.serializer.StringRedisSerializer
+ redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
+#mybatis-plus:
+# configuration:
+# # 配置结果集属性为空时 是否映射返回结果
+# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #打印sql语句,调试用
+################### mybatis-plus配置 ###################
+################### guns配置 ###################
+casic:
+ swagger-open: true
+ knife4j:
+ groups: 系统管理:com.casic.missiles.modular.system,机器人业务包:com.casic.missiles.modular.robot;com.casic.missiles.modular.neutron;com.casic.missiles.modular.ptz
+ kaptcha-open: false #是否开启登录时验证码 (true/false)
+ muti-datasource-open: false #是否开启多数据源(true/false)
+ spring-session-open: false #是否开启spring session,如果是多机环境需要开启(true/false)
+ session-invalidate-time: 86400 #session失效时间(只在单机环境下生效,,多机环境在SpringSessionConfig类中配置) 单位:秒
+ session-validation-interval: 900 #多久检测一次失效的session(只在单机环境下生效) 单位:秒
+ no-login-urls: /user/login,/kaptcha,/config/baseConfig
+ hikSdk: D:\workspace\server\keti\hiklib\HCNetSDK.dll
+ hikPlay: D:\workspace\server\keti\hiklib\PlayCtrl.dll
+ config:
+ export-path: D:\java\boot\guns-web-1.0.0-SNAPSHOT\export\
+ config-path: E:\Develop\IdeaProject\smartcity\casic-smartcity-dcms\casic-web\src\main\resources\config\
+ file:
+ uploadPath: C:\casic\tmp\
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
new file mode 100644
index 0000000..ba8875e
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
@@ -0,0 +1,27 @@
+package com.casic.missiles;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author lwh
+ * @Date 2021/06/06 12:06
+ */
+@SpringBootApplication
+@EnableCaching
+@EnableTransactionManagement(proxyTargetClass = true)
+@EnableAsync
+@Slf4j
+public class CasicApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasicApplication.class, args);
+ log.info("CasicApplication is success!");
+ }
+
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
new file mode 100644
index 0000000..e30585b
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
@@ -0,0 +1,18 @@
+package com.casic.missiles;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * Guns Web程序启动类
+ *
+ * @author fengshuonan
+ * @date 2017-05-21 9:43
+ */
+public class CasicServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(CasicApplication.class);
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
new file mode 100644
index 0000000..1c988ae
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
@@ -0,0 +1,36 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.casic.missiles.config;
+
+import net.sf.ehcache.config.CacheConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration.Strategy;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 安全生产缓存区
+ */
+@Configuration
+public class StayCacheConfig {
+ public StayCacheConfig() {
+ }
+
+ @Bean
+ public CacheConfiguration robotEhcache() {
+ CacheConfiguration config = new CacheConfiguration();
+ config.setName("CONSTANT_STAY");
+ config.setMaxEntriesLocalHeap(25000L);
+ config.setEternal(true);
+ config.setClearOnFlush(false);
+ config.persistence((new PersistenceConfiguration()).strategy(Strategy.LOCALTEMPSWAP)).maxEntriesLocalDisk(0);
+ config.setMaxElementsOnDisk(100000);
+ config.setDiskExpiryThreadIntervalSeconds(120L);
+ config.setMemoryStoreEvictionPolicy("LFU");
+ config.transactionalMode("off");
+ return config;
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/controller/MockController.java b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
new file mode 100644
index 0000000..eae6c54
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
@@ -0,0 +1,82 @@
+package com.casic.missiles.controller;
+
+import cn.hutool.core.util.StrUtil;
+import com.casic.missiles.core.application.enums.LoginType;
+import com.casic.missiles.core.base.controller.BaseController;
+import com.casic.missiles.core.model.auth.AuthUser;
+import com.casic.missiles.core.model.auth.CasicCustomToken;
+import com.casic.missiles.core.shiro.ShiroKit;
+import com.casic.missiles.core.util.RSAUtils;
+import com.casic.missiles.model.response.SuccessResponseData;
+import com.casic.missiles.modular.domain.constants.PermissionConstants;
+import com.casic.missiles.modular.interfaces.log.LogManager;
+import com.casic.missiles.modular.interfaces.log.factory.LogTaskFactory;
+import com.casic.missiles.modular.system.dto.LoginSuccessDTO;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.shiro.subject.Subject;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.security.NoSuchAlgorithmException;
+import java.util.Map;
+
+import static com.casic.missiles.core.util.HttpContext.getIp;
+
+
+/**
+ * 仅为mock登录使用
+ *
+ * @author lenovo
+ */
+@Controller
+@RequestMapping("/route")
+@Slf4j
+public class MockController extends BaseController {
+
+ /**
+ * 获取mockToken
+ */
+ @GetMapping("/mockToken")
+ @ResponseBody
+ public Object mockToken(String username, String password) {
+ super.getSession().setAttribute(PermissionConstants.IS_APP, false);
+ SuccessResponseData resultData = new SuccessResponseData();
+ if (StrUtil.hasEmpty(username, password)) {
+ username = "admin";
+ password = "111111";
+ }
+ Subject currentUser = ShiroKit.getSubject();
+
+ try {
+ Map key = RSAUtils.genKeyPair();
+ ShiroKit.getSession().setAttribute(PermissionConstants.PRIVATE_KEY, key.get(RSAUtils.RSAPrivateKey));
+
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ }
+
+ //token自定义
+ CasicCustomToken token = new CasicCustomToken(username, password);
+ token.setType(LoginType.PASSWORD);
+ token.setRememberMe(false);
+
+ try {
+ currentUser.login(token);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ AuthUser shiroUser = ShiroKit.getUser();
+ super.getSession().setAttribute("shiroUser", shiroUser);
+ super.getSession().setAttribute("username", shiroUser.getAccount());
+ super.getSession().setAttribute(PermissionConstants.SESSION_KEY, shiroUser.getId());
+
+ LogManager.me().executeLog(LogTaskFactory.loginLog(shiroUser.getId(), getIp()));
+
+ ShiroKit.getSession().setAttribute("sessionFlag", true);
+ resultData.setData(new LoginSuccessDTO(ShiroKit.getSession().getId().toString(), null));
+ resultData.setMessage("登录成功");
+ return resultData;
+ }
+}
diff --git a/casic-web/src/main/resources/config/application-dev.yml b/casic-web/src/main/resources/config/application-dev.yml
new file mode 100644
index 0000000..d5d354e
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-dev.yml
@@ -0,0 +1,36 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://localhost:3306/casic-production-safety?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: 123456
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+# session:
+# store-type: redis
+# redis:
+# host: 111.198.10.15
+# port: 11412
+# password: ew5T4K3#203lwh
+# serializer: org.springframework.data.redis.serializer.StringRedisSerializer
+# redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\workspace\server\keti\casic-production-safety\casic-web\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application-prod.yml b/casic-web/src/main/resources/config/application-prod.yml
new file mode 100644
index 0000000..a5c5ed9
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-prod.yml
@@ -0,0 +1,29 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://192.168.1.41:3000/casic_robot_inspection?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: root
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ #flowable数据源和多数据源配置
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application-test.yml b/casic-web/src/main/resources/config/application-test.yml
new file mode 100644
index 0000000..a5c5ed9
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-test.yml
@@ -0,0 +1,29 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://192.168.1.41:3000/casic_robot_inspection?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: root
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ #flowable数据源和多数据源配置
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application.yml b/casic-web/src/main/resources/config/application.yml
new file mode 100644
index 0000000..2050d60
--- /dev/null
+++ b/casic-web/src/main/resources/config/application.yml
@@ -0,0 +1,43 @@
+##########################################################
+################## 所有profile共有的配置 #################
+##########################################################
+spring:
+ profiles:
+ active: dev
+ servlet:
+ multipart:
+ max-file-size: 50MB
+ max-request-size: 80MB
+ web:
+ resources:
+ static-locations: file:C:\casic\tmp\
+ redis:
+ host: 192.168.1.20
+ port: 6379
+ # password: ew5T4K3#203lwh
+ database: 3
+ serializer: org.springframework.data.redis.serializer.StringRedisSerializer
+ redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
+#mybatis-plus:
+# configuration:
+# # 配置结果集属性为空时 是否映射返回结果
+# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #打印sql语句,调试用
+################### mybatis-plus配置 ###################
+################### guns配置 ###################
+casic:
+ swagger-open: true
+ knife4j:
+ groups: 系统管理:com.casic.missiles.modular.system,机器人业务包:com.casic.missiles.modular.robot;com.casic.missiles.modular.neutron;com.casic.missiles.modular.ptz
+ kaptcha-open: false #是否开启登录时验证码 (true/false)
+ muti-datasource-open: false #是否开启多数据源(true/false)
+ spring-session-open: false #是否开启spring session,如果是多机环境需要开启(true/false)
+ session-invalidate-time: 86400 #session失效时间(只在单机环境下生效,,多机环境在SpringSessionConfig类中配置) 单位:秒
+ session-validation-interval: 900 #多久检测一次失效的session(只在单机环境下生效) 单位:秒
+ no-login-urls: /user/login,/kaptcha,/config/baseConfig
+ hikSdk: D:\workspace\server\keti\hiklib\HCNetSDK.dll
+ hikPlay: D:\workspace\server\keti\hiklib\PlayCtrl.dll
+ config:
+ export-path: D:\java\boot\guns-web-1.0.0-SNAPSHOT\export\
+ config-path: E:\Develop\IdeaProject\smartcity\casic-smartcity-dcms\casic-web\src\main\resources\config\
+ file:
+ uploadPath: C:\casic\tmp\
\ No newline at end of file
diff --git a/casic-web/src/main/resources/logback-spring.xml b/casic-web/src/main/resources/logback-spring.xml
new file mode 100644
index 0000000..81a8563
--- /dev/null
+++ b/casic-web/src/main/resources/logback-spring.xml
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ${CONSOLE_LOG_PATTERN}
+ utf-8
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${CONSOLE_LOG_PATTERN}
+ utf-8
+
+
+
+
+
+
+
+ ${LOG_PATH}/missiles_error.log
+
+
+
+
+
+ ${LOG_PATH}/error/log-error-%d{yyyy-MM-dd}.%i.log
+
+
+
+ 100MB
+
+
+
+
+ true
+
+
+
+ ${FILE_LOG_PATTERN}
+ utf-8
+
+
+
+
+ error
+ ACCEPT
+ DENY
+
+
+
+
+
+
+
+ ${LOG_PATH}/missiles_total.log
+
+
+
+
+
+ ${LOG_PATH}/total/log-total-%d{yyyy-MM-dd}.%i.log
+
+
+
+ 100MB
+
+
+
+
+ true
+
+
+
+ ${FILE_LOG_PATTERN}
+ utf-8
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d0ce846
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+.idea/
+**/target/**
+logs/
+**/hiklib/**
+*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..37f5775
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# 安全生产项目 V2.0.0
+
+## 介绍
+基于SpringBoot,致力于做更简洁的后台管理系统,完美整合springboot2.4 + shiro + mybatis-plus !
+基于casic项目代码简洁,注释丰富,上手容易,同时包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块)
+可以直接作为一个后台管理系统的脚手架! 2023目标 `更简洁`,`更规范`!
+
+
+#### 其他
+>* [git地址](http://192.168.0.203:8080/gitbucket)
+>* [本地免登地址](http://localhost:8083/route/mockToken)
diff --git a/casic-server/pom.xml b/casic-server/pom.xml
new file mode 100644
index 0000000..22bee37
--- /dev/null
+++ b/casic-server/pom.xml
@@ -0,0 +1,122 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ 2.0.0
+ ../pom.xml
+
+
+ casic-server
+ 2.0.0
+ jar
+ casic-server
+ casic 的spring boot版本
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+ provided
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+ provided
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+ 5.4.3
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-job-quartz
+ ${extension.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ net.jodah
+ expiringmap
+ 0.5.8
+
+
+
+
+ cn.afterturn
+ easypoi-base
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-web
+ 4.4.0
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.4.0
+
+
+
+
+
+ src/main/java
+
+ **/*.xml
+
+
+
+ ${project.basedir}/lib
+
+ *
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/pom.xml b/casic-web/pom.xml
new file mode 100644
index 0000000..56028f7
--- /dev/null
+++ b/casic-web/pom.xml
@@ -0,0 +1,258 @@
+
+
+ 4.0.0
+
+ com.casic
+ casic-production-safety
+ ../pom.xml
+ 2.0.0
+
+ casic-web
+ 2.0.0
+ jar
+ casic-web
+ casic web启动入口
+
+
+
+ dev
+
+ true
+
+
+ dev
+
+
+
+ test
+
+ test
+
+
+
+ prod
+
+ prod
+
+
+
+
+
+ io.netty
+ netty-all
+ 4.1.36.Final
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ io.micrometer
+ micrometer-core
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ io.swagger
+ swagger-models
+ 1.6.0
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+ com.casic
+ casic-admin-support
+ ${admin.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+ com.dameng
+ DmJdbcDriver18
+ 1.8
+
+
+ com.casic
+ casic-area-starter
+ ${admin.version}
+
+
+
+ com.casic
+ casic-server
+ ${pro.version}
+
+
+ com.casic
+ casic-ptz
+ ${pro.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+ com.sun.jna
+ jna
+ 3.0.9
+
+
+ com.sun.jna.examples
+ jna
+ 3.0.0
+
+
+ com.casic
+ casic-file
+ ${extension.version}
+
+
+ com.casic
+ casic-file-support
+ ${extension.version}
+
+
+
+ casic-robot-inspection
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ ${maven.jar.plugin.version}
+
+
+
+ /config/*-*.yml
+ **/MockController.class
+
+
+
+ com.casic.missiles.CasicApplication
+ true
+ ./
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+ ${resource.delimiter}
+
+ true
+
+ dll
+ lib
+ dat
+ exe
+
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.outputDirectory}
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+
+
+ src/main/resources
+
+
+ /config/*/*
+ /config/*-*.yml
+ /config/**/*.exe
+
+ true
+
+
+ src/main/java
+
+ **/*.xml
+
+ true
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/build/bin/start.bat b/casic-web/src/main/build/bin/start.bat
new file mode 100644
index 0000000..3eaea7f
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.bat
@@ -0,0 +1,4 @@
+@echo off
+title ${project.build.finalName}
+java -Dfile.encoding=utf-8 -jar ./lib/casic-web-2.0.0.jar
+@pause
diff --git a/casic-web/src/main/build/bin/start.sh b/casic-web/src/main/build/bin/start.sh
new file mode 100644
index 0000000..c00b1ef
--- /dev/null
+++ b/casic-web/src/main/build/bin/start.sh
@@ -0,0 +1,2 @@
+java -jar ./lib/${project.build.finalName}.jar
+
diff --git a/casic-web/src/main/build/package.xml b/casic-web/src/main/build/package.xml
new file mode 100644
index 0000000..c9259ad
--- /dev/null
+++ b/casic-web/src/main/build/package.xml
@@ -0,0 +1,43 @@
+
+
+ package
+
+ zip
+ tar.gz
+
+ true
+
+
+
+ true
+ true
+ lib
+ runtime
+
+
+
+
+ src/main/build/bin
+
+ start.bat
+ start.sh
+
+ true
+ 0744
+ /
+
+
+ src/main/resources/config
+ true
+
+ *.yml
+ /*/*
+
+ /config
+
+
+ src/main/resources/i18n
+ /
+
+
+
\ No newline at end of file
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
new file mode 100644
index 0000000..ba8875e
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java
@@ -0,0 +1,27 @@
+package com.casic.missiles;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * SpringBoot方式启动类
+ *
+ * @author lwh
+ * @Date 2021/06/06 12:06
+ */
+@SpringBootApplication
+@EnableCaching
+@EnableTransactionManagement(proxyTargetClass = true)
+@EnableAsync
+@Slf4j
+public class CasicApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasicApplication.class, args);
+ log.info("CasicApplication is success!");
+ }
+
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
new file mode 100644
index 0000000..e30585b
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/CasicServletInitializer.java
@@ -0,0 +1,18 @@
+package com.casic.missiles;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * Guns Web程序启动类
+ *
+ * @author fengshuonan
+ * @date 2017-05-21 9:43
+ */
+public class CasicServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(CasicApplication.class);
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
new file mode 100644
index 0000000..1c988ae
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/config/StayCacheConfig.java
@@ -0,0 +1,36 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.casic.missiles.config;
+
+import net.sf.ehcache.config.CacheConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration;
+import net.sf.ehcache.config.PersistenceConfiguration.Strategy;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 安全生产缓存区
+ */
+@Configuration
+public class StayCacheConfig {
+ public StayCacheConfig() {
+ }
+
+ @Bean
+ public CacheConfiguration robotEhcache() {
+ CacheConfiguration config = new CacheConfiguration();
+ config.setName("CONSTANT_STAY");
+ config.setMaxEntriesLocalHeap(25000L);
+ config.setEternal(true);
+ config.setClearOnFlush(false);
+ config.persistence((new PersistenceConfiguration()).strategy(Strategy.LOCALTEMPSWAP)).maxEntriesLocalDisk(0);
+ config.setMaxElementsOnDisk(100000);
+ config.setDiskExpiryThreadIntervalSeconds(120L);
+ config.setMemoryStoreEvictionPolicy("LFU");
+ config.transactionalMode("off");
+ return config;
+ }
+}
diff --git a/casic-web/src/main/java/com/casic/missiles/controller/MockController.java b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
new file mode 100644
index 0000000..eae6c54
--- /dev/null
+++ b/casic-web/src/main/java/com/casic/missiles/controller/MockController.java
@@ -0,0 +1,82 @@
+package com.casic.missiles.controller;
+
+import cn.hutool.core.util.StrUtil;
+import com.casic.missiles.core.application.enums.LoginType;
+import com.casic.missiles.core.base.controller.BaseController;
+import com.casic.missiles.core.model.auth.AuthUser;
+import com.casic.missiles.core.model.auth.CasicCustomToken;
+import com.casic.missiles.core.shiro.ShiroKit;
+import com.casic.missiles.core.util.RSAUtils;
+import com.casic.missiles.model.response.SuccessResponseData;
+import com.casic.missiles.modular.domain.constants.PermissionConstants;
+import com.casic.missiles.modular.interfaces.log.LogManager;
+import com.casic.missiles.modular.interfaces.log.factory.LogTaskFactory;
+import com.casic.missiles.modular.system.dto.LoginSuccessDTO;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.shiro.subject.Subject;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.security.NoSuchAlgorithmException;
+import java.util.Map;
+
+import static com.casic.missiles.core.util.HttpContext.getIp;
+
+
+/**
+ * 仅为mock登录使用
+ *
+ * @author lenovo
+ */
+@Controller
+@RequestMapping("/route")
+@Slf4j
+public class MockController extends BaseController {
+
+ /**
+ * 获取mockToken
+ */
+ @GetMapping("/mockToken")
+ @ResponseBody
+ public Object mockToken(String username, String password) {
+ super.getSession().setAttribute(PermissionConstants.IS_APP, false);
+ SuccessResponseData resultData = new SuccessResponseData();
+ if (StrUtil.hasEmpty(username, password)) {
+ username = "admin";
+ password = "111111";
+ }
+ Subject currentUser = ShiroKit.getSubject();
+
+ try {
+ Map key = RSAUtils.genKeyPair();
+ ShiroKit.getSession().setAttribute(PermissionConstants.PRIVATE_KEY, key.get(RSAUtils.RSAPrivateKey));
+
+ } catch (NoSuchAlgorithmException e) {
+ e.printStackTrace();
+ }
+
+ //token自定义
+ CasicCustomToken token = new CasicCustomToken(username, password);
+ token.setType(LoginType.PASSWORD);
+ token.setRememberMe(false);
+
+ try {
+ currentUser.login(token);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ AuthUser shiroUser = ShiroKit.getUser();
+ super.getSession().setAttribute("shiroUser", shiroUser);
+ super.getSession().setAttribute("username", shiroUser.getAccount());
+ super.getSession().setAttribute(PermissionConstants.SESSION_KEY, shiroUser.getId());
+
+ LogManager.me().executeLog(LogTaskFactory.loginLog(shiroUser.getId(), getIp()));
+
+ ShiroKit.getSession().setAttribute("sessionFlag", true);
+ resultData.setData(new LoginSuccessDTO(ShiroKit.getSession().getId().toString(), null));
+ resultData.setMessage("登录成功");
+ return resultData;
+ }
+}
diff --git a/casic-web/src/main/resources/config/application-dev.yml b/casic-web/src/main/resources/config/application-dev.yml
new file mode 100644
index 0000000..d5d354e
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-dev.yml
@@ -0,0 +1,36 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://localhost:3306/casic-production-safety?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: 123456
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+# session:
+# store-type: redis
+# redis:
+# host: 111.198.10.15
+# port: 11412
+# password: ew5T4K3#203lwh
+# serializer: org.springframework.data.redis.serializer.StringRedisSerializer
+# redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\workspace\server\keti\casic-production-safety\casic-web\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application-prod.yml b/casic-web/src/main/resources/config/application-prod.yml
new file mode 100644
index 0000000..a5c5ed9
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-prod.yml
@@ -0,0 +1,29 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://192.168.1.41:3000/casic_robot_inspection?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: root
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ #flowable数据源和多数据源配置
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application-test.yml b/casic-web/src/main/resources/config/application-test.yml
new file mode 100644
index 0000000..a5c5ed9
--- /dev/null
+++ b/casic-web/src/main/resources/config/application-test.yml
@@ -0,0 +1,29 @@
+server:
+ port: 8083
+################### spring配置 ###################
+spring:
+ datasource:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://192.168.1.41:3000/casic_robot_inspection?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&serverTimezone=UTC&&allowMultiQueries=true
+ username: root
+ password: root
+ druid:
+ max-active: 50
+ min-idle: 20
+jms:
+ pub-sub-domain: true
+casic:
+ #kaptcha-open: false #是否开启登录时验证码 (true/false)
+ no-login-urls: ${casic.sysUrl}/user/login,${casic.sysUrl}/user/appLogin,${casic.sysUrl}/kaptcha/base64,${casic.sysUrl}/config/baseConfig,/route/mockToken,/websocket/*,/webjars/**,/v2/api-docs,/v2/api-docs-ext,/doc.html,/v2/api-docs/swagger-ui.html,/swagger-resources
+ #flowable数据源和多数据源配置
+ db:
+ init:
+ enable: false
+logging:
+ level.root: info
+ level.com.casic: debug
+ level.com.casic.missiles.netty: error
+ level.com.casic.missiles.modular.neutron: error
+ level.org.springframework.web: info
+ file:
+ path: D:\\logs
\ No newline at end of file
diff --git a/casic-web/src/main/resources/config/application.yml b/casic-web/src/main/resources/config/application.yml
new file mode 100644
index 0000000..2050d60
--- /dev/null
+++ b/casic-web/src/main/resources/config/application.yml
@@ -0,0 +1,43 @@
+##########################################################
+################## 所有profile共有的配置 #################
+##########################################################
+spring:
+ profiles:
+ active: dev
+ servlet:
+ multipart:
+ max-file-size: 50MB
+ max-request-size: 80MB
+ web:
+ resources:
+ static-locations: file:C:\casic\tmp\
+ redis:
+ host: 192.168.1.20
+ port: 6379
+ # password: ew5T4K3#203lwh
+ database: 3
+ serializer: org.springframework.data.redis.serializer.StringRedisSerializer
+ redisValueSerializer: org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
+#mybatis-plus:
+# configuration:
+# # 配置结果集属性为空时 是否映射返回结果
+# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #打印sql语句,调试用
+################### mybatis-plus配置 ###################
+################### guns配置 ###################
+casic:
+ swagger-open: true
+ knife4j:
+ groups: 系统管理:com.casic.missiles.modular.system,机器人业务包:com.casic.missiles.modular.robot;com.casic.missiles.modular.neutron;com.casic.missiles.modular.ptz
+ kaptcha-open: false #是否开启登录时验证码 (true/false)
+ muti-datasource-open: false #是否开启多数据源(true/false)
+ spring-session-open: false #是否开启spring session,如果是多机环境需要开启(true/false)
+ session-invalidate-time: 86400 #session失效时间(只在单机环境下生效,,多机环境在SpringSessionConfig类中配置) 单位:秒
+ session-validation-interval: 900 #多久检测一次失效的session(只在单机环境下生效) 单位:秒
+ no-login-urls: /user/login,/kaptcha,/config/baseConfig
+ hikSdk: D:\workspace\server\keti\hiklib\HCNetSDK.dll
+ hikPlay: D:\workspace\server\keti\hiklib\PlayCtrl.dll
+ config:
+ export-path: D:\java\boot\guns-web-1.0.0-SNAPSHOT\export\
+ config-path: E:\Develop\IdeaProject\smartcity\casic-smartcity-dcms\casic-web\src\main\resources\config\
+ file:
+ uploadPath: C:\casic\tmp\
\ No newline at end of file
diff --git a/casic-web/src/main/resources/logback-spring.xml b/casic-web/src/main/resources/logback-spring.xml
new file mode 100644
index 0000000..81a8563
--- /dev/null
+++ b/casic-web/src/main/resources/logback-spring.xml
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ${CONSOLE_LOG_PATTERN}
+ utf-8
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${CONSOLE_LOG_PATTERN}
+ utf-8
+
+
+
+
+
+
+
+ ${LOG_PATH}/missiles_error.log
+
+
+
+
+
+ ${LOG_PATH}/error/log-error-%d{yyyy-MM-dd}.%i.log
+
+
+
+ 100MB
+
+
+
+
+ true
+
+
+
+ ${FILE_LOG_PATTERN}
+ utf-8
+
+
+
+
+ error
+ ACCEPT
+ DENY
+
+
+
+
+
+
+
+ ${LOG_PATH}/missiles_total.log
+
+
+
+
+
+ ${LOG_PATH}/total/log-total-%d{yyyy-MM-dd}.%i.log
+
+
+
+ 100MB
+
+
+
+
+ true
+
+
+
+ ${FILE_LOG_PATTERN}
+ utf-8
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..7a6fda4
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,165 @@
+
+ 4.0.0
+ com.casic
+ casic-production-safety
+ 2.0.0
+ casic-production-safety
+ pom
+
+ casic-web
+ casic-server
+
+
+ com.casic
+ casic-boot-starter-parent
+ 2.0.0.alpha
+
+
+ UTF-8
+ UTF-8
+ 1.8
+
+ 2.0.0
+
+ 2.0.0.alpha
+
+ 2.0.0.alpha
+ 3.2.1
+ 1.7
+ 3.6
+ 2.6.11
+ 1.0.3
+ 2.0.0.alpha
+ 3.4.5
+
+
+
+
+
+ com.casic
+ casic-knife4j-boot-starter
+ ${extension.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ ${boot.version}
+
+
+ com.casic
+ casic-admin-core
+ ${admin.version}
+
+
+ io.springfox
+ springfox-swagger-ui
+
+
+ io.swagger
+ swagger-models
+
+
+
+
+
+ com.casic
+ casic-core
+ ${core.version}
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+ com.baomidou
+ mybatis-plus-boot-starter
+ ${mybatis-plus-boot-starter}
+
+
+
+ com.alibaba
+ druid
+ ${druid.version}
+
+
+ com.alibaba
+ fastjson
+ ${fastjson.version}
+
+
+
+
+
+
+ src/main/resources/config/hiklib
+
+ *
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ ${maven.compiler.plugin.version}
+
+
+ cn.smallbun.screw
+ screw-maven-plugin
+ ${screw.version}
+
+
+
+ com.zaxxer
+ HikariCP
+ ${hikari.version}
+
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.driver.version}
+
+
+
+
+ root
+
+ casic203!
+
+
+ com.mysql.jdbc.Driver
+
+ jdbc:mysql://localhost:3306/casic_template?useSSL=false
+
+ WORD
+
+ true
+
+ freemarker
+
+
+ 基础权限库
+
+ ${pro.version}
+
+ 基础库文档速查
+
+
+
+ compile
+
+ run
+
+
+
+
+
+
+
+
\ No newline at end of file