diff --git a/pom.xml b/pom.xml index 826b571ab94074901ab64d346da70228ff9cdd6b..261b7dd055b10542a7d829bf9c06d87278b5312e 100644 --- a/pom.xml +++ b/pom.xml @@ -15,6 +15,7 @@ vue2-boot-ddd vue2-boot-ddd-cqrs vue2-boot-ddd-cola + vue2-boot-admin cn.codestack.vueboot diff --git a/vue2-boot-admin/pom.xml b/vue2-boot-admin/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..d426a1a3a7f2b5ecd0405389a3ba660561cd0047 --- /dev/null +++ b/vue2-boot-admin/pom.xml @@ -0,0 +1,221 @@ + + + + codestack-vue-boot-parent + cn.codestack.vueboot + 1.0-SNAPSHOT + + 4.0.0 + + vue2-boot-admin + + + 1.8 + 1.2.8 + 3.1.1 + 8 + 8 + 2.1.1 + 3.10.0 + 3.0 + 2.5 + 4.0.12 + + + + + org.springframework.boot + spring-boot-starter-web + + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + ${mybatis-boot.version} + + + + org.springframework.boot + spring-boot-starter-jdbc + + + + mysql + mysql-connector-java + + + + com.google.protobuf + protobuf-java + ${protobuf-java.version} + + + + javax.validation + validation-api + + + + org.apache.commons + commons-lang3 + ${commons-lang3.version} + + + + commons-io + commons-io + ${commons-io.version} + + + + cn.hutool + hutool-all + ${hutool-all.version} + + + + + com.alibaba + fastjson + ${fastjson.version} + + + + org.springframework.boot + spring-boot-starter-test + test + + + org.junit.vintage + junit-vintage-engine + + + + + + + + + + + org.codehaus.mojo + exec-maven-plugin + + + + exec-npm-install + package + + exec + + + npm + + install + + src/main/resources/vueboot1 + + + + + + exec-npm-run-build + package + + exec + + + npm + + run + build + + src/main/resources/vueboot1 + + + + + + org.codehaus.mojo + exec-maven-plugin + + + + exec-npm-install + package + + exec + + + npm + + install + + src/main/resources/vueboot + + + + + exec-npm-run-build + package + + exec + + + npm + + run + build + + src/main/resources/vueboot + + + + + + + org.apache.maven.plugins + maven-resources-plugin + + + copy-static-dist + validate + + copy-resources + + + src/main/resources/static/dist + true + + + src/main/resources/vueboot/dist + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + + true + src/main/resources + + mybatis/** + static/** + application.yml + + + + + + \ No newline at end of file diff --git a/vue2-boot-admin/src/main/java/cn/codestack/vueboot/admin/VueBootAdminApplication.java b/vue2-boot-admin/src/main/java/cn/codestack/vueboot/admin/VueBootAdminApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..8d2c8bc004fcaf27be01f31d939322d68aa50d84 --- /dev/null +++ b/vue2-boot-admin/src/main/java/cn/codestack/vueboot/admin/VueBootAdminApplication.java @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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 + * + * http://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. + */ + +package cn.codestack.vueboot.admin; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @author icanci + * @date Created in 2021/09/11 22:48 + * @version 1.0 + */ +@SpringBootApplication +public class VueBootAdminApplication { + public static void main(String[] args) { + SpringApplication.run(VueBootAdminApplication.class, args); + } +} diff --git a/vue2-boot-admin/src/main/resources/application.yml b/vue2-boot-admin/src/main/resources/application.yml new file mode 100644 index 0000000000000000000000000000000000000000..eeedcf0a792fb1a02adea172f73d5f271089c03d --- /dev/null +++ b/vue2-boot-admin/src/main/resources/application.yml @@ -0,0 +1,31 @@ +# Tomcat +server: + tomcat: + uri-encoding: UTF-8 + port: 9090 + servlet: + context-path: / + +logging: + config: classpath:log4j2.xml + + +#spring: +# datasource: +# driverClassName: com.mysql.cj.jdbc.Driver +# url: jdbc:mysql://127.0.0.1:3306/vueboot?useUnicode=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC +# username: root +# password: root +# servlet: +# multipart: +# max-file-size: 10MB +# max-request-size: 10MB +# resources: +# static-locations: classpath:static/,file:static/ +# data: +# mongodb: +# uri: "mongodb://localhost:27017/test" + +#mybatis: +# mapper-locations: classpath:/mybatis/mapper/*.xml +# config-location: classpath:/mybatis/config/mybatis-config.xml diff --git a/vue2-boot-admin/src/main/resources/log4j2.xml b/vue2-boot-admin/src/main/resources/log4j2.xml new file mode 100644 index 0000000000000000000000000000000000000000..6a4d3068c9f8a9ce3f35ecb1db17b05d1fee03ef --- /dev/null +++ b/vue2-boot-admin/src/main/resources/log4j2.xml @@ -0,0 +1,63 @@ + + + + + ./logs + + %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %c{1.}#%M(%L) %msg%n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vue2-boot-admin/src/main/resources/static/dist/favicon.ico b/vue2-boot-admin/src/main/resources/static/dist/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..32b90a06b5bf8465861460632f24297b843c9039 Binary files /dev/null and b/vue2-boot-admin/src/main/resources/static/dist/favicon.ico differ diff --git a/vue2-boot-admin/src/main/resources/static/dist/index.html b/vue2-boot-admin/src/main/resources/static/dist/index.html new file mode 100644 index 0000000000000000000000000000000000000000..96d35346af6ab19c59b4336a68da1887c0653004 --- /dev/null +++ b/vue2-boot-admin/src/main/resources/static/dist/index.html @@ -0,0 +1 @@ +