注释了idea文件包里的和jest.config.js,vue.config.js和webstorm.config.js文件

feature/lxh
李炫好 1 month ago
parent 71486f2cd1
commit 9ce60a01cd

@ -1,18 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 定义XML文档的版本和编码 -->
<project version="4">
<!-- 定义项目版本 -->
<component name="CompilerConfiguration">
<!-- 定义编译器配置 -->
<annotationProcessing>
<!-- 定义注解处理 -->
<profile name="Maven default annotation processors profile" enabled="true">
<!-- 定义Maven默认注解处理器配置 -->
<sourceOutputDir name="target/generated-sources/annotations" />
<!-- 定义源代码输出目录 -->
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<!-- 定义测试代码输出目录 -->
<outputRelativeToContentRoot value="true" />
<!-- 定义输出目录相对于内容根目录 -->
<module name="exam" />
<!-- 定义模块名称 -->
</profile>
</annotationProcessing>
</component>
<component name="JavacSettings">
<!-- 定义Javac设置 -->
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<!-- 定义附加选项覆盖 -->
<module name="exam" options="-parameters" />
<!-- 定义模块名称和选项 -->
</option>
</component>
</project>

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 定义XML文档的版本和编码 -->
<project version="4">
<!-- 定义项目版本 -->
<component name="Encoding">
<!-- 定义组件名称 -->
<file url="file://$PROJECT_DIR$/backend/src/main/java" charset="UTF-8" />
<!-- 定义文件路径和字符编码 -->
</component>
</project>

@ -1,19 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 定义项目版本 -->
<project version="4">
<!-- 定义远程仓库配置 -->
<component name="RemoteRepositoriesConfiguration">
<!-- 定义第一个远程仓库 -->
<remote-repository>
<!-- 定义远程仓库ID -->
<option name="id" value="central" />
<!-- 定义远程仓库名称 -->
<option name="name" value="Central Repository" />
<!-- 定义远程仓库URL -->
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<!-- 定义第二个远程仓库 -->
<remote-repository>
<!-- 定义远程仓库ID -->
<option name="id" value="central" />
<!-- 定义远程仓库名称 -->
<option name="name" value="Maven Central repository" />
<!-- 定义远程仓库URL -->
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<!-- 定义第三个远程仓库 -->
<remote-repository>
<!-- 定义远程仓库ID -->
<option name="id" value="jboss.community" />
<!-- 定义远程仓库名称 -->
<option name="name" value="JBoss Community repository" />
<!-- 定义远程仓库URL -->
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
</component>

@ -1,14 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 项目版本 -->
<project version="4">
<!-- 外部存储配置管理器 -->
<component name="ExternalStorageConfigurationManager" enabled="true" />
<!-- Maven项目管理器 -->
<component name="MavenProjectsManager">
<!-- 原始文件列表 -->
<option name="originalFiles">
<list>
<!-- 后端项目的pom.xml文件 -->
<option value="$PROJECT_DIR$/backend/pom.xml" />
</list>
</option>
</component>
<!-- 项目根管理器 -->
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8 (2)" project-jdk-type="JavaSDK">
<!-- 输出目录 -->
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -1,8 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 定义XML文档的版本和编码 -->
<project version="4">
<!-- 定义项目的版本 -->
<component name="ProjectModuleManager">
<!-- 定义项目的模块管理器 -->
<modules>
<!-- 定义项目的模块 -->
<module fileurl="file://$PROJECT_DIR$/.idea/spring-boot-online-exam-master.iml" filepath="$PROJECT_DIR$/.idea/spring-boot-online-exam-master.iml" />
<!-- 定义项目的模块文件路径 -->
</modules>
</component>
</project>
</project>
<!-- 定义项目的根元素 -->

@ -1,8 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 定义XML文档的版本和编码 -->
<project version="4">
<!-- 定义一个项目版本为4 -->
<component name="DdlMappings">
<!-- 定义一个组件名称为DdlMappings -->
<mapping uuid="3f2269d9-40c7-4022-bc5b-913dfbbc6cdc" name="@localhost Mapping">
<!-- 定义一个映射uuid为3f2269d9-40c7-4022-bc5b-913dfbbc6cdc名称为@localhost Mapping -->
<data-sources db="52ce0e2c-1ca8-4087-a535-1632d84f6e81" ddl="7ee42c98-c0b3-46e7-9153-4802360edee6" />
<!-- 定义数据源数据库为52ce0e2c-1ca8-4087-a535-1632d84f6e81DDL为7ee42c98-c0b3-46e7-9153-4802360edee6 -->
</mapping>
</component>
</project>

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 定义一个项目版本号为4 -->
<project version="4">
<!-- 定义一个组件名称为SqlDialectMappings -->
<component name="SqlDialectMappings">
<!-- 定义一个文件URL为PROJECT方言为MySQL -->
<file url="PROJECT" dialect="MySQL" />
</component>
</project>

