hjpestore 设计实现系列

本文详细介绍了如何使用Maven和GlassFish部署基于Spring和Hibernate框架的Hjpetstore2.0应用程序。文章提供了从源代码检出、环境配置到最终部署的完整步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

关于本文

  • 本文是一篇 基于 Hibernate Spring 开源框架的 JAVA 企业应用的设计与实现说明书

  • 本文采用 开源技术 : 从基础的 load balancer Base64 工具性的代码

  • 本文面象一线工程师,内容布满源代码

  • 本文不适合 JAVA 初学者,起码要使用 Spring, Hibernate 写过至少一个实际的项目

  • 本文不会是老练的设计师的菜肴

  • 本文以 hjpetstore2.0 为例展开

 

 

获取 Hjpetstore 源代码

check out hjpetstore2 source code


Hjpetstore 配置与部署

Assumptions:

  1. you have check out hjpetstore2 source code

  2. you have installed maven

  3. you have installed glassfish and set it up according to Create GlassFish JNDI resource for hjpetstore 2.0

  4. you have completed the task described in hjpetstore2.0/src/main/resources/conf/maven-readme.txt
    (install two jar into local maven repository as they are not available in open community maven repositories)


Steps:

  1. cd to the checkout folder
    cd /home/pprun/cvsout/hjpetstore/hjpetstore2/

  2. mvn clean package -Dmaven.test.skip=true
    depends on the status of your network, it may take a while to finish at first time

 

  1. start GlassFish default domain
    /home/pprun/java/glassfish-3.0.1/bin/asadmin start-domain

 

  1. deploy it by:
    pprun@pprun-laptop:/home/pprun/java/glassfish-3.0.1/bin/asadmin deploy target/hjpetstore.war

 

  1. access the application in browser: http://localhost:8080/


    BTW, to
    undeploy it:
    pprun@pprun-laptop:asadmin undeploy

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值