You want to confuse code when you package a category in an existing web project. Because Maven is used for management, Google found that similar plug-ins already exist. You only need to go back to the plug-in and add the corresponding configuration file. This article only makes relevant records
1. Modify Pom. XML to add a plug-in
2. Add the proguard. conf file in the Pom. xml level directory.
# Dependenc
One way to use the command line: mvn dependency:sources or MVN dependency:sources-ddownloadsources=true-ddownloadjavadocs=true, will download the source code in the same path as the jar package. If not, try clean and then OK.
Another type of,window->preference->maven-> check download artifact sources in Eclipse, and Java doc
The third is in the Pom, adding:
Tags: show through manage SRC Auto load Maven project sharing saveThe first few days into the company, because before the SVN has not used git and no one to guide, so looked up a lot of information is not in line with my project experience at the time, and finally in each article splicing useful information to solve the problem;A, the first project in the open source China's code cloud (domestic version of
end, such as the following code.Attention:In practice, if the Linux command fails on a Linux server, such as the not found command, it is executed, and the code will continue to go down. So make sure the command is correct, or use the return value to judge! The return and not called return values of the call WAITFOR () are different types.Such a download method can only rely on the download to the local MAVEN
Add Qrcode.jar to the MAVEN library
MVN install:install-file
-dgroupid= package name
-dartifactid= project name
-dversion= version number
-dpackaging=jar
The =jar file
is in Path 1, and there is a jar in the local D disk, for example: D:\QRCode.jar
2,cmd executes the mvn install command
format as:
mvn install:install-file- Dfile=
using Qrcode.jar to generate and parse two-dimensional codes
Two-dimensional
First method: Maven command download source code and JavadocsWhen using Maven in the IDE, if you want to see the source code and Javadoc of the classes in the referenced jar package need to download the source code through the MAVEN
Maven download through the source code, if there are comments are Chinese words, there will be garbled problems, the solution is as follows:Windows, Preferences, Content Types, Text---Java Source File, Default Encoding, fill UTF-8 Update, OK, restart Eclipse.The above set is the Java source file (. java) file default encoding format, extrapolate, in the same way, for example, in the text below the default f
Only need to add in the Pom.xml file1 Build>2 Finalname>MyssmFinalname>3 Specify the type of server to deploy -4 Plugins>5 6 -7 plugin>8 groupId>Org.apache.tomcat.mavengroupId>9 Artifactid>Tomcat7-maven-pluginArtifactid>Ten version>2.2version> One Configuration> A Port>8080Port> - Path>/myssmPath>
Set up the project to download source code and Javadoc through MAVEN, when browsing through the source code directly through eclipse, found that Chinese is garbled. Here's how to fix it:To modify the default encoding for the Eclipse Chinese text file: Windows->preferences->general->workspace->text files encoding is set to UTF-8;Modify the default encoding of the
First, prompt shortcut keysIdea default Shortcut is Ctrl+space, usually conflicts with other software shortcut keys, so the shortcut key is modified to alt+/Second, the format shortcut key ctrl+alt+l, usually and QQ, Tim shortcut keys conflict, please modify the QQ or Tim shortcut keys.Third, automatically clear the imported non-use package, Ctrl+alt+oIv. maven automatically relies on jar packagesIDEA hint, format
get (String ID) {return Dao.get (ID);}
/**
Get a single piece of data
@param entity
@return*/Public t get (t entity) {return Dao.get (entity);}
/**
Querying list data
@param entity
@return*/Public listreturn Dao.findlist (entity);}
/**
Querying paging data
@param page Paging Object
@param entity
@return*/Public pageEntity.setpage (page);Page.setlist (Dao.findlist (entity));return pa
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.