网站建设团队定制重庆电子工程职业学院招生信息网

张小明 2026/1/19 22:24:11
网站建设团队定制,重庆电子工程职业学院招生信息网,郑州网站建设公司哪家专业好,包装设计费用大概多少我们以哈米音乐为例介绍SSM聚合工程的部署 父工程 (ham-parent)#xff1a; 不写任何业务代码#xff0c;主要用于统一管理所有子模块的版本、依赖和插件#xff0c;打包方式是pom包 子模块#xff1a; ham-portal#xff1a;前台模块#xff0c;负责控制层和表现层不写任何业务代码主要用于统一管理所有子模块的版本、依赖和插件打包方式是pom包子模块ham-portal前台模块负责控制层和表现层打包方式是war包ham-core底层公用的模块负责dao和service的访问打包方式是jar包ham-console后台模块负责控制层和表现层打包方式是war包ham-file文件服务器模块打包方式是war包子模块要继承父模块父模块要聚合子模块找到 ham-parent 的右侧 maven 视图打包父工程执行 install父工程打包成功后所有子模块的打包也会自动全部打包好将这三个war包复制到 tomcat 的webapps目录下公共模块的jar包不用复制过来这是因为在 ham-portal 的 pom.xml 文件中声明了对 ham-core 的依赖dependency groupIdcom.qcby/groupId version1.0-SNAPSHOT/version artifactIdham-core/artifactId /dependency当使用 Maven 对 ham-portal 进行package打包时Maven 会去本地 Maven 仓库里找到 ham-core-1.0-SNAPSHOT.jar 这个文件自动把 ham-core-1.0-SNAPSHOT.jar 文件复制到 ham-portal.war 包内部的 WEB-INF/lib/ 目录下。Tomcat 启动后会加载 ham-portal.war并自动识别 WEB-INF/lib 目录下的所有 Jar 包这样 ham-portal 中的代码就可以顺利调用 ham-core 中的内容了。下面需要修改 tomcat 目录/conf/server.xml 文件在同一台物理服务器上用一个 Tomcat 进程运行多个独立的 Web 服务它们互不干扰拥有自己的端口和应用。?xml version1.0 encodingUTF-8? !-- 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. -- !-- Note: A Server is not itself a Container, so you may not define subcomponents such as Valves at this level. Documentation at /docs/config/server.html -- Server port8005 shutdownSHUTDOWN Listener classNameorg.apache.catalina.startup.VersionLoggerListener / !-- Security listener. Documentation at /docs/config/listeners.html Listener classNameorg.apache.catalina.security.SecurityListener / -- !--APR library loader. Documentation at /docs/apr.html -- Listener classNameorg.apache.catalina.core.AprLifecycleListener SSLEngineon / !-- Prevent memory leaks due to use of particular java/javax APIs-- Listener classNameorg.apache.catalina.core.JreMemoryLeakPreventionListener / Listener classNameorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener classNameorg.apache.catalina.core.ThreadLocalLeakPreventionListener / !-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html -- GlobalNamingResources !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource nameUserDatabase authContainer typeorg.apache.catalina.UserDatabase descriptionUser database that can be updated and saved factoryorg.apache.catalina.users.MemoryUserDatabaseFactory pathnameconf/tomcat-users.xml / /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container Note: A Service is not itself a Container, so you may not define subcomponents such as Valves at this level. Documentation at /docs/config/service.html -- Service nameCatalina !--The connectors can use a shared executor, you can define one or more named thread pools-- !-- Executor nametomcatThreadPool namePrefixcatalina-exec- maxThreads150 minSpareThreads4/ -- !-- A Connector represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL/TLS HTTP/1.1 Connector on port 8080 -- Connector port8080 protocolHTTP/1.1 connectionTimeout20000 redirectPort8443 / !-- A Connector using the shared thread pool-- !-- Connector executortomcatThreadPool port8080 protocolHTTP/1.1 connectionTimeout20000 redirectPort8443 / -- !-- Define an SSL/TLS HTTP/1.1 Connector on port 8443 This connector uses the NIO implementation. The default SSLImplementation will depend on the presence of the APR/native library and the useOpenSSL attribute of the AprLifecycleListener. Either JSSE or OpenSSL style configuration may be used regardless of the SSLImplementation selected. JSSE style configuration is used below. -- !-- Connector port8443 protocolorg.apache.coyote.http11.Http11NioProtocol maxThreads150 SSLEnabledtrue SSLHostConfig Certificate certificateKeystoreFileconf/localhost-rsa.jks typeRSA / /SSLHostConfig /Connector -- !-- Define an SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2 This connector uses the APR/native implementation which always uses OpenSSL for TLS. Either JSSE or OpenSSL style configuration may be used. OpenSSL style configuration is used below. -- !-- Connector port8443 protocolorg.apache.coyote.http11.Http11AprProtocol maxThreads150 SSLEnabledtrue UpgradeProtocol classNameorg.apache.coyote.http2.Http2Protocol / SSLHostConfig Certificate certificateKeyFileconf/localhost-rsa-key.pem certificateFileconf/localhost-rsa-cert.pem certificateChainFileconf/localhost-rsa-chain.pem typeRSA / /SSLHostConfig /Connector -- !-- Define an AJP 1.3 Connector on port 8009 -- !-- Connector protocolAJP/1.3 address::1 port8009 redirectPort8443 / -- !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html -- !-- You should set jvmRoute to support load-balancing via AJP ie : Engine nameCatalina defaultHostlocalhost jvmRoutejvm1 -- Engine nameCatalina defaultHostlocalhost !--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) -- !-- Cluster classNameorg.apache.catalina.ha.tcp.SimpleTcpCluster/ -- !-- Use the LockOutRealm to prevent attempts to guess user passwords via a brute-force attack -- Realm classNameorg.apache.catalina.realm.LockOutRealm !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Realm classNameorg.apache.catalina.realm.UserDatabaseRealm resourceNameUserDatabase/ /Realm Host namelocalhost appBasewebapps unpackWARstrue autoDeploytrue !-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -- !-- Valve classNameorg.apache.catalina.authenticator.SingleSignOn / -- !-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using patterncommon -- Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs prefixlocalhost_access_log suffix.txt pattern%h %l %u %t quot;%rquot; %s %b / /Host /Engine /Service !-- 后台项目服务 -- Service nameCatalina1 Connector port8086 protocolHTTP/1.1 connectionTimeout20000 redirectPort8443 / Connector port8010 protocolAJP/1.3 redirectPort8443 / Engine nameCatalina1 defaultHostlocalhost Realm classNameorg.apache.catalina.realm.LockOutRealm Realm classNameorg.apache.catalina.realm.UserDatabaseRealm resourceNameUserDatabase/ /Realm Host namelocalhost appBasewebapps unpackWARstrue autoDeploytrue Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs prefixlocalhost_access_log suffix.txt pattern%h %l %u %t quot;%rquot; %s %b / Context docBaseham-console-1.0-SNAPSHOT path/ reloadabletrue/ /Host /Engine /Service !-- 前台项目服务 -- Service nameCatalina2 Connector port8087 protocolHTTP/1.1 connectionTimeout20000 redirectPort8443 / Connector port8011 protocolAJP/1.3 redirectPort8443 / Engine nameCatalina2 defaultHostlocalhost Realm classNameorg.apache.catalina.realm.LockOutRealm Realm classNameorg.apache.catalina.realm.UserDatabaseRealm resourceNameUserDatabase/ /Realm Host namelocalhost appBasewebapps unpackWARstrue autoDeploytrue Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs prefixlocalhost_access_log suffix.txt pattern%h %l %u %t quot;%rquot; %s %b / Context docBaseham-portal-1.0-SNAPSHOT path/ reloadabletrue/ /Host /Engine /Service !-- 图片服务器 -- Service nameCatalina3 Connector port8085 protocolHTTP/1.1 connectionTimeout20000 redirectPort8443 / Connector port8012 protocolAJP/1.3 redirectPort8443 / Engine nameCatalina3 defaultHostlocalhost Realm classNameorg.apache.catalina.realm.LockOutRealm Realm classNameorg.apache.catalina.realm.UserDatabaseRealm resourceNameUserDatabase/ /Realm Host namelocalhost appBasewebapps unpackWARstrue autoDeploytrue Valve classNameorg.apache.catalina.valves.AccessLogValve directorylogs prefixlocalhost_access_log suffix.txt pattern%h %l %u %t quot;%rquot; %s %b / Context docBaseham-file-1.0-SNAPSHOT path/ reloadabletrue/ /Host /Engine /Service /ServerConnector 标签用于连接器负责监听来自客户端的网络请求并将响应返回给客户端HTTP 连接器的port配置监听对应端口AJP 连接器的port配置监听对应端口Context 是Web 应用的具体配置它将一个 Web 应用映射到一个 URL 路径上docBase用于指定 Web 应用的物理路径path用于指定浏览器访问时的路径名reloadable用于指定是否自动重载。进入 Tomcat 的 bin 目录点击 Windows: startup.bat 或 Linux/macOS: ./startup.sh 运行启动脚本当 Tomcat 启动时它会自动检测到 webapps 目录下的新 .war 文件并将其解压成一个同名的文件夹web.war 会被解压成 web 文件夹如下conf 目录下也会生成名为Catalina1、Catalina2、Catalina3 的服务创建专属的工作目录和日志文件这是因为 Tomcat 需要为每个独立的服务提供一个隔离的运行环境以防止它们之间相互干扰tomcat 启动成功后就可以访问该项目了该项目的后台路径为http://localhost:8086/index前台路径为http://localhost:8087/index图片服务器路径为http://localhost:8085/。
版权声明:本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

