网站百度推广怎么做的,重庆网站优化排名推广,什么是 网站的逻辑结构,安徽省建设干校学校网站文章目录一、聚合项目架构二、依赖传递图解2.1. 常见场景2.2. 企业场景三、结构设计原则3.1. 模块层次清晰3.2. 模块之间耦合度低3.3. 功能互不影响3.4. 定位问题效率高3.5. 灵活易扩展四、架构设计优点4.1. 统一规范4.2. 版本统一管理4.2.1. 模块版本统一管理4.2.2. 依赖版本统…
文章目录一、聚合项目架构二、依赖传递图解2.1. 常见场景2.2. 企业场景三、结构设计原则3.1. 模块层次清晰3.2. 模块之间耦合度低3.3. 功能互不影响3.4. 定位问题效率高3.5. 灵活易扩展四、架构设计优点4.1. 统一规范4.2. 版本统一管理4.2.1. 模块版本统一管理4.2.2. 依赖版本统一控制五、父工程构成5.1. 独有pom5.2. pom组成部分①SpringBoot 父项目② 版本控制标签 ③子工程④父项目标识⑤编译扫描插件六、子工程构成6.1. aggregation-web6.2. 常见即可一、聚合项目架构
工程结构说明父/子工程aggregation-parent全局版本控制模块父aggregation-web服务统一访问入口子aggregation-flowable工作流引擎模块子aggregation-system核心系统模块子aggregation-service业务逻辑核心模块子aggregation-interface公用API接口模块子aggregation-core公共技术核心模块子
二、依赖传递图解
2.1. 常见场景
aggregation-core-aggregation-interface-aggregation-service-aggregation-web
2.2. 企业场景
core-interface-service - flowable -web-system 三、结构设计原则
3.1. 模块层次清晰
3.2. 模块之间耦合度低
3.3. 功能互不影响
3.4. 定位问题效率高
3.5. 灵活易扩展
四、架构设计优点
4.1. 统一规范
4.2. 版本统一管理
4.2.1. 模块版本统一管理
只需在父工程设置版本号其他子工程无需再次设置版本号
4.2.2. 依赖版本统一控制
①公用依赖统一在父工程中进行版本控制其他子工程依赖传递即可 ②每个子工程独有的依赖也就是此以来只有你的模块用到在自己的模块直接集成即可。
五、父工程构成
5.1. 独有pom
5.2. pom组成部分
①SpringBoot 父项目 !--SpringBoot parent基础嘉集成初始化内置--parentgroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-parent/artifactIdversion2.2.2.RELEASE/versionrelativePath/ !-- lookup parent from repository --/parent② 版本控制标签properties /properties properties!--全局编码设置--project.build.sourceEncodingUTF-8/project.build.sourceEncodingproject.reporting.outputEncodingUTF-8/project.reporting.outputEncoding!--JDK版本--java.version1.8/java.version!--全局版本管理--mysql-connector-java.version8.0.13/mysql-connector-java.versionmaven-resources.version3.1.0/maven-resources.versionmaven-compiler-plugin.version3.8.1/maven-compiler-plugin.version/properties③子工程 !--子工程--modules!--业公共技术核心模块--moduleaggregation-core/module!--公用API接口模块--moduleaggregation-interface/module!--业务逻辑核心模块--moduleaggregation-service/module!--核心系统模块--moduleaggregation-system/module!--工作流引擎模块--moduleaggregation-flowable/module!--服务统一访问入口--moduleaggregation-web/module/modules④父项目标识 groupIdcom.gblfy/groupIdartifactIdaggregation-parent/artifactIdversion0.0.1-SNAPSHOT/version⑤编译扫描插件
buildpluginsplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-compiler-plugin/artifactIdversion3.1/versionconfigurationsource${java.version}/sourcetarget${java.version}/target/configuration/pluginplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-resources-plugin/artifactIdversion3.1.0/versionconfigurationdelimitersdelimiter/delimiter/delimitersuseDefaultDelimitersfalse/useDefaultDelimiters/configuration/plugin/pluginsresourcesresourcedirectorysrc/main/webapp/directoryfilteringfalse/filtering/resourceresourcedirectorysrc/main/resources/directoryfilteringtrue/filtering/resourceresourcedirectorysrc/main/java/directoryincludesinclude**/*.xml/include/includes/resource/resources/build六、子工程构成
6.1. aggregation-web
buildfinalName${project.artifactId}/finalNamepluginsplugingroupIdorg.springframework.boot/groupIdartifactIdspring-boot-maven-plugin/artifactIdexecutionsexecutiongoalsgoalrepackage/goal/goals/execution/executionsconfigurationforktrue/fork!-- 如果没有该项配置,devtools不会起作用即应用不会restart --/configuration/plugin/plugins/build6.2. 常见即可
此pom配置可以解决登录404问题