資源簡介
本項(xiàng)目使用java開發(fā)圖書館管理系統(tǒng),整合項(xiàng)目文檔,供學(xué)習(xí)愛好者參考。
本項(xiàng)目特點(diǎn)是從圖書管理的角度出發(fā),用集中的數(shù)據(jù)庫將幾乎所有與圖書相關(guān)的數(shù)據(jù)統(tǒng)一管理起來,形成了集成的信息源。
代碼片段和文件信息
/*
Licensed?to?the?Apache?Software?Foundation?(ASF)?under?one
or?more?contributor?license?agreements.??See?the?NOTICE?file
distributed?with?this?work?for?additional?information
regarding?copyright?ownership.??The?ASF?licenses?this?file
to?you?under?the?Apache?License?Version?2.0?(the
“License“);?you?may?not?use?this?file?except?in?compliance
with?the?License.??You?may?obtain?a?copy?of?the?License?at
??https://www.apache.org/licenses/LICENSE-2.0
Unless?required?by?applicable?law?or?agreed?to?in?writing
software?distributed?under?the?License?is?distributed?on?an
“AS?IS“?BASIS?WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY
KIND?either?express?or?implied.??See?the?License?for?the
specific?language?governing?permissions?and?limitations
under?the?License.
*/
import?java.io.File;
import?java.io.FileInputStream;
import?java.io.FileOutputStream;
import?java.io.IOException;
import?java.net.URL;
import?java.nio.channels.Channels;
import?java.nio.channels.ReadableByteChannel;
import?java.util.Properties;
public?class?MavenWrapperDownloader?{
????/**
?????*?Default?URL?to?download?the?maven-wrapper.jar?from?if?no?‘downloadUrl‘?is?provided.
?????*/
????private?static?final?String?DEFAULT_DOWNLOAD_URL?=
????????????“https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar“;
????/**
?????*?Path?to?the?maven-wrapper.properties?file?which?might?contain?a?downloadUrl?property?to
?????*?use?instead?of?the?default?one.
?????*/
????private?static?final?String?MAVEN_WRAPPER_PROPERTIES_PATH?=
????????????“.mvn/wrapper/maven-wrapper.properties“;
????/**
?????*?Path?where?the?maven-wrapper.jar?will?be?saved?to.
?????*/
????private?static?final?String?MAVEN_WRAPPER_JAR_PATH?=
????????????“.mvn/wrapper/maven-wrapper.jar“;
????/**
?????*?Name?of?the?property?which?should?be?used?to?override?the?default?download?url?for?the?wrapper.
?????*/
????private?static?final?String?PROPERTY_NAME_WRAPPER_URL?=?“wrapperUrl“;
????public?static?void?main(String?args[])?{
????????System.out.println(“-?Downloader?started“);
????????File?baseDirectory?=?new?File(args[0]);
????????System.out.println(“-?Using?base?directory:?“?+?baseDirectory.getAbsolutePath());
????????//?If?the?maven-wrapper.properties?exists?read?it?and?check?if?it?contains?a?custom
????????//?wrapperUrl?parameter.
????????File?mavenWrapperPropertyFile?=?new?File(baseDirectory?MAVEN_WRAPPER_PROPERTIES_PATH);
????????String?url?=?DEFAULT_DOWNLOAD_URL;
????????if?(mavenWrapperPropertyFile.exists())?{
????????????FileInputStream?mavenWrapperPropertyFileInputStream?=?null;
????????????try?{
????????????????mavenWrapperPropertyFileInputStream?=?new?FileInputStream(mavenWrapperPropertyFile);
????????????????Properties?mavenWrapperProperties?=?new?Properties();
????????????????mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
????????????????url?=?mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL?url);
????????????}?catch?(IOException?e)?{
????????????????Syst
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????333??2019-07-25?01:02??圖書管理系統(tǒng)源碼\booksystem-master\.gitignore
?????文件?????????10??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\.name
?????文件????????482??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\artifacts\booksystem_war.xm
?????文件???????8381??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\artifacts\booksystem_war_exploded.xm
?????文件????????821??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\compiler.xm
?????文件????????191??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\encodings.xm
?????文件????????568??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
?????文件????????547??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
?????文件????????594??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__commons_beanutils_commons_beanutils_1_8_0.xm
?????文件????????616??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__commons_collections_commons_collections_3_2_1.xm
?????文件????????525??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__commons_lang_commons_lang_2_5.xm
?????文件????????572??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__commons_logging_commons_logging_1_1_1.xm
?????文件????????522??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_fasterxm
?????文件????????644??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_fasterxm
?????文件????????595??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_fasterxm
?????文件????????623??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_fasterxm
?????文件????????674??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_fasterxm
?????文件????????688??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_fasterxm
?????文件????????729??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_fasterxm
?????文件????????561??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_github_jsqlparser_jsqlparser_0_9_4.xm
?????文件????????561??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_github_pagehelper_pagehelper_4_1_0.xm
?????文件????????673??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_github_theborakompanioni_thymeleaf_extras_shiro_2_0_0.xm
?????文件????????546??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
?????文件????????700??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
?????文件????????503??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__com_zaxxer_HikariCP_3_2_0.xm
?????文件????????611??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__javax_activation_javax_activation_api_1_2_0.xm
?????文件????????611??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xm
?????文件????????611??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xm
?????文件????????519??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__javax_xm
?????文件????????455??2020-02-14?16:31??圖書管理系統(tǒng)源碼\booksystem-master\.idea\libraries\Maven__junit_junit_4_12.xm
............此處省略4325個(gè)文件信息
評論
共有 條評論