您可以将这些可重用的类放在一个单独的项目中,放在它们自己的特定包中,并从这些类生成一个 jar。然后可以将该 jar 放入需要使用这些类的任何其他项目的类路径中。
确保记录这些类以及如何使用它们,以便所有使用它们的项目都知道如何操作。
You would put these reusable classes in a separate project, in their own specific package, and generate a jar from these classes. This jar could then be put in the classpath of any other project that needs to use these classes.
Make sure to document these classes and how to use them, so that all the projects using them know how to do it.
发布评论
评论(1)
您可以将这些可重用的类放在一个单独的项目中,放在它们自己的特定包中,并从这些类生成一个 jar。然后可以将该 jar 放入需要使用这些类的任何其他项目的类路径中。
确保记录这些类以及如何使用它们,以便所有使用它们的项目都知道如何操作。
You would put these reusable classes in a separate project, in their own specific package, and generate a jar from these classes. This jar could then be put in the classpath of any other project that needs to use these classes.
Make sure to document these classes and how to use them, so that all the projects using them know how to do it.