From 93af1c6ffb9ae0e894689ad3a37b548e57d54cff Mon Sep 17 00:00:00 2001 From: linzhijie <19970921lzj> Date: 星期四, 11 三月 2021 19:10:07 +0800 Subject: [PATCH] 有注释的测评系统业务代码 --- src/main/resources/application.yml | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 52 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index bdfe337..ab5b1fc 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,78 +1,125 @@ +# 鐜閰嶇疆 server: + # 鏈嶅姟鍣ㄧ殑HTTP绔彛锛岄粯璁や负80 port: 8090 servlet: + # 搴旂敤鐨勮闂矾寰� context-path: / tomcat: + # tomcat鐨刄RI缂栫爜 uri-encoding: UTF-8 + # tomcat鏈�澶х嚎绋嬫暟锛岄粯璁や负200 max-threads: 800 + # Tomcat鍚姩鍒濆鍖栫殑绾跨▼鏁帮紝榛樿鍊�25 min-spare-threads: 30 - +# 鏃ュ織閰嶇疆 logging: level: com.ots: debug org.springframework: warn +# 鐢ㄦ埛閰嶇疆 user: password: + # 瀵嗙爜閿欒{maxRetryCount}娆¢攣瀹�10鍒嗛挓 maxRetryCount: 5 +# Spring閰嶇疆 spring: + # 妯℃澘寮曟搸 thymeleaf: mode: HTML encoding: utf-8 + # 绂佺敤缂撳瓨 cache: false + # 璧勬簮淇℃伅 messages: + # 鍥介檯鍖栬祫婧愭枃浠惰矾寰� basename: static/i18n/messages jackson: time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss profiles: - active: sand + active: online + # 鏂囦欢涓婁紶 servlet: multipart: + # 鍗曚釜鏂囦欢澶у皬 max-file-size: 10MB + # 璁剧疆鎬讳笂浼犵殑鏂囦欢澶у皬 max-request-size: 20MB + # 鏈嶅姟妯″潡 devtools: restart: + # 鐑儴缃插紑鍏� enabled: true +# MyBatis mybatis: + # 鎼滅储鎸囧畾鍖呭埆鍚� typeAliasesPackage: com.ots.project + # 閰嶇疆mapper鐨勬壂鎻忥紝鎵惧埌鎵�鏈夌殑mapper.xml鏄犲皠鏂囦欢 mapperLocations: classpath:mybatis/**/*Mapper.xml + # 鍔犺浇鍏ㄥ眬鐨勯厤缃枃浠� configLocation: classpath:mybatis/mybatis-config.xml +# PageHelper鍒嗛〉鎻掍欢 pagehelper: helperDialect: mysql reasonable: true supportMethodsArguments: true params: count=countSql +# Shiro shiro: user: + # 鐧诲綍鍦板潃 loginUrl: /login + # 鏉冮檺璁よ瘉澶辫触鍦板潃 unauthorizedUrl: /unauth + # 棣栭〉鍦板潃 indexUrl: /index + # 楠岃瘉鐮佸紑鍏� captchaEnabled: true + # 楠岃瘉鐮佺被鍨� math 鏁扮粍璁$畻 char 瀛楃 captchaType: math cookie: - domain: + # 璁剧疆Cookie鐨勫煙鍚� 榛樿绌猴紝鍗冲綋鍓嶈闂殑鍩熷悕 + domain: + # 璁剧疆cookie鐨勬湁鏁堣闂矾寰� path: / + # 璁剧疆HttpOnly灞炴�� httpOnly: true + # 璁剧疆Cookie鐨勮繃鏈熸椂闂达紝澶╀负鍗曚綅 maxAge: 30 session: + # Session瓒呮椂鏃堕棿锛堥粯璁�30鍒嗛挓锛� expireTime: 30 + # 鍚屾session鍒版暟鎹簱鐨勫懆鏈燂紙榛樿1鍒嗛挓锛� dbSyncPeriod: 1 + # 鐩搁殧澶氫箙妫�鏌ヤ竴娆ession鐨勬湁鏁堟�э紝榛樿灏辨槸10鍒嗛挓 validationInterval: 10 + # 鍚屼竴涓敤鎴锋渶澶т細璇濇暟锛屾瘮濡�2鐨勬剰鎬濇槸鍚屼竴涓处鍙峰厑璁告渶澶氬悓鏃朵袱涓汉鐧诲綍锛堥粯璁�-1涓嶉檺鍒讹級 maxSession: -1 + # 韪㈠嚭涔嬪墠鐧诲綍鐨�/涔嬪悗鐧诲綍鐨勭敤鎴凤紝榛樿韪㈠嚭涔嬪墠鐧诲綍鐨勭敤鎴� kickoutAfter: false -xss: +# 闃叉XSS鏀诲嚮 +xss: + # 杩囨护寮�鍏� enabled: true + # 鎺掗櫎閾炬帴锛堝涓敤閫楀彿鍒嗛殧锛� excludes: /system/notice/* + # 鍖归厤閾炬帴 urlPatterns: /system/*,/monitor/*,/tool/* -gen: +# 浠g爜鐢熸垚 +gen: + # 浣滆�� author: ots + # 榛樿鐢熸垚鍖呰矾寰� system 闇�鏀规垚鑷繁鐨勬ā鍧楀悕绉� 濡� system monitor tool packageName: com.ots.project + # 鑷姩鍘婚櫎琛ㄥ墠缂�锛岄粯璁ゆ槸true autoRemovePre: true + # 琛ㄥ墠缂�(绫诲悕涓嶄細鍖呭惈琛ㄥ墠缂�) tablePrefix: sys_ -- Gitblit v1.9.1