50810efa568d4a8d96887def1f8bd110.html 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <!-- 禁止百度转码 -->
  8. <meta http-equiv="Cache-Control" content="no-siteapp">
  9. <!-- uc强制竖屏 -->
  10. <meta name="screen-orientation" content="portrait">
  11. <!-- QQ强制竖屏 -->
  12. <meta name="x5-orientation" content="portrait">
  13. <title>梦想家内容管理系统部署文档_Dreamer CMS 梦想家内容管理系统</title>
  14. <meta name="Keywords" content="Dreamer CMS 梦想家内容管理系统" />
  15. <meta name="Description" content="Dreamer CMS 梦想家内容管理系统是国内首款java开发的内容发布系统,采用最流行的springboot+thymeleaf框架搭建,灵活小巧,配置简单。" />
  16. <link rel="stylesheet" href="/resources/templates/default_v2/css/iconfont/iconfont.css">
  17. <link rel="stylesheet" href="/resources/templates/default_v2/css/reset.css">
  18. <link rel="stylesheet" href="/resources/templates/default_v2/css/animate.css">
  19. <link rel="stylesheet" href="/resources/templates/default_v2/css/style.css">
  20. <link rel="stylesheet" href="/resources/templates/default_v2/css/share.min.css">
  21. <link rel="stylesheet" href="/resources/templates/default_v2/scripts/theme/default/layer.css">
  22. <script src="/resources/templates/default_v2/scripts/jquery-1.11.3.min.js"></script>
  23. <script src="/resources/templates/default_v2/scripts/jquery.SuperSlide.2.1.1.js"></script>
  24. <script src="/resources/templates/default_v2/scripts/js.js"></script>
  25. <script src="/resources/templates/default_v2/scripts/layer.js"></script>
  26. </head>
  27. <body>
  28. <div class="news-content-page">
  29. <div id="header" class="min_wrapper_1200">
  30. <div class="pull-left">
  31. <span class="item">
  32. <i class="iconfont icondianhua"></i>
  33. 官方电话:<span class="phone">15133334151</span>
  34. </span>
  35. <span class="item">
  36. <i class="iconfont iconicon-test"></i>
  37. QQ技术交流群:
  38. <span class="phone" style="margin-left: 6px;">
  39. <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=Ba41Hjymx8sei97Y9EwcREEsgww0oYG4&jump_from=webapi&authKey=ddiBUR6Dopdxifg3KDh4B1oGblfyuWebDqFWj0KLYAZFTBqXLoAMmd7jnWrN6xxp" style="color: #fff;">597652651(QQ群)</a>
  40. </span>
  41. </span>
  42. </div>
  43. <div class="pull-right">
  44. <a href="http://doc.iteachyou.cc" title="帮助文档" target="_blank">帮助文档</a>
  45. <a href="http://wpa.qq.com/msgrd?v=3&uin=153095904&site=qq&menu=yes" target="_blank">授权咨询</a>
  46. </div>
  47. </div>
  48. <div class="clearfix"></div>
  49. <div id="nav">
  50. <div class="pull-left">
  51. <a href="/" title="Dreamer CMS 梦想家内容管理系统">
  52. <img src="/resources/templates/default_v2/images/logo.png" title="Dreamer CMS 梦想家内容管理系统" alt="Dreamer CMS 梦想家内容管理系统">
  53. </a>
  54. </div>
  55. <div class="pull-right">
  56. <a class="item" href="/" title="首页">首页</a>
  57. <a class="item" href="javascript:void(0);" title="框架介绍" id="navtop_4ol61bbh">
  58. <span id="topspan_4ol61bbh">框架介绍</span>
  59. <div class="item list">
  60. <div class="itemn Navson_6rztc072" url="/htmls/banbenshuomin/list-1.html">版本说明</div>
  61. <div class="itemn Navson_mvpeun1s" url="/htmls/changjianwenti/list-1.html">常见问题</div>
  62. <div class="itemn Navson_yjug0grv" url="/htmls/xiazaizhongxin/list-1.html">下载中心</div>
  63. <div class="itemn Navson_ir1k18x0" url="/htmls/guanyuwomen/index.html">关于我们</div>
  64. </div>
  65. </a>
  66. <a class="item" href="javascript:void(0);" title="成功案例" id="navtop_he9g4d0j">
  67. <span id="topspan_he9g4d0j">成功案例</span>
  68. <div class="item list">
  69. <div class="itemn Navson_48385ou5" url="/htmls/zhengfu/list-1.html">政府</div>
  70. <div class="itemn Navson_3m1s0813" url="/htmls/xiehui/list-1.html">协会</div>
  71. <div class="itemn Navson_0723u098" url="/htmls/qiye/list-1.html">企业</div>
  72. <div class="itemn Navson_5dwqhes7" url="/htmls/xuexiao/list-1.html">学校</div>
  73. <div class="itemn Navson_v35683wr" url="/htmls/qita/list-1.html">其它</div>
  74. </div>
  75. </a>
  76. <a class="item" href="javascript:void(0);" title="解决方案" id="navtop_1hq8501w">
  77. <span id="topspan_1hq8501w">解决方案</span>
  78. <div class="item list">
  79. <div class="itemn Navson_ghx3glm1" url="/htmls/zhengfu/index.html">政府</div>
  80. <div class="itemn Navson_051fu5ij" url="/htmls/xiehui/index.html">协会</div>
  81. <div class="itemn Navson_0n629d19" url="/htmls/qiye/index.html">企业</div>
  82. <div class="itemn Navson_pqm57986" url="/htmls/xuexiao/index.html">学校</div>
  83. <div class="itemn Navson_4jh6co17" url="/htmls/qita/index.html">其它</div>
  84. </div>
  85. </a>
  86. <a class="item" href="/htmls/chanpinjiage/index.html" title="产品价格" id="navtop_76crpo3s">
  87. <span id="topspan_76crpo3s">产品价格</span>
  88. </a>
  89. <a class="item" href="http://doc.iteachyou.cc" title="参考手册" id="navtop_71e2w1xx">
  90. <span id="topspan_71e2w1xx">参考手册</span>
  91. </a>
  92. <a class="item" href="/htmls/mobanzhongxin/list-1.html" title="模版中心" id="navtop_a54547w2">
  93. <span id="topspan_a54547w2">模版中心</span>
  94. </a>
  95. <a class="item" href="javascript:void(0);" title="新闻中心" id="navtop_96nbp5pc">
  96. <span id="topspan_96nbp5pc">新闻中心</span>
  97. <div class="item list">
  98. <div class="itemn Navson_c44273d2" url="/htmls/gongsixinwen/list-1.html">公司新闻</div>
  99. <div class="itemn Navson_6j0r9qzq" url="/htmls/hangyexinwen/list-1.html">行业新闻</div>
  100. <div class="itemn Navson_zac9idyl" url="/htmls/gengxinjilu/list-1.html">更新记录</div>
  101. </div>
  102. </a>
  103. <a class="demoCenter" >演示中心
  104. <div class="demoCon">
  105. <div class="demo">
  106. <div class="whiteBg">
  107. <div class="name">梦想家演示地址及账号</div>
  108. <div class="infor">网站前台</div>
  109. <table border="1">
  110. <tr>
  111. <th width="50%">演示网址</th>
  112. <th width="25%">账号</th>
  113. <th width="25%">密码</th>
  114. </tr>
  115. <tr>
  116. <td><a href="http://cms.iteachyou.cc" target="_blank" style="color:#2a7efb;">http://cms.iteachyou.cc</a></td>
  117. <td>无</td>
  118. <td>无</td>
  119. </tr>
  120. </table>
  121. <div class="infor">后台管理系统</div>
  122. <table border="1">
  123. <tr>
  124. <th width="50%">演示网址</th>
  125. <th width="25%">账号</th>
  126. <th width="25%">密码</th>
  127. </tr>
  128. <tr>
  129. <td><a href="http://cms.iteachyou.cc/admin" target="_blank" style="color:#2a7efb;">http://cms.iteachyou.cc/admin</a></td>
  130. <td>wangjn</td>
  131. <td>123456</td>
  132. </tr>
  133. </table>
  134. <div class="showHow">
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </a>
  140. <div class="demoCenter download" target="_blank">
  141. <a href="https://gitee.com/isoftforce/dreamer_cms" target="_blank" style="color: #fff;" title="源码下载">源码下载</a>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="clearfix"></div>
  146. <style>
  147. .download table{border-color:#eee !important;}
  148. .download table tr th{background-color: #f7f7f7 !important;width: 33.3%;}
  149. .download th span{color:#666666;font-weight: bold;}
  150. </style>
  151. <script>
  152. jQuery(".itemn").click(function(){
  153. window.location.href = jQuery(this).attr("url")
  154. })
  155. </script>.
  156. <div class="publicHeader2 min_wrapper_1200" style="background:url(/resources/uploads/20230110/86a33e7b1b3049488ea00b452789c5a6.jpg) no-repeat;"></div>
  157. <div class="conter wrapper_1200">
  158. <div class="asideCon">
  159. <div class="nav">
  160. <ul class='dreamer-location'><li><a href='/' title='首页'>首页</a></li><li><a href='/htmls/xinwenzhongxin/index.html' title='新闻中心'>新闻中心</a></li><li><a href='/htmls/gengxinjilu/list-1.html' title='更新记录'>更新记录</a></li></ul>
  161. </div>
  162. <a class="home" href="javascript:window.history.go(-1);"><< 点击返回列表</a>
  163. <div class="article">
  164. <div class="name">梦想家内容管理系统部署文档</div>
  165. <div class="browse">
  166. <span class="iconfont iconliulan"></span>浏览量 0
  167. <span class="iconfont iconshijian"></span>时间 2023-01-10 09:23:25
  168. </div>
  169. <div class="articleCon">
  170. <p><section class="output_wrapper" id="output_wrapper_id" style="color: rgb(62, 62, 62); line-height: 1.6; letter-spacing: 0px; font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;"><h4 id="h" style="color: inherit; line-height: inherit; padding: 0px; margin: 1.5em 0px; font-size: 1.2em;"><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">环境准备</span></h4><ol style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">Redis</span></p></li><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">Tomcat8+</span></p></li><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">Jdk1.8+</span></p></li><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">Mysql5.5+(这里需要注意一下,Mysql5.7以上版本需要注意timestamp格式的字段设置为非必填)</span></p></li><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">IDE(Sprint tools suite4 或 Idea)</span></p></li></ol><h3 id="hjar" style="line-height: inherit; margin: 1.5em 5px 2em 0px; font-size: 1.3em; padding: 8px 15px; letter-spacing: 2px; background-image: linear-gradient(to right bottom, rgb(0, 188, 212), rgb(63, 81, 181)); background-color: rgb(63, 81, 181); color: rgb(255, 255, 255); border-left: 10px solid rgb(51, 51, 51); border-radius: 5px; text-shadow: rgb(102, 102, 102) 1px 1px 1px; box-shadow: rgb(102, 102, 102) 1px 1px 2px;"><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">Jar包部署</span></h3><ol style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">在IDE中将项目中的配置文件都修改好,然后执行maven打包命令,打包前强烈建议先clean。在Eclipse或Sprint tools suite4中打包,Console输出Success表示成功。如下图:</p><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em; text-align: center;"><img src="/resources//uploads/20230110/1673313647725017827.png" title="1673313647725017827.png" alt="1673313647725017827.png" width="1200" height="675" border="0" vspace="0" style="width: 1200px; height: 675px;"/><br/></p></li><li><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">打包完成后在项目目录下的target目录下会生成jar包,如下图</p><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em; text-align: center;"><img src="/resources//uploads/20230110/1673313674043079792.png" title="1673313674043079792.png" alt="1673313674043079792.png" width="1200" height="652" border="0" vspace="0" style="width: 1200px; height: 652px;"/><br/></p></li></ol><h4 id="hwindows" style="color: inherit; line-height: inherit; padding: 0px; margin: 1.5em 0px; font-size: 1.2em;"><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">Windows部署</span></h4><ol style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">将Jar文件复制到任意目录,建议不要在C盘,这里放在F:\Programes\目录下,如下图</p><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em; text-align: center;"><img src="/resources//uploads/20230110/1673313688141070067.png" title="1673313688141070067.png" alt="图片3.png"/><br/></p></li><li><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">在该目录按住Shift键点击鼠标右键,点击在此处打开命令窗口,如下图</p><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em; text-align: center;"><img src="/resources//uploads/20230110/1673313697531070277.png" title="1673313697531070277.png" alt="图片4.png"/><br/></p></li><li><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">在打开的命令行窗口中执行java -jar dreamer-cms.jar(如更换包名则对应修改此命令),启动如下图</p><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em; text-align: center;"><img src="/resources//uploads/20230110/1673313704722051787.png" title="1673313704722051787.png" alt="图片5.png"/><br/></p></li><li><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">运行过程中,不要关闭该命令行窗口,到此Windows部署完成,这里需要注意的是资源路径一定要正确。</p></li></ol><h4 id="hlinux" style="color: inherit; line-height: inherit; padding: 0px; margin: 1.5em 0px; font-size: 1.2em;"><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">Linux部署</span></h4><ol style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">登录XShell或CRT到Linux系统,建议在/opt下进行部署操作,在/opt目录下新建如下目录:</span></p></li></ol><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs perl" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">mkdir</span>&nbsp;programs<br/><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">mkdir</span>&nbsp;resources<br/></code></pre><ol start="2" style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">将资源文件上传到resources/站点名/目录下,如下图</p><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em; text-align: center;"><img src="/resources//uploads/20230110/1673313716298088221.png" title="1673313716298088221.png" alt="图片6.png"/><br/></p></li><li><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">打包时将application-对应环境.yml中的web.resource-path修改为/opt/resources/itechyou.cn/,如图</p><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em; text-align: center;"><img src="/resources//uploads/20230110/1673313725698046959.png" title="1673313725698046959.png" alt="图片7.png"/><br/></p></li><li><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">将打好的Jar包上传到/opt/programs/目录下,如图</p><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em; text-align: center;"><img src="/resources//uploads/20230110/1673313742553090746.png" title="1673313742553090746.png" alt="图片8.png"/><br/></p></li><li><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">Linux运行Jar一定要在后台运行,否则关闭XShell或CRT程序会停止,这里可以使用Nohup或Screen。Nohup一般的Linux都自带,如没有请参考:</p></li></ol><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs cpp" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;">https:<span class="hljs-comment" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(128, 128, 128); word-wrap: inherit !important; word-break: inherit !important;">//blog.csdn.net/weixin_43926604/article/details/96001694</span><br/></code></pre><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">Screen使用教程请参考:</p><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs cpp" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;">https:<span class="hljs-comment" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(128, 128, 128); word-wrap: inherit !important; word-break: inherit !important;">//blog.csdn.net/han0373/article/details/81352663</span><br/></code></pre><ol start="6" style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">本教程使用Screen运行,安装Screen,命令如下:</span></p></li></ol><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs nginx" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;"><span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">yum</span>&nbsp;install&nbsp;screen<br/></code></pre><ol start="7" style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p>运行Jar文件<br/>首次运行:需要使用Screen新建一个任务,命令如下</p></li></ol><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs nginx" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;"><span class="hljs-attribute" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">screen</span>&nbsp;-S&nbsp;任务名(这里建议站点名)<br/></code></pre><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">在此命令成功后,会启一个新的命令行界面,然后执行java -jar dreamer-cms.jar(如更换包名则对应修改此命令)命令即可,启动成功后退出Screen,退出一定要Ctrl + a + d<br/>如果非首次运行:则需要先使用命令screen -r 任务名(填写新建任务时指定的名字)</p><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs css" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;"><span class="hljs-selector-tag" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">screen</span>&nbsp;<span class="hljs-selector-tag" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">-r</span>&nbsp;<span class="hljs-selector-tag" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">iteachyou</span><span class="hljs-selector-class" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(165, 218, 45); word-wrap: inherit !important; word-break: inherit !important;">.cc</span><br/></code></pre><hr style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; height: 1px; margin: 1.5rem 0px; border-right: none; border-bottom: none; border-left: none; border-image: initial; border-top-style: dashed; border-top-color: rgb(165, 165, 165);"/><h3 id="hwar" style="line-height: inherit; margin: 1.5em 5px 2em 0px; font-size: 1.3em; padding: 8px 15px; letter-spacing: 2px; background-image: linear-gradient(to right bottom, rgb(0, 188, 212), rgb(63, 81, 181)); background-color: rgb(63, 81, 181); color: rgb(255, 255, 255); border-left: 10px solid rgb(51, 51, 51); border-radius: 5px; text-shadow: rgb(102, 102, 102) 1px 1px 1px; box-shadow: rgb(102, 102, 102) 1px 1px 2px;"><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">War包部署</span></h3><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">war打包,需要把Spring Boot自带的Tomcat排除掉,具体操作步骤如下</p><ol style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">添加servlet-api依赖</span></p></li></ol><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs xml" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;"><span class="hljs-comment" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(128, 128, 128); word-wrap: inherit !important; word-break: inherit !important;">&lt;!--添加servlet-api的依赖,用来打war包&nbsp;&nbsp;--&gt;</span><br/><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">dependency</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">groupId</span>&gt;</span>javax.servlet<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">groupId</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">artifactId</span>&gt;</span>javax.servlet-api<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">artifactId</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">scope</span>&gt;</span>provided<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">scope</span>&gt;</span><br/><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">dependency</span>&gt;</span><br/></code></pre><ol start="2" style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">排除SpringBoot内置的Tomcat</span></p></li></ol><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs xml" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;"><span class="hljs-comment" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(128, 128, 128); word-wrap: inherit !important; word-break: inherit !important;">&lt;!--最终打成war包,排除内置的tomcat--&gt;</span><br/><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">dependency</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">groupId</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">artifactId</span>&gt;</span>spring-boot-starter-web<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">artifactId</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">exclusions</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">exclusion</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">groupId</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">artifactId</span>&gt;</span>spring-boot-starter-tomcat<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">artifactId</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">exclusion</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">exclusions</span>&gt;</span><br/><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">dependency</span>&gt;</span><br/></code></pre><ol start="3" style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p>改造启动类<br/>修改前:</p></li></ol><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs java" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;"><span class="hljs-meta" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(91, 218, 237); word-wrap: inherit !important; word-break: inherit !important;">@EnableTransactionManagement</span><br/><span class="hljs-meta" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(91, 218, 237); word-wrap: inherit !important; word-break: inherit !important;">@SpringBootApplication</span><br/><span class="hljs-meta" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(91, 218, 237); word-wrap: inherit !important; word-break: inherit !important;">@MapperScan</span>(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&quot;cn.itechyou.cms.dao&quot;</span>)<br/><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">public</span>&nbsp;<span class="hljs-class" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">class</span>&nbsp;<span class="hljs-title" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(165, 218, 45); word-wrap: inherit !important; word-break: inherit !important;">DreamerCMSApplication</span></span>{<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; overflow-wrap: inherit !important; word-break: inherit !important;">public</span>&nbsp;<span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; overflow-wrap: inherit !important; word-break: inherit !important;">static</span>&nbsp;<span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; overflow-wrap: inherit !important; word-break: inherit !important;">void</span>&nbsp;<span class="hljs-title" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(165, 218, 45); word-wrap: inherit !important; word-break: inherit !important;">main</span><span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(255, 152, 35); word-wrap: inherit !important; word-break: inherit !important;">(String[]&nbsp;args)</span>&nbsp;</span>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SpringApplication.run(DreamerCMSApplication.class,args);<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>}<br/></code></pre><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">修改后:</p><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs java" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;"><span class="hljs-meta" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(91, 218, 237); word-wrap: inherit !important; word-break: inherit !important;">@EnableTransactionManagement</span><br/><span class="hljs-meta" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(91, 218, 237); word-wrap: inherit !important; word-break: inherit !important;">@SpringBootApplication</span><br/><span class="hljs-meta" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(91, 218, 237); word-wrap: inherit !important; word-break: inherit !important;">@MapperScan</span>(<span class="hljs-string" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(238, 220, 112); word-wrap: inherit !important; word-break: inherit !important;">&quot;cn.itechyou.cms.dao&quot;</span>)<br/><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">public</span>&nbsp;<span class="hljs-class" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">class</span>&nbsp;<span class="hljs-title" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(165, 218, 45); word-wrap: inherit !important; word-break: inherit !important;">DreamerCMSApplication</span>&nbsp;<span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">extends</span>&nbsp;<span class="hljs-title" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(165, 218, 45); word-wrap: inherit !important; word-break: inherit !important;">SpringBootServletInitializer</span>&nbsp;</span>{<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; overflow-wrap: inherit !important; word-break: inherit !important;">public</span>&nbsp;<span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; overflow-wrap: inherit !important; word-break: inherit !important;">static</span>&nbsp;<span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; overflow-wrap: inherit !important; word-break: inherit !important;">void</span>&nbsp;<span class="hljs-title" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(165, 218, 45); word-wrap: inherit !important; word-break: inherit !important;">main</span><span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(255, 152, 35); word-wrap: inherit !important; word-break: inherit !important;">(String[]&nbsp;args)</span>&nbsp;</span>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SpringApplication.run(DreamerCMSApplication.class,args);<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-meta" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(91, 218, 237); word-wrap: inherit !important; word-break: inherit !important;">@Override</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-function" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;"><span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; overflow-wrap: inherit !important; word-break: inherit !important;">protected</span>&nbsp;SpringApplicationBuilder&nbsp;<span class="hljs-title" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(165, 218, 45); word-wrap: inherit !important; word-break: inherit !important;">configure</span><span class="hljs-params" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(255, 152, 35); word-wrap: inherit !important; word-break: inherit !important;">(SpringApplicationBuilder&nbsp;builder)</span>&nbsp;</span>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">return</span>&nbsp;builder.sources(DreamerCMSApplication.class);<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>}<br/></code></pre><ol start="4" style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">在pom.xml中添加maven编译插件</span></p></li></ol><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs xml" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;"><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">build</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">plugins</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">plugin</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">groupId</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">artifactId</span>&gt;</span>spring-boot-maven-plugin<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">artifactId</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">plugin</span>&gt;</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">plugins</span>&gt;</span><br/><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">build</span>&gt;</span><br/></code></pre><ol start="5" style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">修改pom.xml打包方式为war</span></p></li></ol><pre style="font-size: inherit; color: inherit; line-height: inherit; margin-top: 0px; margin-bottom: 0px; padding: 0px;"><code class="hljs xml" style="margin: 0px 2px; line-height: 18px; font-size: 14px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: rgb(169, 183, 198); background: rgb(40, 43, 46); padding: 0.5em; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important;"><span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">packaging</span>&gt;</span>war<span class="hljs-tag" style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px; word-wrap: inherit !important; word-break: inherit !important;">&lt;/<span class="hljs-name" style="font-size: inherit; line-height: inherit; margin: 0px; padding: 0px; color: rgb(248, 35, 117); word-wrap: inherit !important; word-break: inherit !important;">packaging</span>&gt;</span><br/></code></pre><ol start="6" style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px 0px 0px 32px;" class=" list-paddingleft-2"><li><p><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">然后执行打包命令(还是先clean再install)打包成功后在项目目录下的target目录下会生成war包。</span></p></li></ol><h4 id="hwindows-1" style="color: inherit; line-height: inherit; padding: 0px; margin: 1.5em 0px; font-size: 1.2em;"><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">Windows部署</span></h4><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">下载Tomcat解压,将war包复制到webapps目录下,启动tomcat即可。</p><h4 id="hlinux-1" style="color: inherit; line-height: inherit; padding: 0px; margin: 1.5em 0px; font-size: 1.2em;"><span style="font-size: inherit; color: inherit; line-height: inherit; margin: 0px; padding: 0px;">Linux部署</span></h4><p style="font-size: inherit; color: inherit; line-height: inherit; padding: 0px; margin-top: 1.5em; margin-bottom: 1.5em;">下载Tomcat解压,将war包上传到webapps目录下,启动tomcat即可。</p></section><p><br/></p><p><br/>
  171. <br>
  172. <ul class='dreamer-prevnext'><li class='dreamer-prev'><span class='dreamer-prevnext-label'>上一篇:没有了</span><li class='dreamer-next'><span class='dreamer-prevnext-label'>下一篇:</span><a href='/htmls/gengxinjilu/20230110/c4abe7b7a3b943a7a4a3a48533a6aa50.html' title='梦想家内容管理系统v4.0.0发布了'>梦想家内容管理系统v4.0.0发布了</a></li></ul>
  173. </div>
  174. <div class="share pull-right">
  175. <div class="dis">分享:</div>
  176. <div id="share-2" class="dis"></div>
  177. </div>
  178. </div>
  179. <div class="clearfix"></div>
  180. <div class="recommend">
  181. <div class="title">推荐阅读</div>
  182. <div class="publicList">
  183. <div class="item details" data-id="1a1314addf3443a68bc0922749524d0c">
  184. <div class="pictrue dis" ><a href="/htmls/gongsixinwen/20230110/1a1314addf3443a68bc0922749524d0c.html"><img src="http://localhost:8888/resources/uploads//20230110/3eb507aab5b343c8b5d3ea1784974774.jpg"></a></div>
  185. <div class="text dis">
  186. <div class="name"><a href="/htmls/gongsixinwen/20230110/1a1314addf3443a68bc0922749524d0c.html">二、资源目录和代码之间的关系</a></div>
  187. <div class="icons">
  188. <span class="iconfont iconshijian"></span>01-10 09:26:48
  189. <span class="iconfont iconliulan"></span>28
  190. </div>
  191. <div class="infor"><a href="/htmls/gongsixinwen/20230110/1a1314addf3443a68bc0922749524d0c.html">DreamerCMS(梦想家CMS内容管理系统)公开解决了快速搭建展示型网站(如:企业官网、技术博客、信息门户等)的框架体系,是电子政务、电信综合门户...</a></div>
  192. </div>
  193. </div>
  194. <div class="item details" data-id="b004ec8e2fb84b6a82141dabcc1962e0">
  195. <div class="pictrue dis" ><a href="/htmls/gongsixinwen/20230110/b004ec8e2fb84b6a82141dabcc1962e0.html"><img src="http://localhost:8888/resources/uploads//20230110/787877175d2e44f6947877a73c3f2137.jpg"></a></div>
  196. <div class="text dis">
  197. <div class="name"><a href="/htmls/gongsixinwen/20230110/b004ec8e2fb84b6a82141dabcc1962e0.html">一、开发环境搭建及项目导入</a></div>
  198. <div class="icons">
  199. <span class="iconfont iconshijian"></span>01-10 09:25:31
  200. <span class="iconfont iconliulan"></span>6
  201. </div>
  202. <div class="infor"><a href="/htmls/gongsixinwen/20230110/b004ec8e2fb84b6a82141dabcc1962e0.html">DreamerCMS(梦想家CMS内容管理系统)公开解决了快速搭建展示型网站(如:企业官网、技术博客、信息门户等)的框架体系,是电子政务、电信综合门户...</a></div>
  203. </div>
  204. </div>
  205. <div class="item details" data-id="50810efa568d4a8d96887def1f8bd110">
  206. <div class="pictrue dis" ><a href="/htmls/gengxinjilu/20230110/50810efa568d4a8d96887def1f8bd110.html"><img src="http://localhost:8888/resources/uploads//20230110/7851bcec99644c0b9f0c46aa5f0787ad.jpg"></a></div>
  207. <div class="text dis">
  208. <div class="name"><a href="/htmls/gengxinjilu/20230110/50810efa568d4a8d96887def1f8bd110.html">梦想家内容管理系统部署文档</a></div>
  209. <div class="icons">
  210. <span class="iconfont iconshijian"></span>01-10 09:23:25
  211. <span class="iconfont iconliulan"></span>0
  212. </div>
  213. <div class="infor"><a href="/htmls/gengxinjilu/20230110/50810efa568d4a8d96887def1f8bd110.html"></a></div>
  214. </div>
  215. </div>
  216. <div class="item details" data-id="c4abe7b7a3b943a7a4a3a48533a6aa50">
  217. <div class="pictrue dis" ><a href="/htmls/gengxinjilu/20230110/c4abe7b7a3b943a7a4a3a48533a6aa50.html"><img src="http://localhost:8888/resources/uploads//20230110/35d0b73f35fd4b1ba6c2d664f56d4853.jpg"></a></div>
  218. <div class="text dis">
  219. <div class="name"><a href="/htmls/gengxinjilu/20230110/c4abe7b7a3b943a7a4a3a48533a6aa50.html">梦想家内容管理系统v4.0.0发布了</a></div>
  220. <div class="icons">
  221. <span class="iconfont iconshijian"></span>01-10 09:11:45
  222. <span class="iconfont iconliulan"></span>1
  223. </div>
  224. <div class="infor"><a href="/htmls/gengxinjilu/20230110/c4abe7b7a3b943a7a4a3a48533a6aa50.html">免费完整开源:基于MIT协议,源代码完全开源;标签化建站:不需要专业的后台开发技能,只要使用系统提供的标签,就能轻松建设网站;模版开发方便:支持在线上...</a></div>
  225. </div>
  226. </div>
  227. <div class="item details" data-id="d33c271fbeef4f529a107500ece6cc7c">
  228. <div class="pictrue dis" ><a href="/htmls/hangyexinwen/20230110/d33c271fbeef4f529a107500ece6cc7c.html"><img src="http://localhost:8888/resources/uploads//20230110/76007fadcf204426af07caa1e6c163ef.jpg"></a></div>
  229. <div class="text dis">
  230. <div class="name"><a href="/htmls/hangyexinwen/20230110/d33c271fbeef4f529a107500ece6cc7c.html">中小学管理系统开发过程中遇到的问题</a></div>
  231. <div class="icons">
  232. <span class="iconfont iconshijian"></span>01-10 08:59:06
  233. <span class="iconfont iconliulan"></span>0
  234. </div>
  235. <div class="infor"><a href="/htmls/hangyexinwen/20230110/d33c271fbeef4f529a107500ece6cc7c.html">在信息化与智能化教学环境下的课堂教学及管理模式改变是必然结果,通过信息化管理实现课堂教学模式与管理模式转变是未来发展的必然趋势,但是想要开发这样一个中...</a></div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. <div class="clearfix"></div>
  243. <div id="advers" class="min_wrapper_1200">
  244. <div class="wrapper_1200 wrapper1">免费体验后台管理系统<a href="/admin" target="_blank" title="立即体验">立即体验</a></div>
  245. </div>
  246. <div id="footer" class="min_wrapper_1200">
  247. <div class="wrapper_1200">
  248. <ul class="list">
  249. <li>
  250. <div class="name">
  251. 框架介绍
  252. </div>
  253. <a class="item" href="/htmls/banbenshuomin/list-1.html" title="版本说明">版本说明</a>
  254. <a class="item" href="/htmls/changjianwenti/list-1.html" title="常见问题">常见问题</a>
  255. <a class="item" href="/htmls/xiazaizhongxin/list-1.html" title="下载中心">下载中心</a>
  256. <a class="item" href="/htmls/guanyuwomen/index.html" title="关于我们">关于我们</a>
  257. </li>
  258. <li>
  259. <div class="name">
  260. 解决方案
  261. </div>
  262. <a class="item" href="/htmls/zhengfu/index.html" title="政府">政府</a>
  263. <a class="item" href="/htmls/xiehui/index.html" title="协会">协会</a>
  264. <a class="item" href="/htmls/qiye/index.html" title="企业">企业</a>
  265. <a class="item" href="/htmls/xuexiao/index.html" title="学校">学校</a>
  266. <a class="item" href="/htmls/qita/index.html" title="其它">其它</a>
  267. </li>
  268. <li>
  269. <div class="name">
  270. 新闻中心
  271. </div>
  272. <a class="item" href="/htmls/gongsixinwen/list-1.html" title="公司新闻">公司新闻</a>
  273. <a class="item" href="/htmls/hangyexinwen/list-1.html" title="行业新闻">行业新闻</a>
  274. <a class="item" href="/htmls/gengxinjilu/list-1.html" title="更新记录">更新记录</a>
  275. </li>
  276. <li>
  277. <div class="name">
  278. 成功案例
  279. </div>
  280. <a class="item" href="/htmls/zhengfu/list-1.html" title="政府">政府</a>
  281. <a class="item" href="/htmls/xiehui/list-1.html" title="协会">协会</a>
  282. <a class="item" href="/htmls/qiye/list-1.html" title="企业">企业</a>
  283. <a class="item" href="/htmls/xuexiao/list-1.html" title="学校">学校</a>
  284. <a class="item" href="/htmls/qita/list-1.html" title="其它">其它</a>
  285. </li>
  286. <li>
  287. <div class="name">联系方式</div>
  288. <div class="item">全国热线 :<span>15133334151</span></div>
  289. <div class="item">项目合作 :<span>153095904(QQ)</span></div>
  290. <div class="item" style="">技术交流 :
  291. <div style="width: 150px;float: right;">
  292. <span style="display: block;">
  293. <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=Ba41Hjymx8sei97Y9EwcREEsgww0oYG4&jump_from=webapi&authKey=ddiBUR6Dopdxifg3KDh4B1oGblfyuWebDqFWj0KLYAZFTBqXLoAMmd7jnWrN6xxp" style="color: #6aa6ff;">597652651(QQ群)</a>
  294. </span>
  295. </div>
  296. </div>
  297. </li>
  298. <li>
  299. <div class="name">关注我们</div>
  300. <div class="official">
  301. <img src="/resources/uploads/20230110/5464eb92f132460f86205386f93c1bb9.jpg" width="100" />
  302. <div class="ewm">
  303. <span class="iconfont iconweixin-copy"></span>官方微信
  304. </div>
  305. </div>
  306. <div class="official">
  307. <img src="/resources/uploads/20230110/dc005133cae84869896721f6c41da0f9.jpg" width="100" />
  308. <div class="ewm"><span class="iconfont iconxiaochengxu"></span>官方公众号</div>
  309. </div>
  310. </li>
  311. </ul>
  312. <div class="clearfix"></div>
  313. <div class="friendship">
  314. <a>友情链接:</a>
  315. <a href="https://www.tencent.com">腾讯会议</a>
  316. <a href="https://www.baidu.com">百度</a>
  317. <a href="https://www.iteachyou.cc">I Teach You,我教你!</a>
  318. </div>
  319. <div class="copy">
  320. <div class="pull-left">
  321. Copyright © 2018 Powered by I Teach You,我教你;Dreamer CMS 梦想家内容管理系统
  322. &nbsp;&nbsp;&nbsp;&nbsp;
  323. <a target="_blank" style="color: #ccc;" href='http://www.beian.miit.gov.cn/'>冀ICP备19026223号</a>
  324. </div>
  325. </div>
  326. </div>
  327. </div>
  328. </div>
  329. <div class="floatWindow">
  330. <div class="list">
  331. <div class="item">
  332. <span class="iconfont iconqq2"></span>
  333. <div class="itemCon qqcs">
  334. <div class="qq show">
  335. <div class="arrow"></div>
  336. <a href="http://wpa.qq.com/msgrd?v=3&uin=153095904&site=qq&menu=yes" target="_blank">
  337. <img src="/resources/templates/default_v2/images/qq2.png">
  338. 咨询在线QQ客服
  339. </a>
  340. </div>
  341. </div>
  342. </div>
  343. <div class="item">
  344. <span class="iconfont icondianhua6"></span>
  345. <div class="itemCon">
  346. <div class="phone">
  347. <div class="arrow"></div>
  348. <img src="/resources/templates/default_v2/images/phone01.png" class="dis">
  349. <div class="dis">
  350. <div class="items">服务热线</div>
  351. <div class="items num">15133334151</div>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. <div class="item">
  357. <span class="iconfont iconerweima2"></span>
  358. <div class="itemCon">
  359. <div class="ewm">
  360. <div class="pictrue">
  361. <div class="arrow"></div>
  362. <img src="/resources/uploads/20230110/5464eb92f132460f86205386f93c1bb9.jpg">
  363. </div>
  364. </div>
  365. </div>
  366. </div>
  367. <div class="item return">
  368. <span class="iconfont iconzhiding"></span>
  369. </div>
  370. </div>
  371. </div>
  372. <script src="/resources/templates/default_v2/scripts/jquery.share.min.js"></script>
  373. <script>
  374. $('#share-2').share({
  375. sites: ['wechat','qzone', 'qq', 'weibo']
  376. });
  377. </script>
  378. </body>
  379. </html>