亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - 關(guān)于第三方依賴jar的問(wèn)題
PHPz
PHPz 2017-04-18 10:42:31
0
4
494
PHPz
PHPz

學(xué)習(xí)是最好的投資!

reply all(4)
巴扎黑

1 It is trouble-free and convenient, and it must be like this in some cases, such as the storm I used. But as your project gets bigger and there are more jar packages, you will inevitably encounter jar package conflicts, telling you that the version is wrong or a certain class cannot be found. At this time, you will be confused. Didn't maven help me solve it? At this time, you have to complete one jar package after another to solve the problem, and finally modify the pom file. In addition, others have also said that method 2 only needs to update individual jar packages when updating. It is still advantageous for slow network deployment when deployed remotely. Another advantage is that you can be more familiar with the dependencies of the project, which is easier to solve problems. In short: Maven can resolve compile-time conflicts (through pom.xml), but it cannot resolve run-time dependencies and conflicts.

小葫蘆

1 Well, it saves trouble. When creating a jar, it is just compressed. When springboot is deployed, it is just created into a jar.

黃舟
  1. Easy to deploy and run, I personally think that’s it.

  2. No need to repackage when updating individual dependent libraries; the upload size is smaller when updating the application itself. Routine maintenance is more focused on this method.

阿神

Personally, I think the first method is better. It only generates one file, which is very clean and convenient for operation and maintenance deployment. Just like a web project is packaged into a war package, and all the jars it depends on are in the war package. Many companies I have experienced also adopt the first method.

Attached is also a blog of mine: http://xxgblog.com/2015/08/07... It introduces how to use the Maven packaging plug-in for the two packages you mentioned.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template