`

Development 和 Deployment Mode

阅读更多
摘自:Pro Wicket

Modify the label User Name to User Name1 in Login.html and refresh the page; you will notice
the template now displays User Name1. Essentially, any change to the template is reflected in
the subsequent page access. Wicket checks for any changes to a template file and loads the
new one if it indeed has been modified. This is of great help during the development phase.
But you probably wouldn’t be looking for this default “feature” when deploying in production,
as it may lead to the application performing slowly.
大概意思是:
当选择Development模式时候,方便开发的,修改过后不需要重新编译,但是会影响性能,而deployment模式不方便开发,但是部署的时候还是要选择这个的。

修改:
修改web.xml
<?xml version="1.0" encoding="utf-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  	http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
	version="2.4">
	<display-name>Wicket Web Application</display-name>
 
	<filter>
		<filter-name>wicket.wicketTest</filter-name>
		<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
		<init-param>
			<param-name>applicationClassName</param-name>
			<param-value>com.yy.MyApplication</param-value>
		</init-param>
		<init-param>
 			 <param-name>configuration</param-name>
 			 <!--  <param-value>development</param-value>-->
 			 <param-value>deployment</param-value>
		</init-param>

	</filter>
 
	<filter-mapping>
		<filter-name>wicket.wicketTest</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
 
</web-app>
0
0
分享到:
评论

相关推荐

    Odoo 11 Development Essentials 3 Edition(epub)

    Chapter 1, Quick Start – The Odoo Developer Mode and Concepts, visually introduces the Odoo development concepts, creating a simple Odoo application directly from the user interface. An existing Odoo...

    Apache Axis2 Web Services, 2nd Edition.pdf

    Chapter 5, Deployment Mode - Learn about the new and user friendly deployment model and several ways of deploying a service in Axis2. Chapter 6, Information Model - Learn how Axis2 stores it static ...

    gwt 开发手册轻松入门gwt

    6. **开发模式与部署模式**:GWT有两种运行模式——开发模式(Development Mode)和部署模式(Deployment Mode)。开发模式下,GWT使用超级DevMode工具,允许快速迭代和调试;部署模式下,应用被编译成优化的...

    WidowsXPE开发指南

    开发者需要根据硬件特性和性能需求选择合适的驱动类型,并利用DDK(Driver Development Kit)进行编写和调试。 四、应用程序开发 Windows XPE支持.NET Compact Framework,允许开发人员使用C#、VB.NET等语言开发...

    Cougaar平台搭建

    首先,我们来了解Cougaar平台的调度模式(Deployment Mode)的搭建步骤: 1. **下载与安装**:访问http://cougaar.org/wp/downloads获取Cougaar12.7及tutorials压缩包,将其解压至你所创建的G:\Cougaar\cougaar...

    ddk 库和头文件 驱动开发

    DDK(Driver Development Kit)是微软提供的一套工具和文档,用于帮助开发者创建和调试设备驱动程序。DDK库和头文件是驱动开发过程中的关键组成部分,它们包含了构建驱动程序所需的函数声明、数据结构和接口定义。 ...

    医院信息系统中Oracle Data Guard部署与实践.pdf

    The deployment of Oracle Data Guard in hospital information systems involves creating a standby database that mirrors the primary database, and then using Data Guard to realize the role conversion ...

    DriverStudio2.7 Help

    4. **Driver Development Tools**:DriverStudio包含了各种开发工具,如调试器(WinDbg)、静态分析工具(Static Driver Verifier, SDV)和代码生成工具,这些工具帮助开发者检测和修复驱动程序中的问题。...

    Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications

    Service hosting and configuration are important areas for building WCF services, especially at the service deployment stage, and are detailed in this book. You will find it easy to work with WCF ...

    Docker on Windows

    Moving on, we'll cover the practical usage of Docker and the tools in the Docker ecosystem, such as Docker Compose, Docker Trusted Registry, and Docker Swarm Mode. Then, you'll be able to apply that ...

    api银行

    为工作目的创建的Api,包含一项可显示附近ATM和当天汇率的服务 安装 $ npm install 运行应用 # development $ npm run start # watch mode $ npm run start:dev # production mode $ npm run start:prod 测试 # unit...

    Oracle.Application.Express.Administration.For.DBAs.and.Developers.epub

    These are the issues that when tackled successfully lead to long term success in using Oracle APEX as a rapid application-development toolset. Readers of this book learn how to install the Oracle ...

    资讯主页-Python:资讯主页Python-Ecart Salarial Femmes-Hommes

    Projet Python不会在仪表板上交互对象,也不会在可视化工具和对象分析器之间进行交互。 母表 1-用户指南 * Serving Flask app "app" (lazy loading) * Environment: production WARNING: This is a ...

    debugging-vscode:VSCode调试简介

    一些使用不同软件包的示例:Flask和Django。 要求 Python&gt; = 3.6 安装 pip install -r requirements.txt 跑 烧瓶应用 使用Flask执行应用程序 cd flask_app python app.py 预期的输出:该应用程序在端口5000上运行 *...

    连接天天模拟器和eclipse

    - 在“Deployment Target Selection Mode”下拉框中选择“Manual”,然后在下方的“Available Devices”列表中,应该能看到刚刚创建的AVD。如果没有,点击“Refresh”按钮刷新设备列表。 7. **连接Eclipse和天天...

    汽车行业各种缩写.doc

    17. BPD:Business Plant Deployment 业务计划实施,涉及工厂的运营策略和资源分配。 18. CAD:Computer-Aided Design 计算机辅助设计,使用计算机软件进行产品设计。 19. CAE:Computer-Aided Engineering 计算机...

    serverless-prisma:AWS Serverless Prisma样板

    确保在您的计算机上安装了Docker和Make 。 Docker用于维护一致的开发/部署环境; Make用于缩短常用的Docker命令。 为本地计算机创建一个.env文件(有关配置要求,请参见~/.env.example ) 创建用于部署的环境配置...

    明智的:初始化所有事物

    -Dpf4j.mode=development 开发模式适用于大多数本地开发用例。 具体来说,插件框架pf4j查找基本./plugins路径中存在的插件。 此模式期望每个子文件夹包含一个未打包的插件(本质上是gradle子项目)。 此外,单个类...

Global site tag (gtag.js) - Google Analytics