123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <!DOCTYPE HTML>
- <html lang="en" >
- <head>
- <title>开发流程 · GitBook</title>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
- <meta name="description" content="">
- <meta name="generator" content="GitBook 3.2.0">
-
-
-
-
- <link rel="stylesheet" href="../gitbook/style.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
-
-
-
- <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <meta name="HandheldFriendly" content="true"/>
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
- <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
-
-
- </head>
- <body>
-
- <div class="book">
- <div class="book-summary">
-
-
- <div id="book-search-input" role="search">
- <input type="text" placeholder="Type to search" />
- </div>
-
- <nav role="navigation">
-
- <ul class="summary">
-
-
-
-
-
-
-
- <li class="chapter " data-level="1.1" data-path="../">
-
- <a href="../">
-
-
- Introduction
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.2" >
-
- <span>
-
-
- 项目架构
-
- </span>
-
-
- <ul class="articles">
-
-
- <li class="chapter active" data-level="1.2.1" data-path="开发流程.html">
-
- <a href="开发流程.html">
-
-
- 开发流程
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
-
- <li class="divider"></li>
- <li>
- <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
- Published with GitBook
- </a>
- </li>
- </ul>
- </nav>
-
-
- </div>
- <div class="book-body">
-
- <div class="body-inner">
-
-
- <div class="book-header" role="navigation">
-
- <!-- Title -->
- <h1>
- <i class="fa fa-circle-o-notch fa-spin"></i>
- <a href=".." >开发流程</a>
- </h1>
- </div>
- <div class="page-wrapper" tabindex="-1" role="main">
- <div class="page-inner">
-
- <div id="book-search-results">
- <div class="search-noresults">
-
- <section class="normal markdown-section">
-
- <h2 id="永天sasa平台开发流程">永天sasa平台开发流程</h2><h3 id="项目依赖管理">项目依赖管理</h3><h4 id="开发流程">开发流程</h4><ul><li><p>拉取父项目 usky-cloud-parent</p></li>
- <li><p>项目地址(<a href="http://47.111.81.118:3000/uskycloud/usky-cloud-parent.git" target="_blank">http://47.111.81.118:3000/uskycloud/usky-cloud-parent.git</a>)</p></li>
- <li><p>执行打包操作mvn clean</p></li></ul>
- <h4 id="备注">备注</h4><ul><li>所有的依赖由一个父模块来管理,只负责进行项目版本依赖的管理
- </li>
- <li>方便开发人员了解平台所有的技术和技术的版本
- </li>
- <li>更好的解决依赖冲突
- </li>
- <li><p>以后有新的组件可以在这个里面做一些扩展的延伸</p><h3 id="项目基础工具">项目基础工具</h3><h4 id="开发流程">开发流程</h4></li>
- <li><p>拉取项目usky-modules</p></li>
- <li><p>项目地址(<a href="http://47.111.81.118:3000/uskycloud/usky-modules.git" target="_blank">http://47.111.81.118:3000/uskycloud/usky-modules.git</a>)</p></li>
- <li><p>执行打包操作mvn clean</p><h4 id="主要功能">主要功能</h4></li>
- <li><p>为开发人员进行了一些基础工具类的整合</p></li>
- <li><p>使开发项目更高效</p><h4 id="核心架构">核心架构</h4></li>
- <li><p>usky-common-core</p></li>
- <li>usky_common-spring
- </li>
- <li><p>usky-common-mvn</p><h4 id="备注">备注</h4></li>
- <li><p>默认每个项目都会整合common依赖</p></li>
- <li>发现比较好的工具类可以往对应的模块里面进行整合
- </li>
- <li>功能职责要清晰,每个模块只负责自己需要整合的大分类
- </li></ul>
- <h3 id="永天服务模块">永天服务模块</h3><h4 id="项目架构">项目架构</h4><ul><li><p>usky-modules(总父模块-对项目进行统一构建和管理)</p><ul><li><p>业务父模块(对下属的api和biz进行统一管理)</p><ul><li><p>模块名-biz(业务模块)</p><ul><li>controller
- </li>
- <li>service
- </li>
- <li>domain
- </li>
- <li>mapper
- </li></ul>
- </li>
- <li><p>模块名-api(api模块,提供服务间的调用依赖)</p><ul><li>domain
- </li>
- <li>factory
- </li>
- <li>vo
- <h4 id="项目准备">项目准备</h4></li></ul>
- </li></ul>
- </li></ul>
- </li></ul>
- <ul><li><p>拉取项目</p><ul><li>项目地址(<a href="http://47.111.81.118:3000/uskycloud/usky-modules.git" target="_blank">http://47.111.81.118:3000/uskycloud/usky-modules.git</a>)
- </li>
- <li>打包项目 mvn clean
- </li></ul>
- </li>
- <li><p>生成脚手架</p><ul><li>cd usky-module-demo
- </li>
- <li>mvn archetype:create-from-project
- </li>
- <li>cd target/generated-sources/archetype/
- </li>
- <li>mvn install
- </li></ul>
- </li>
- <li><p>生成项目</p><ul><li>cd usky-module
- </li>
- <li>mvn archetype:generate -DarchetypeCatalog=local
- </li>
- <li>选择刚才生成的脚手架(usky-module-demo)
- </li>
- <li>强制规范
- <ul><li>groupId填写com.usky
- </li>
- <li>artifactId填写自己需要的'模块名'
- </li>
- <li>packpage填写com.usky.'模块名'
- </li></ul>
- </li></ul>
- </li></ul>
- <ul><li><p>修改自动生成代码配置</p><ul><li>修改rescources下的mapper.demo,把demo修改成自己的'模块名'
- </li>
- <li>找到启动类修改注解@MapperScan(value = "com.usky.demo.mapper"),把其中的'demo'改成自己的'模块名'
- </li>
- <li><p>找到MybatisGeneratorUtils</p><ul><li><img alt="img_1.png" src="img_1.png">修改对应的数据源
- </li>
- <li><img alt="img.png" src="img.png">把标红的改成上面第一步的'模块名'
- </li></ul>
- </li></ul>
- </li></ul>
-
- </section>
-
- </div>
- <div class="search-results">
- <div class="has-results">
-
- <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
- <ul class="search-results-list"></ul>
-
- </div>
- <div class="no-results">
-
- <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
-
- </div>
- </div>
- </div>
- </div>
- </div>
-
- </div>
-
-
-
-
-
- </div>
- <script>
- var gitbook = gitbook || [];
- gitbook.push(function() {
- gitbook.page.hasChanged({"page":{"title":"开发流程","level":"1.2.1","depth":2,"previous":{"title":"项目架构","level":"1.2","depth":1,"ref":"","articles":[{"title":"开发流程","level":"1.2.1","depth":2,"path":"项目架构/开发流程.md","ref":"项目架构/开发流程.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"en","gitbook":"*"},"file":{"path":"项目架构/开发流程.md","mtime":"2022-05-18T03:17:28.000Z","type":"markdown"},"gitbook":{"version":"3.2.0","time":"2022-08-10T07:27:34.606Z"},"basePath":"..","book":{"language":""}});
- });
- </script>
- </div>
-
- <script src="../gitbook/gitbook.js"></script>
- <script src="../gitbook/theme.js"></script>
-
-
- <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-search/search.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
-
-
-
- <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
-
-
- </body>
- </html>
|