@ -1,123 +1,200 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<!-- 定义项目版本 -->
<component name="Palette2">
<!-- 定义调色板组件 -->
<group name="Swing">
<!-- 定义Swing组件组 -->
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<!-- 定义水平间距组件 -->
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
<!-- 定义默认约束 -->
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<!-- 定义垂直间距组件 -->
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
<!-- 定义默认约束 -->
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<!-- 定义面板组件 -->
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
<!-- 定义默认约束 -->
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
<!-- 定义滚动面板组件 -->
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
<!-- 定义默认约束 -->
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<!-- 定义按钮组件 -->
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<!-- 定义默认约束 -->
<initial-values>
<!-- 定义初始值 -->
<property name="text" value="Button" />
<!-- 定义按钮文本 -->
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<!-- 定义单选按钮组件 -->
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<!-- 定义默认约束 -->
<initial-values>
<!-- 定义初始值 -->
<property name="text" value="RadioButton" />
<!-- 定义单选按钮文本 -->
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<!-- 定义复选框组件 -->
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<!-- 定义默认约束 -->
<initial-values>
<!-- 定义初始值 -->
<property name="text" value="CheckBox" />
<!-- 定义复选框文本 -->
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<!-- 定义标签组件 -->
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<!-- 定义默认约束 -->
<initial-values>
<!-- 定义初始值 -->
<property name="text" value="Label" />
<!-- 定义标签文本 -->
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<!-- 定义文本框组件 -->
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<!-- 定义默认约束 -->
<preferred-size width="150" height="-1" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<!-- 定义密码框组件 -->
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<!-- 定义默认约束 -->
<preferred-size width="150" height="-1" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<!-- 定义格式化文本框组件 -->
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<!-- 定义默认约束 -->
<preferred-size width="150" height="-1" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<!-- 定义文本区域组件 -->
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<!-- 定义默认约束 -->
<preferred-size width="150" height="50" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<!-- 定义文本面板组件 -->
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<!-- 定义默认约束 -->
<preferred-size width="150" height="50" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<!-- 定义编辑面板组件 -->
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<!-- 定义默认约束 -->
<preferred-size width="150" height="50" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<!-- 定义组合框组件 -->
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
<!-- 定义默认约束 -->
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<!-- 定义表格组件 -->
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<!-- 定义默认约束 -->
<preferred-size width="150" height="50" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<!-- 定义列表组件 -->
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<!-- 定义默认约束 -->
<preferred-size width="150" height="50" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<!-- 定义树组件 -->
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<!-- 定义默认约束 -->
<preferred-size width="150" height="50" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<!-- 定义选项卡面板组件 -->
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<!-- 定义默认约束 -->
<preferred-size width="200" height="200" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<!-- 定义分割面板组件 -->
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<!-- 定义默认约束 -->
<preferred-size width="200" height="200" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<!-- 定义微调器组件 -->
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
<!-- 定义默认约束 -->
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<!-- 定义滑块组件 -->
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
<!-- 定义默认约束 -->
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<!-- 定义分隔符组件 -->
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
<!-- 定义默认约束 -->
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<!-- 定义进度条组件 -->
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
<!-- 定义默认约束 -->
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<!-- 定义工具栏组件 -->
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<!-- 定义默认约束 -->
<preferred-size width="-1" height="20" />
<!-- 定义首选大小 -->
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<!-- 定义工具栏分隔符组件 -->
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
<!-- 定义默认约束 -->
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<!-- 定义滚动条组件 -->
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
<!-- 定义默认约束 -->
</item>
</group>
</component>

@ -1,28 +1,37 @@
package lsgwr.exam.controller;
import lsgwr.exam.qo.DownloadQo;
import lsgwr.exam.qo.UploadModel;
import lsgwr.exam.qo.UploadModel2;
import lsgwr.exam.utils.FileTransUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.io.InputStreamResource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
/***********************************************************
* @note : ,SwaggerSwaggerUI
*
* @author : 广
* * AjaxResponseEntity
* *
* * 1. - `MultipartFile`
* * 2. - `MultipartFile []`
* * 3. - `@ModelAttribute`
<?xml version="1.0" encoding="UTF-8"?>
<!-- -->
<project version="4">
<!-- -->
<component name="RemoteRepositoriesConfiguration">
<!-- -->
<remote-repository>
<!-- ID -->
<option name="id" value="central" />
<!-- -->
<option name="name" value="Central Repository" />
<!-- URL -->
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<!-- -->
<remote-repository>
<!-- ID -->
<option name="id" value="central" />
<!-- -->
<option name="name" value="Maven Central repository" />
<!-- URL -->
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<!-- -->
<remote-repository>
<!-- ID -->
<option name="id" value="jboss.community" />
<!-- -->
<option name="name" value="JBoss Community repository" />
<!-- URL -->
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
</component>
</project>3. - `@ModelAttribute`
* @version : V1.0 at 2018/7/16 20:43
***********************************************************/
@RestController

