To add JAMon support in your web application.
要在您的Web应用程序中添加JAMon支持。
Listing 15. Contents of web-jamon-config.xml.
清单15.web - jamon - config . xml的内容。
Go to the directory jamon-client and type the roo command to open a roo shell.
转到目录jamon - client并输入roo命令,以打开roo shell。
Type the jamon setup command and you will see jamon being configured in your application.
输入jamonsetup命令,您将看到在您的应用程序中配置的jamon。
Go into the spring-roo-addon-jamon directory and start the spring roo shell. Then, type the following command.
转到spring -roo - addon - jamon目录并启动spring rooshell。
To meet these requirements, we will make changes in the JamonCommands class to support the jamon setup command.
为了满足这些要求,我们将更改jamoncommands类,以支持jamonsetup命令。
Once you have set up the project, you will have a directory named spring-roo-addon-jamon with just the .svn folder.
在建立了项目后,您将得到一个名为 spring-roo-addon-jamon 的目录以及 .svn 文件夹。
Then we will add one operation corresponding to the jamon setup command to do the actual work to meet the requirements.
然后我们将添加一个对应于jamonsetup命令的操作来执行实际工作,以满足要求。
It just needs to expose the jamon setup command, and the rest of the work is delegated to the JamonOperationsImpl class.
它只需要公开jamonsetup命令,剩下的工作委托jamonoperationsimpl类完成。
From these requirements, it is clear that we should write a simple add-on that can add JAMon support to any web application.
根据这些要求,显然我们应该编写简单的附加程序,能够将JAMon支持添加到任何Web应用程序。
So I decided to write an add-on that can automate the process of adding the JAMon dependency and wiring the interceptor bean.
因此我决定编写一个附加组件,它能够自动化添加JAMon依赖项和连接侦听器bean的流程。
In the web-jamon-config.xml file shown in Listing 15, we have configured everything required for jamon in a Spring-based application.
在清单15所示的web -jamon - config .xml文件中,我们已经配置了基于Spring的应用程序中的jamon所需的一切。
He started taking jamon slicing courses, and before long, he was winning slicing competitions as well as national and international awards.
于是,他就参加了西班牙特产火腿切片课程,不久之后,他就赢得了火腿切片比赛冠军,并获得了国家奖项和国际大奖。
They even have a chain restaurant called Museo de Jamon (Museum of Ham). It is very delicious to have croissant with a slice of dry ham and goat cheese.
火腿一般是风乾的,有点咸,薄薄一片配上当地的羊奶起司和可颂面包,就是让人相当满足的一餐了。
You can download the full source code of this add-on from the Google code repository. Now, let's add JAMon support to our application, using the add-on we have just created.
您可以从Google代码库下载该附加组件的完整源代码。
Pigs bred for Jamon Belota are raised free range in the oak orchards, gorging themselves on acorns that produce the rich flavour and oily texture for which the meat is known.
专门用来制作西班牙火腿的肉猪散养在橡树园里任意嚼食橡子,它们的肉质以富含油脂香味浓郁著称。
In the first section about a simple add-on, we discussed two requirements that we must meet so our add-on can configure JAMon in any Spring MVC web application. The requirements were.
在关于简单附加组件的小节中,我们讨论了两个必须满足的要求,以便使我们的附加组件能够在任何SpringMVCWeb应用程序中配置JAMon。
Once we have added the pom.xml dependency, we need to create a separate Spring configuration, web-jamon-config.xml, which will contain the bean definition for JamonPerformanceMonitorInterceptor.
在添加了 pom.xml依赖项之后,我们需要创建一个单独的Spring配置,即 web-jamon-config.xml,它包含 JamonPerformanceMonitorInterceptor 的 bean 定义。
Once we have added the pom.xml dependency, we need to create a separate Spring configuration, web-jamon-config.xml, which will contain the bean definition for JamonPerformanceMonitorInterceptor.
在添加了 pom.xml依赖项之后,我们需要创建一个单独的Spring配置,即 web-jamon-config.xml,它包含 JamonPerformanceMonitorInterceptor 的 bean 定义。
应用推荐