bạn có thể nghĩ rằng bởi vì bạn không bao giờ được gọi là tiết kiệm () trong album không có cách nào nó có thể có thể có được tiếp tục tồn tại để cơ sở dữ liệu, phải không? Sai. Ngay sau khi bạn tải các ví dụ album, nó ngay lập tức trở thành một đối tượng "quản lý" như Hibernate là có liên quan. | CHAPTER 13 PLUGINS 391 can then provide additional named URLs of SVN repositories used for discovery and distribution. Listing 13-32 presents an example of configuring an additional plugin repository. Listing 13-32. Configuring Additional Plugin Repositories http https Notice in Listing 13-28 how Grails groups repositories under discovery and distribution. The URLs under discovery are used by the list-plugins install-plugin and plug-info commands discussed in the section on Plugin Installation to produce the plugin list that is presented to the user. The URLs under distribution are used by the release-plugin command as discussed in the previous section. By default the release-plugin command will always try to publish to the Grails central repository. To tell the release-plugin command to publish to one of the repositories configured as in Listing 13-32 you need to add the name of the repository as an argument to the release-plugin command. For example grails release-plugin -repository myRepository And with that we ve reached the end of this tour of the plugin system. As you can imagine you can take advantage of the plugin system in many different ways. In this section we ve touched on some ideas for plugins such as the simple-cache plugin and the Quartz plugin but we think the plugin system is such a critical part of the Grails ecosystem that the lessons learned in this chapter should be put to further use. In the next section you ll be applying what you ve learned so far to create two new plugins for the gTunes application. Along the way you ll discover how Grails plugins can be used as both a way to extend the functionality of an existing application and as a way to effectively modularize your codebase. Plugins in Action So you ve learned what plugins are and the basics of creating plugins. It is now time to put that knowledge to work by developing a .