| @@ -1092,6 +1092,12 @@ | |||
| "resolved": "https://registry.npmjs.org/@lzhoucs/vuetify/-/vuetify-1.5.14-modified.5.tgz", | |||
| "integrity": "sha512-joWHpldYaSBFavc9xqaQRLMB/aGYUz4MCJr5dM4HDlAZeVJQqjHak5+YBArN1O3BdOLTXIuTw4WN5BaSKBRhQw==" | |||
| }, | |||
| "@mdi/font": { | |||
| "version": "5.9.55", | |||
| "resolved": "https://registry.npmjs.org/@mdi/font/-/font-5.9.55.tgz", | |||
| "integrity": "sha512-jswRF6q3eq8NWpWiqct6q+6Fg/I7nUhrxYJfiEM8JJpap0wVJLQdbKtyS65GdlK7S7Ytnx3TTi/bmw+tBhkGmg==", | |||
| "dev": true | |||
| }, | |||
| "@mrmlnc/readdir-enhanced": { | |||
| "version": "2.2.1", | |||
| "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", | |||
| @@ -1715,6 +1721,16 @@ | |||
| "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", | |||
| "dev": true | |||
| }, | |||
| "ansi-styles": { | |||
| "version": "4.3.0", | |||
| "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", | |||
| "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "color-convert": "^2.0.1" | |||
| } | |||
| }, | |||
| "cacache": { | |||
| "version": "13.0.1", | |||
| "resolved": "https://registry.npmjs.org/cacache/-/cacache-13.0.1.tgz", | |||
| @@ -1747,6 +1763,34 @@ | |||
| "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", | |||
| "dev": true | |||
| }, | |||
| "chalk": { | |||
| "version": "4.1.0", | |||
| "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", | |||
| "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "ansi-styles": "^4.1.0", | |||
| "supports-color": "^7.1.0" | |||
| } | |||
| }, | |||
| "color-convert": { | |||
| "version": "2.0.1", | |||
| "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", | |||
| "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "color-name": "~1.1.4" | |||
| } | |||
| }, | |||
| "color-name": { | |||
| "version": "1.1.4", | |||
| "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", | |||
| "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", | |||
| "dev": true, | |||
| "optional": true | |||
| }, | |||
| "css-loader": { | |||
| "version": "3.6.0", | |||
| "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-3.6.0.tgz", | |||
| @@ -1790,6 +1834,13 @@ | |||
| } | |||
| } | |||
| }, | |||
| "has-flag": { | |||
| "version": "4.0.0", | |||
| "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", | |||
| "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", | |||
| "dev": true, | |||
| "optional": true | |||
| }, | |||
| "icss-utils": { | |||
| "version": "4.1.1", | |||
| "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-4.1.1.tgz", | |||
| @@ -1799,6 +1850,18 @@ | |||
| "postcss": "^7.0.14" | |||
| } | |||
| }, | |||
| "loader-utils": { | |||
| "version": "2.0.0", | |||
| "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", | |||
| "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "big.js": "^5.2.2", | |||
| "emojis-list": "^3.0.0", | |||
| "json5": "^2.1.2" | |||
| } | |||
| }, | |||
| "postcss-modules-extract-imports": { | |||
| "version": "2.0.0", | |||
| "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-2.0.0.tgz", | |||
| @@ -1862,6 +1925,16 @@ | |||
| "minipass": "^3.1.1" | |||
| } | |||
| }, | |||
| "supports-color": { | |||
| "version": "7.2.0", | |||
| "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", | |||
| "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "has-flag": "^4.0.0" | |||
| } | |||
| }, | |||
| "terser-webpack-plugin": { | |||
| "version": "2.3.8", | |||
| "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz", | |||
| @@ -1878,6 +1951,18 @@ | |||
| "terser": "^4.6.12", | |||
| "webpack-sources": "^1.4.3" | |||
| } | |||
| }, | |||
| "vue-loader-v16": { | |||
| "version": "npm:vue-loader@16.1.2", | |||
| "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.2.tgz", | |||
| "integrity": "sha512-8QTxh+Fd+HB6fiL52iEVLKqE9N1JSlMXLR92Ijm6g8PZrwIxckgpqjPDWRP5TWxdiPaHR+alUWsnu1ShQOwt+Q==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "chalk": "^4.1.0", | |||
| "hash-sum": "^2.0.0", | |||
| "loader-utils": "^2.0.0" | |||
| } | |||
| } | |||
| } | |||
| }, | |||
| @@ -2638,6 +2723,16 @@ | |||
| "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", | |||
| "dev": true | |||
| }, | |||
| "bindings": { | |||
| "version": "1.5.0", | |||
| "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", | |||
| "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "file-uri-to-path": "1.0.0" | |||
| } | |||
| }, | |||
| "bluebird": { | |||
| "version": "3.7.2", | |||
| "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", | |||
| @@ -5346,6 +5441,13 @@ | |||
| "schema-utils": "^2.5.0" | |||
| } | |||
| }, | |||
| "file-uri-to-path": { | |||
| "version": "1.0.0", | |||
| "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", | |||
| "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", | |||
| "dev": true, | |||
| "optional": true | |||
| }, | |||
| "filesize": { | |||
| "version": "3.6.1", | |||
| "resolved": "https://registry.npmjs.org/filesize/-/filesize-3.6.1.tgz", | |||
| @@ -7116,6 +7218,12 @@ | |||
| "object-visit": "^1.0.0" | |||
| } | |||
| }, | |||
| "material-design-icons-iconfont": { | |||
| "version": "6.1.0", | |||
| "resolved": "https://registry.npmjs.org/material-design-icons-iconfont/-/material-design-icons-iconfont-6.1.0.tgz", | |||
| "integrity": "sha512-wRJtOo1v1ch+gN8PRsj0IGJznk+kQ8mz13ds/nuhLI+Qyf/931ZlRpd92oq0IRPpZIb+bhX8pRjzIVdcPDKmiQ==", | |||
| "dev": true | |||
| }, | |||
| "md5.js": { | |||
| "version": "1.3.5", | |||
| "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", | |||
| @@ -11111,87 +11219,6 @@ | |||
| } | |||
| } | |||
| }, | |||
| "vue-loader-v16": { | |||
| "version": "npm:vue-loader@16.1.2", | |||
| "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.2.tgz", | |||
| "integrity": "sha512-8QTxh+Fd+HB6fiL52iEVLKqE9N1JSlMXLR92Ijm6g8PZrwIxckgpqjPDWRP5TWxdiPaHR+alUWsnu1ShQOwt+Q==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "chalk": "^4.1.0", | |||
| "hash-sum": "^2.0.0", | |||
| "loader-utils": "^2.0.0" | |||
| }, | |||
| "dependencies": { | |||
| "ansi-styles": { | |||
| "version": "4.3.0", | |||
| "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", | |||
| "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "color-convert": "^2.0.1" | |||
| } | |||
| }, | |||
| "chalk": { | |||
| "version": "4.1.0", | |||
| "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", | |||
| "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "ansi-styles": "^4.1.0", | |||
| "supports-color": "^7.1.0" | |||
| } | |||
| }, | |||
| "color-convert": { | |||
| "version": "2.0.1", | |||
| "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", | |||
| "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "color-name": "~1.1.4" | |||
| } | |||
| }, | |||
| "color-name": { | |||
| "version": "1.1.4", | |||
| "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", | |||
| "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", | |||
| "dev": true, | |||
| "optional": true | |||
| }, | |||
| "has-flag": { | |||
| "version": "4.0.0", | |||
| "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", | |||
| "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", | |||
| "dev": true, | |||
| "optional": true | |||
| }, | |||
| "loader-utils": { | |||
| "version": "2.0.0", | |||
| "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", | |||
| "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "big.js": "^5.2.2", | |||
| "emojis-list": "^3.0.0", | |||
| "json5": "^2.1.2" | |||
| } | |||
| }, | |||
| "supports-color": { | |||
| "version": "7.2.0", | |||
| "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", | |||
| "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "has-flag": "^4.0.0" | |||
| } | |||
| } | |||
| } | |||
| }, | |||
| "vue-router": { | |||
| "version": "3.5.1", | |||
| "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.1.tgz", | |||
| @@ -11369,6 +11396,7 @@ | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "bindings": "^1.5.0", | |||
| "nan": "^2.12.1" | |||
| } | |||
| }, | |||
| @@ -11691,6 +11719,7 @@ | |||
| "dev": true, | |||
| "optional": true, | |||
| "requires": { | |||
| "bindings": "^1.5.0", | |||
| "nan": "^2.12.1" | |||
| } | |||
| }, | |||
| @@ -18,6 +18,7 @@ | |||
| "vuetify": "^2.4.7" | |||
| }, | |||
| "devDependencies": { | |||
| "@mdi/font": "^5.9.55", | |||
| "@vue/cli-plugin-babel": "~4.5.0", | |||
| "@vue/cli-plugin-eslint": "~4.5.0", | |||
| "@vue/cli-service": "~4.5.0", | |||
| @@ -25,6 +26,7 @@ | |||
| "deepmerge": "^4.2.2", | |||
| "eslint": "^6.7.2", | |||
| "eslint-plugin-vue": "^6.2.2", | |||
| "material-design-icons-iconfont": "^6.1.0", | |||
| "sass": "^1.32.6", | |||
| "sass-loader": "^10.1.1", | |||
| "vue-cli-plugin-vuetify": "^2.1.0", | |||
| @@ -5,7 +5,7 @@ | |||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |||
| <meta name="viewport" content="width=device-width,initial-scale=1.0"> | |||
| <link rel="icon" href="<%= BASE_URL %>favicon.ico"> | |||
| <link href="https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css" rel="stylesheet"> | |||
| <!-- <link href="https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css" rel="stylesheet">--> | |||
| <title><%= htmlWebpackPlugin.options.title %></title> | |||
| </head> | |||
| @@ -12,7 +12,7 @@ | |||
| > | |||
| <v-col cols="12" align-self="center" class="d-flex"> | |||
| <v-spacer/> | |||
| <img src="obank_logo.svg"> | |||
| <img src="/rms/obank_logo.svg"> | |||
| <v-spacer/> | |||
| </v-col> | |||
| <v-col | |||
| @@ -6,7 +6,7 @@ import axios from 'axios'; | |||
| } | |||
| //在生產環境中的測試 production | |||
| if(process.env.NODE_ENV === 'production') { | |||
| axios.defaults.baseURL = '/api' | |||
| axios.defaults.baseURL = '/rms/api' | |||
| } | |||
| axios.defaults.headers.post['Content-Type'] = 'charset=utf-8'; | |||
| axios.defaults.headers.common.Pragma = 'no-cache'; | |||
| @@ -1,3 +1,4 @@ | |||
| import '@mdi/font/css/materialdesignicons.css' | |||
| import Vue from 'vue' | |||
| import Vuetify from 'vuetify/lib' | |||
| @@ -44,6 +44,7 @@ export const constantRoutes = [ | |||
| ]; | |||
| export default new Router({ | |||
| base: '/rms/', | |||
| mode: 'history', | |||
| routes: constantRoutes, | |||
| }); | |||
| @@ -27,6 +27,8 @@ module.exports= { | |||
| disableHostCheck: true, | |||
| }, | |||
| outputDir: '../src/main/resources/public/', | |||
| publicPath: '/rms/' | |||
| } | |||
| @@ -12,7 +12,7 @@ | |||
| <groupId>com.moze</groupId> | |||
| <artifactId>rms</artifactId> | |||
| <version>0.0.1-SNAPSHOT</version> | |||
| <packaging>jar</packaging> | |||
| <packaging>war</packaging> | |||
| <name>rms</name> | |||
| <properties> | |||
| @@ -116,6 +116,11 @@ | |||
| <!-- </dependency>--> | |||
| <dependency> | |||
| <groupId>org.springframework.boot</groupId> | |||
| <artifactId>spring-boot-starter-tomcat</artifactId> | |||
| <scope>provided</scope> | |||
| </dependency> | |||
| <dependency> | |||
| <groupId>org.apache.poi</groupId> | |||
| <artifactId>poi-ooxml</artifactId> | |||
| <version>4.1.0</version> | |||
| @@ -1,102 +0,0 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | |||
| <component name="FacetManager"> | |||
| <facet type="web" name="Web"> | |||
| <configuration> | |||
| <webroots /> | |||
| <sourceRoots> | |||
| <root url="file://$MODULE_DIR$/src/main/java" /> | |||
| <root url="file://$MODULE_DIR$/src/main/resources" /> | |||
| </sourceRoots> | |||
| </configuration> | |||
| </facet> | |||
| <facet type="Spring" name="Spring"> | |||
| <configuration /> | |||
| </facet> | |||
| </component> | |||
| <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> | |||
| <output url="file://$MODULE_DIR$/target/classes" /> | |||
| <output-test url="file://$MODULE_DIR$/target/test-classes" /> | |||
| <content url="file://$MODULE_DIR$"> | |||
| <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | |||
| <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> | |||
| <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> | |||
| <excludeFolder url="file://$MODULE_DIR$/target" /> | |||
| </content> | |||
| <orderEntry type="inheritedJdk" /> | |||
| <orderEntry type="sourceFolder" forTests="false" /> | |||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.4.2" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.4.2" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.4.2" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.4.2" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.4.2" level="project" /> | |||
| <orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.13.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.13.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.30" level="project" /> | |||
| <orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.27" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.4.2" level="project" /> | |||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.11.4" level="project" /> | |||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.4" level="project" /> | |||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.11.4" level="project" /> | |||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.11.4" level="project" /> | |||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.4" level="project" /> | |||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.11.4" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.4.2" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.41" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.glassfish:jakarta.el:3.0.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.41" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework:spring-web:5.3.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.3.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework:spring-context:5.3.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.3" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.4.2" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test:2.4.2" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.4.2" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.3" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:1.2" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.ow2.asm:asm:5.0.4" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.3" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: jakarta.activation:jakarta.activation-api:1.2.2" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.18.1" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest:2.2" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter:5.7.0" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-api:5.7.0" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.apiguardian:apiguardian-api:1.1.0" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.opentest4j:opentest4j:1.2.0" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-commons:1.7.0" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-params:5.7.0" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.7.0" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-engine:1.7.0" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:3.6.28" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy:1.10.19" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy-agent:1.10.19" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:3.1" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-junit-jupiter:3.6.28" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework:spring-core:5.3.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.3.3" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.springframework:spring-test:5.3.3" level="project" /> | |||
| <orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.7.0" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.jdbi:jdbi3-core:3.18.0" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.antlr:antlr4-runtime:4.7.2" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" /> | |||
| <orderEntry type="library" name="Maven: io.leangen.geantyref:geantyref:1.3.7" level="project" /> | |||
| <orderEntry type="library" name="Maven: com.github.ben-manes.caffeine:caffeine:2.8.8" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.jdbi:jdbi3-sqlobject:3.18.0" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.jdbi:jdbi3-postgres:3.18.0" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.jdbi:jdbi3-spring4:3.18.0" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.3.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.3.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.3.3" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.jdbi:jdbi3-json:3.18.0" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.postgresql:postgresql:42.2.18" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.checkerframework:checker-qual:3.5.0" level="project" /> | |||
| <orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.16" level="project" /> | |||
| </component> | |||
| </module> | |||
| @@ -0,0 +1,11 @@ | |||
| package com.moze.rms; | |||
| import org.springframework.boot.builder.SpringApplicationBuilder; | |||
| import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; | |||
| public class ServletInitializer extends SpringBootServletInitializer { | |||
| @Override | |||
| protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { | |||
| return application.sources(RmsApplication.class); | |||
| } | |||
| } | |||
| @@ -0,0 +1,191 @@ | |||
| create table account | |||
| ( | |||
| pwd nvarchar(256), | |||
| username nvarchar(256), | |||
| department nvarchar(256), | |||
| account nvarchar(256), | |||
| level nvarchar(256), | |||
| id nvarchar(256) | |||
| ) | |||
| go | |||
| create table datafile | |||
| ( | |||
| id int identity | |||
| primary key, | |||
| name nvarchar(256), | |||
| type nvarchar(256), | |||
| dataorfile nvarchar(256), | |||
| hostname nvarchar(256), | |||
| store_position nvarchar(256), | |||
| owner nvarchar(256), | |||
| keep_department nvarchar(256), | |||
| keeper nvarchar(256), | |||
| personal nvarchar(256), | |||
| expire_date nvarchar(256), | |||
| level nvarchar(256), | |||
| remark varchar(256) | |||
| ) | |||
| go | |||
| create table department | |||
| ( | |||
| department nvarchar(256) | |||
| ) | |||
| go | |||
| create table hardware | |||
| ( | |||
| id int identity | |||
| primary key, | |||
| hostname nvarchar(256), | |||
| type nvarchar(256), | |||
| descript nvarchar(256), | |||
| ip1 nvarchar(256), | |||
| ip2 nvarchar(256), | |||
| model nvarchar(256), | |||
| environment nvarchar(256), | |||
| position nvarchar(256), | |||
| position_number nvarchar(256), | |||
| amount nvarchar(256), | |||
| owner_department nvarchar(256), | |||
| keep_department nvarchar(256), | |||
| keeper nvarchar(256), | |||
| remark nvarchar(256) | |||
| ) | |||
| go | |||
| create table person | |||
| ( | |||
| name nvarchar(256), | |||
| department nvarchar(256), | |||
| type nvarchar(256), | |||
| agent nvarchar(256), | |||
| remark nvarchar(256), | |||
| id int identity | |||
| constraint person_pk | |||
| primary key nonclustered | |||
| ) | |||
| go | |||
| create unique index person_id_uindex | |||
| on person (id) | |||
| go | |||
| create table search | |||
| ( | |||
| tablename nvarchar(256), | |||
| id nvarchar(256), | |||
| text nvarchar(256) | |||
| ) | |||
| go | |||
| create table software | |||
| ( | |||
| id int identity | |||
| primary key, | |||
| name nvarchar(256), | |||
| type nvarchar(256), | |||
| hostname nvarchar(256), | |||
| software_type nvarchar(256), | |||
| environment nvarchar(256), | |||
| owner_department nvarchar(256), | |||
| keep_department nvarchar(256), | |||
| keeper nvarchar(256), | |||
| maintain_company nvarchar(256), | |||
| despcript nvarchar(256), | |||
| amount nvarchar(256), | |||
| remark nvarchar(256) | |||
| ) | |||
| go | |||
| create table mapping.mapping_col | |||
| ( | |||
| tablename nvarchar(256), | |||
| colname nvarchar(256), | |||
| descript nvarchar(256), | |||
| level nvarchar(256), | |||
| type nvarchar(256), | |||
| [index] nvarchar(256), | |||
| isselect nvarchar(256), | |||
| isrequire nvarchar(256), | |||
| issearch nvarchar(256), | |||
| isexport nvarchar(256) | |||
| ) | |||
| go | |||
| create table mapping.mapping_datafile | |||
| ( | |||
| type nvarchar(256) not null | |||
| constraint mapping_datafile_pk | |||
| primary key nonclustered, | |||
| name nvarchar(256) not null, | |||
| descript nvarchar(256), | |||
| example nvarchar(256) | |||
| ) | |||
| go | |||
| create unique index mapping_datafile_type_uindex | |||
| on mapping.mapping_datafile (type) | |||
| go | |||
| create table mapping.mapping_hardware | |||
| ( | |||
| type nvarchar(256) not null | |||
| constraint mapping_hardware_pk | |||
| primary key nonclustered, | |||
| name nvarchar(256) not null, | |||
| descript nvarchar(256), | |||
| example nvarchar(256) | |||
| ) | |||
| go | |||
| create unique index mapping_hardware_type_uindex | |||
| on mapping.mapping_hardware (type) | |||
| go | |||
| create table mapping.mapping_person | |||
| ( | |||
| type nvarchar(256) not null | |||
| constraint mapping_person_pk | |||
| primary key nonclustered, | |||
| name nvarchar(256), | |||
| descript nvarchar(256), | |||
| example nvarchar(256) | |||
| ) | |||
| go | |||
| create unique index mapping_person_type_uindex | |||
| on mapping.mapping_person (type) | |||
| go | |||
| create table mapping.mapping_software | |||
| ( | |||
| type nvarchar(256) not null | |||
| constraint mapping_software_pk | |||
| primary key nonclustered, | |||
| name nvarchar(256), | |||
| descript nvarchar(256), | |||
| example nvarchar(256) | |||
| ) | |||
| go | |||
| create unique index mapping_software_type_uindex | |||
| on mapping.mapping_software (type) | |||
| go | |||
| create table mapping.mapping_table | |||
| ( | |||
| tablename nvarchar(256), | |||
| descript nvarchar(256) | |||
| ) | |||
| go | |||
| create table mapping.selectItem | |||
| ( | |||
| tablename nvarchar(256), | |||
| colname nvarchar(256), | |||
| item nvarchar(256), | |||
| [index] int | |||
| ) | |||
| go | |||