java - 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?
解决方案
可能是打开你的 pom.xml 文件并检查这一行,如果 war/ear/... 将它设置为 jar
<packaging>jar</packaging>
然后再次构建你的项目,你的 jar 文件在 /target
推荐阅读
- asp.net - 无法加载源 https://tc.xxx.yyy.intra/httpAuth/app/nuget/v1/FeedService.svc/ 的服务索引
- apache-spark - 用于处理多个水印的 Spark 策略
- ruby-on-rails - 使用 Webpacker 挂起的 Rails 命令
- sql - SQL 从表组中选择不同数据的数据
- java - Spring Boot 自动从 data.sql 导入 utf-8 数据
- mysql - 如何使用OWL+mysql创建语义搜索引擎
- html - 在 MVC 项目的头文件中添加模态对话框不起作用
- python - 如何在 Python 中绘制带有数据点的折线图?
- c++ - glPushMatrix() glPopMatrix() 不起作用
- javascript - 无法将画布类型图像代码转换为 SVG.js