-
大小: 48.53MB文件類型: .zip金幣: 1下載: 0 次發布日期: 2023-08-08
- 語言: Java
- 標簽:
資源簡介
1、下載并安裝mysql,將腳本執行至數據庫中;
2、配置java環境,使用jdk8,配置環境變量,下載IntelliJ IDEA 2019.2.4,該工具為java代碼編譯器
3、下載Maven,配置至環境變量(百度搜索很多),將構建器為Maven,類庫配置成阿里庫(方法:百度搜索很多很多)
4、將工程導入后,在application-local.yml文件中配置數據庫
5、在logback-prod.xml文件中配置log日志
6、配置完畢后,即可啟動
訪問地址:http://localhost:8082/anime/login.html
用戶名:admin
密碼:admin
V:china1866
1、 登錄
2、 首頁
3、 權限管理-用戶管理
4、 權限管理-添加用戶數據
5、 交通數據管理-查看交通數據
6、 交通數據管理-添加交通數據
7、 交通預測-交通數據預測
腳本:
CREATE TABLE `traffic_data_t` (
`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '序列',
`trafficId` VARCHAR(50) NULL DEFAULT NULL COMMENT '交通數據編號',
`trafficContent` VARCHAR(50) NULL DEFAULT NULL COMMENT '交通狀況',
`trafficSection` VARCHAR(200) NULL DEFAULT NULL COMMENT '交通路段',
`trafficMan` VARCHAR(200) NULL DEFAULT NULL COMMENT '上報人',
`trafficDate` VARCHAR(200) NULL DEFAULT NULL COMMENT '上報時間',
`status` VARCHAR(200) NULL DEFAULT NULL COMMENT '交通狀態',
PRIMARY KEY (`id`)
)
COMMENT='交通數據表'
COLLATE='utf8_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=44
;
CREATE TABLE `sys_user_t` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`role_id` INT(11) NULL DEFAULT NULL COMMENT '角色ID',
`user_id` VARCHAR(50) NOT NULL COMMENT '用戶ID',
`user_name` VARCHAR(100) NOT NULL COMMENT '用戶名',
`status` INT(11) NOT NULL COMMENT '是否有效0:false\\\\1:true',
`create_date` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
`create_by` VARCHAR(100) NULL DEFAULT NULL,
`last_update_date` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
`last_update_by` VARCHAR(100) NULL DEFAULT NULL,
`password` VARCHAR(128) NOT NULL,
`tenantcode` VARCHAR(50) NOT NULL,
`diskId` VARCHAR(500) NULL DEFAULT NULL,
`remarks` VARCHAR(500) NULL DEFAULT NULL,
PRIMARY KEY (`id`)
)
COMMENT='系統用戶表'
COLLATE='utf8_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=51
;
CREATE TABLE `sys_role_t` (
`role_id` INT(11) NOT NULL COMMENT '角色ID',
`role_name` VARCHAR(200) NOT NULL COMMENT '權限名稱',
`status` INT(11) NOT NULL COMMENT '是否有效0:true\\\\1:false',
`create_date` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
`create_by` VARCHAR(100) NULL DEFAULT NULL,
`last_update_date` TIMESTA
代碼片段和文件信息
/*
?*?Copyright?2007-present?the?original?author?or?authors.
?*
?*?Licensed?under?the?Apache?License?Version?2.0?(the?“License“);
?*?you?may?not?use?this?file?except?in?compliance?with?the?License.
?*?You?may?obtain?a?copy?of?the?License?at
?*
?*??????https://www.apache.org/licenses/LICENSE-2.0
?*
?*?Unless?required?by?applicable?law?or?agreed?to?in?writing?software
?*?distributed?under?the?License?is?distributed?on?an?“AS?IS“?BASIS
?*?WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND?either?express?or?implied.
?*?See?the?License?for?the?specific?language?governing?permissions?and
?*?limitations?under?the?License.
?*/
import?java.net.*;
import?java.io.*;
import?java.nio.channels.*;
import?java.util.Properties;
public?class?MavenWrapperDownloader?{
????private?static?final?String?WRAPPER_VERSION?=?“0.5.6“;
????/**
?????*?Default?URL?to?download?the?maven-wrapper.jar?from?if?no?‘downloadUrl‘?is?provided.
?????*/
????private?static?final?String?DEFAULT_DOWNLOAD_URL?=?“https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/“
????????????+?WRAPPER_VERSION?+?“/maven-wrapper-“?+?WRAPPER_VERSION?+?“.jar“;
????/**
?????*?Path?to?the?maven-wrapper.properties?file?which?might?contain?a?downloadUrl?property?to
?????*?use?instead?of?the?default?one.
?????*/
????private?static?final?String?MAVEN_WRAPPER_PROPERTIES_PATH?=
????????????“.mvn/wrapper/maven-wrapper.properties“;
????/**
?????*?Path?where?the?maven-wrapper.jar?will?be?saved?to.
?????*/
????private?static?final?String?MAVEN_WRAPPER_JAR_PATH?=
????????????“.mvn/wrapper/maven-wrapper.jar“;
????/**
?????*?Name?of?the?property?which?should?be?used?to?override?the?default?download?url?for?the?wrapper.
?????*/
????private?static?final?String?PROPERTY_NAME_WRAPPER_URL?=?“wrapperUrl“;
????public?static?void?main(String?args[])?{
????????System.out.println(“-?Downloader?started“);
????????File?baseDirectory?=?new?File(args[0]);
????????System.out.println(“-?Using?base?directory:?“?+?baseDirectory.getAbsolutePath());
????????//?If?the?maven-wrapper.properties?exists?read?it?and?check?if?it?contains?a?custom
????????//?wrapperUrl?parameter.
????????File?mavenWrapperPropertyFile?=?new?File(baseDirectory?MAVEN_WRAPPER_PROPERTIES_PATH);
????????String?url?=?DEFAULT_DOWNLOAD_URL;
????????if?(mavenWrapperPropertyFile.exists())?{
????????????FileInputStream?mavenWrapperPropertyFileInputStream?=?null;
????????????try?{
????????????????mavenWrapperPropertyFileInputStream?=?new?FileInputStream(mavenWrapperPropertyFile);
????????????????Properties?mavenWrapperProperties?=?new?Properties();
????????????????mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
????????????????url?=?mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL?url);
????????????}?catch?(IOException?e)?{
????????????????System.out.println(“-?ERROR?loading?‘“?+?MAVEN_WRAPPER_PROPERTIES_PATH?+?“‘“);
????????????}?finally?{
????????????????try?{
????????????????????if?(mavenWrapperPropertyFileInputStream?!=?null)?{
?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-04-25?19:32??STK\
?????文件?????????333??2020-03-06?22:26??STK\.gitignore
?????目錄???????????0??2020-04-25?19:30??STK\.idea\
?????文件?????????489??2020-03-17?22:04??STK\.idea\$PRODUCT_WORKSPACE_FILE$
?????文件?????????707??2020-03-17?22:22??STK\.idea\compiler.xm
?????文件?????????177??2020-03-17?22:04??STK\.idea\encodings.xm
?????文件?????????526??2020-03-17?22:04??STK\.idea\misc.xm
?????文件????????3550??2020-04-25?19:30??STK\.idea\workspace.xm
?????目錄???????????0??2020-03-06?22:26??STK\.mvn\
?????目錄???????????0??2020-03-06?22:26??STK\.mvn\wrapper\
?????文件???????50710??2020-03-06?22:26??STK\.mvn\wrapper\maven-wrapper.jar
?????文件?????????218??2020-03-06?22:26??STK\.mvn\wrapper\maven-wrapper.properties
?????文件????????4951??2020-03-06?22:26??STK\.mvn\wrapper\MavenWrapperDownloader.java
?????文件????????7112??2020-03-07?00:13??STK\BJM.iml
?????文件?????????861??2020-03-06?22:26??STK\HELP.md
?????文件???????10070??2020-03-06?22:26??STK\mvnw
?????文件????????6608??2020-03-06?22:26??STK\mvnw.cmd
?????文件????????2116??2020-03-17?22:06??STK\pom.xm
?????目錄???????????0??2020-03-06?22:50??STK\src\
?????目錄???????????0??2020-03-06?22:26??STK\src\main\
?????目錄???????????0??2020-03-06?22:26??STK\src\main\java\
?????目錄???????????0??2020-03-06?22:26??STK\src\main\java\com\
?????目錄???????????0??2020-03-06?22:26??STK\src\main\java\com\example\
?????目錄???????????0??2020-03-15?23:56??STK\src\main\java\com\example\anime\
?????目錄???????????0??2020-03-07?00:09??STK\src\main\java\com\example\anime\ba
?????文件?????????336??2020-03-07?00:09??STK\src\main\java\com\example\anime\ba
?????目錄???????????0??2020-03-07?00:26??STK\src\main\java\com\example\anime\ctrl\
?????文件?????????879??2020-03-07?00:26??STK\src\main\java\com\example\anime\ctrl\UserCtrl.java
?????目錄???????????0??2020-04-25?19:20??STK\src\main\java\com\example\anime\dao\
?????文件????????4212??2020-04-25?19:20??STK\src\main\java\com\example\anime\dao\IManagerDao.java
?????文件?????????247??2020-03-07?00:14??STK\src\main\java\com\example\anime\dao\UserMapper.java
............此處省略1505個文件信息
評論
共有 條評論