@ -1,44 +1,58 @@
events {
# 工作进程的最大连接数
worker_connections 1024;
}
http {
# 包含mime.types文件
include mime.types;
# 默认文件类型
default_type application/octet-stream;
# 开启sendfile功能
sendfile on;
# 保持连接超时时间
keepalive_timeout 65;
# 定义一个server
server {
# 监听80端口
listen 80;
# 服务器名称
server_name localhost;
# 404页面跳转
location / {
# 如果请求的文件不存在则尝试加载index.html
try_files $uri /index.html;
}
# 静态资源目录即vue打包后的dist里的静态资源
root /usr/share/nginx/html/;
# 默认首页
index index.html index.htm;
# 后端服务的配置
location /api/ {
proxy_redirect off;
# 关闭代理重定向
proxy_redirect off;
# 设置代理请求头
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# 后端服务地址
proxy_pass http://localhost:9527/api/;
}
# 错误页面
error_page 500 502 503 504 /50x.html;
# 错误页面路径
location = /50x.html {
root html;
}
}
}
}

@ -1,23 +1,34 @@
// 导出配置文件
module.exports = {
// 模块文件扩展名
moduleFileExtensions: [
'js',
'jsx',
'json',
'vue'
],
// 转换规则
transform: {
// 将.vue文件转换为jest可识别的格式
'^.+\\.vue$': 'vue-jest',
// 将.css、.styl、.less、.sass、.scss、.svg、.png、.jpg、.ttf、.woff、.woff2文件转换为stub
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
// 将.jsx、.js文件转换为babel可识别的格式
'^.+\\.jsx?$': 'babel-jest'
},
// 模块名称映射
moduleNameMapper: {
// 将../替换为<rootDir>/src/
'^../(.*)$': '<rootDir>/src/$1'
},
// 快照序列化器
snapshotSerializers: [
'jest-serializer-vue'
],
// 测试匹配规则
testMatch: [
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
],
// 测试URL
testURL: 'http://localhost/'
}
}

@ -1,6 +1,7 @@
const path = require('path')
const webpack = require('webpack')
// 定义一个函数,用于拼接路径
function resolve (dir) {
return path.join(__dirname, dir)
}
@ -21,10 +22,12 @@ module.exports = {
}
},
*/
// 配置webpack
configureWebpack: {
plugins: [
// Ignore all locale files of moment.js
// 忽略moment.js的所有locale文件
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
// 提供全局变量
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
@ -32,7 +35,9 @@ module.exports = {
]
},
// 链式调用webpack配置
chainWebpack: (config) => {
// 设置路径别名
config.resolve.alias
.set('@$', resolve('src'))
.set('@api', resolve('src/api'))
@ -43,6 +48,7 @@ module.exports = {
.set('@static', resolve('src/static'))
.set('jquery', resolve('node_modules/jquery/src/jquery'))
// 配置svg规则
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
@ -73,6 +79,7 @@ module.exports = {
*/
},
// 配置css
css: {
loaderOptions: {
less: {
@ -90,15 +97,16 @@ module.exports = {
}
},
// 配置开发服务器
devServer: {
// development server port 8000
// 开发服务器端口
port: 8000,
proxy: 'http://localhost:9527'
},
// disable source map in production
// 生产环境下禁用source map
productionSourceMap: false,
lintOnSave: undefined,
// babel-loader no-ignore node_modules/*
// babel-loader不忽略node_modules/*
transpileDependencies: []
}
}

@ -1,16 +1,23 @@
'use strict'
// 引入path模块
const path = require('path')
// 定义resolve函数用于拼接路径
function resolve (dir) {
return path.join(__dirname, '.', dir)
}
// 导出配置对象
module.exports = {
// 设置上下文路径
context: path.resolve(__dirname, './'),
// 设置解析规则
resolve: {
// 设置文件后缀名
extensions: ['.js', '.vue', '.json'],
// 设置别名
alias: {
'@': resolve('src')
}
}
}
}
Loading…
Cancel
Save