首页 > 解决方案 > Export spring desktop application as jar to be used as utility

问题描述

I have created a utility as a Spring maven java project. The code is for my organisation so I cannot paste it here. I am new to spring and hence I am confused as to how the current application will be using my project. My project is a simple Java class with dependencies injected as bean. Will the application use the name of this class to instantiate it's methods?

标签: javaspring

解决方案


可能是打开你的 pom.xml 文件并检查这一行,如果 war/ear/... 将它设置为 jar

<packaging>jar</packaging>

然后再次构建你的项目,你的 jar 文件在 /target


推荐阅读