湖北 商城网站建设app开发企业

💓 博客主页:借口的CSDN主页 ⏩ 文章专栏:《热点资讯》 量化校准集动态调整实战:从静态到自适应的演进目录量化校准集动态调整实战:从静态到自适应的演进 引言:量化技术的“隐痛”与破局点 一、问题导向&am…

张小明 2026/1/17 16:35:40 网站建设

申请收费网站空间建个小型网站服务器

一、市场整体规模:全球稳步扩张,中国市场增速领跑根据QYResearch调研,2025年全球石英波片市场销售额达到了2.10亿美元,预计2032年市场规模将为2.57亿美元,2026-2032期间年复合增长率(CAGR)为2.9…

张小明 2026/1/17 16:35:43 网站建设

物流网站风格安卓app用什么软件编写

vue3的ts页面初始化模板代码 在 Vue 3 中使用 TypeScript 开发时,主要有两种编写页面的方式。以下是两种风格的模板代码,你可以根据项目需求选择使用。 📝 两种页面初始化模板 1. 标准 Composition API 写法 这种写法使用 defineComponen…

张小明 2026/1/17 16:35:44 网站建设

问答类网站怎么做怎么用vs做网站开发

✅作者简介:热爱科研的Matlab仿真开发者,擅长数据处理、建模仿真、程序设计、完整代码获取、论文复现及科研仿真。 🍎 往期回顾关注个人主页:Matlab科研工作室 🍊个人信条:格物致知,完整Matlab代码获取及仿…

张小明 2026/1/17 16:35:44 网站建设

网站后台管理系统多少钱社团网站模板

PyTorch-CUDA-v2.7镜像CI/CD流水线揭秘:自动化构建过程 在现代AI工程实践中,一个看似简单的命令——docker run --gpus all pytorch-cuda:v2.7——背后往往隐藏着一整套精密协作的系统。这条命令能顺利执行并启动一个具备GPU加速能力的深度学习环境&…

张小明 2026/1/17 16:35:45 网站建设

鞋子的网站策划方案模板网站建设合作协议书

云计算重塑测试范式 随着企业数字化转型加速,云计算已成为软件部署和运行的主流环境。根据Gartner最新预测,到2026年,超过85%的企业将采用云优先原则,而云原生架构正成为数字化创新的核心引擎。这种环境变迁深刻重构了软件测试的…

张小明 2026/1/17 16:35:45 网站建设