In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use the Spring Boot AntLib module". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn how to use the Spring Boot AntLib module.
Spring Boot AntLib module
The Spring Boot AntLib module provides basic Spring Boot support for Apache Ant, and you can use this module to create executable jars. You can use this module by adding additional spring-boot namespaces to build.xml:
...
You need to remember to use the-lib option when starting Ant, for example:
$ant-lib
Note for detailed examples, please refer to using Apache Ant with spring-boot-antlib.
Spring Boot Ant task
Once the spring-boot-antlib namespace is declared, the following tasks are available.
Spring-boot:exejar
The exejar task can be used to create a Spring Boot executable jar that supports the following attributes:
Property describes whether the destination jar file to be created by destfile is the root directory of the classesJava class file is the main class running by start-class (default is the first class found to declare the main method)
The following elements can be used with the task:
Element describes one or more Resource Collections of resources, describes the collection of resources that will be added to the created jar file, lib one or more Resource Collections, indicates the collection that needs to be added to the jar library, and constitutes the classpath dependency of the application runtime.
Example
Specify start-class
Probe start-class
Spring-boot:findmainclass
The findmainclass task is used internally by exejar to locate and declare main method classes. If necessary, you can use this task directly. The supported attributes are as follows:
Property describes whether the root directory of the classesrootJava class file is required (unless mainclass is specified) mainclass can be used to reduce the lookup of the main class No propertyAnt property must be set to result No (if it is not specified, result will log) example
Find and record
Find and set
Override and set
At this point, I believe you have a deeper understanding of "how to use the Spring Boot AntLib module". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.