From 0db9d34d22500230e04ff1cbd3e1b6df150a31c9 Mon Sep 17 00:00:00 2001 From: zjh19990323 <494316527@qq.com> Date: Fri, 11 Jan 2019 15:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=A6=E7=B1=8D=E9=A1=B5=E9=9D=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 1 + shuji/shuji.js | 101 ++-- shuji/shuji.wxml | 6 +- shuji/shuji.wxss | 70 ++- 书籍信息/app.js | 3 - 书籍信息/app.json | 14 - 书籍信息/app.wxss | 73 --- 书籍信息/index.zip | Bin 2638 -> 0 bytes 书籍信息/lianjie/lianjie.js | 14 - 书籍信息/page/index/index.js | 67 -- 书籍信息/page/index/index.json | 3 - 书籍信息/page/index/index.wxml | 4 - 书籍信息/page/index/index.wxss | 1 - 书籍信息/project.config.json | 40 -- .../booksService/src/main/webapp/index.jsp | 10 +- .../target/classes/generatorConfig.xml | 102 ++-- .../booksService/target/classes/mybatis.xml | 8 +- .../target/classes/spring-mybatis.xml | 102 ++-- .../web-resources/META-INF/MANIFEST.MF | 10 +- .../edu.zxts/booksService/pom.properties | 14 +- .../maven/edu.zxts/booksService/pom.xml | 320 +++++----- 后端的都放着里面/booksSearch/pom.xml | 18 +- 后端的都放着里面/demo/.gitignore | 48 +- .../.mvn/wrapper/maven-wrapper.properties | 2 +- 后端的都放着里面/demo/mvnw | 572 +++++++++--------- 后端的都放着里面/demo/mvnw.cmd | 322 +++++----- 后端的都放着里面/demo/pom.xml | 208 +++---- .../java/com/example/demo/Dao/bookMapper.java | 28 +- .../example/demo/Dao/borrowrecordMapper.java | 50 +- .../com/example/demo/Dao/studentMapper.java | 24 +- .../com/example/demo/DemoApplication.java | 28 +- .../main/java/com/example/demo/bean/book.java | 42 +- .../com/example/demo/bean/borrowrecord.java | 44 +- .../java/com/example/demo/bean/student.java | 38 +- .../controller/searchservicecontroller.java | 18 +- .../searchservice/service/searchservice.java | 14 +- .../demo/src/main/resources/application.yml | 12 +- .../example/demo/DemoApplicationTests.java | 34 +- 后端的都放着里面/zx.sql | 212 +++---- 后端的都放着里面/zxlogin/.classpath | 44 +- 后端的都放着里面/zxlogin/.project | 96 +-- .../zxlogin/.settings/.jsdtscope | 26 +- .../org.eclipse.core.resources.prefs | 6 +- .../.settings/org.eclipse.jdt.core.prefs | 16 +- .../.settings/org.eclipse.m2e.core.prefs | 8 +- .../org.eclipse.wst.common.component | 22 +- ....eclipse.wst.common.project.facet.core.xml | 14 +- .../org.eclipse.wst.validation.prefs | 4 +- 后端的都放着里面/zxlogin/pom.xml | 306 +++++----- .../main/java/controller/LoginController.java | 112 ++-- .../zxlogin/src/main/java/domain/UserPO.java | 58 +- .../src/main/java/mapperDAO/UserDAO.java | 24 +- .../src/main/java/service/LoginService.java | 16 +- .../java/serviceimpl/LoginServiceImpl.java | 44 +- .../src/main/resources/generatorConfig.xml | 96 +-- .../src/main/resources/mapper/LoginMapper.xml | 36 +- .../zxlogin/src/main/resources/mybatis.xml | 8 +- .../src/main/resources/spring-context.xml | 20 +- .../zxlogin/src/main/resources/spring-mvc.xml | 54 +- .../src/main/resources/spring-mybatis.xml | 76 +-- .../zxlogin/src/main/webapp/WEB-INF/web.xml | 38 +- .../target/classes/generatorConfig.xml | 96 +-- .../target/classes/mapper/LoginMapper.xml | 36 +- .../zxlogin/target/classes/mybatis.xml | 8 +- .../zxlogin/target/classes/spring-context.xml | 20 +- .../zxlogin/target/classes/spring-mvc.xml | 54 +- .../zxlogin/target/classes/spring-mybatis.xml | 76 +-- .../web-resources/META-INF/MANIFEST.MF | 10 +- .../maven/zxtsglxt/zxlogin/pom.properties | 14 +- .../META-INF/maven/zxtsglxt/zxlogin/pom.xml | 42 +- 后端的都放着里面/zxnew.sql | 264 ++++---- 71 files changed, 2122 insertions(+), 2299 deletions(-) delete mode 100644 书籍信息/app.js delete mode 100644 书籍信息/app.json delete mode 100644 书籍信息/app.wxss delete mode 100644 书籍信息/index.zip delete mode 100644 书籍信息/lianjie/lianjie.js delete mode 100644 书籍信息/page/index/index.js delete mode 100644 书籍信息/page/index/index.json delete mode 100644 书籍信息/page/index/index.wxml delete mode 100644 书籍信息/page/index/index.wxss delete mode 100644 书籍信息/project.config.json diff --git a/app.json b/app.json index 154c33a..db3307d 100644 --- a/app.json +++ b/app.json @@ -1,6 +1,7 @@ { "pages": [ + "shuji/shuji", "denglu/denglu", "shouye/shouye", "chazhao/chazhao", diff --git a/shuji/shuji.js b/shuji/shuji.js index 91d40e6..d2ac78e 100644 --- a/shuji/shuji.js +++ b/shuji/shuji.js @@ -1,66 +1,37 @@ -// shuji/shuji.js -Page({ - - /** - * 页面的初始数据 - */ - data: { - - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - - } +/*onLoad: function () { + wx.request({ + url: 'https://zhenxiang.xuanjis.com', //服务器地址 + data: { + name: 'book_id'//请求参数 + }, + header: { + 'content-type': 'application/json' + }, + success: function (res) { + console.log(res.data) + } + }) +} +*/ +Component({ + /** + * 组件的属性列表 + */ + properties: { + + }, + + /** + * 组件的初始数据 + */ + data: { + + }, + + /** + * 组件的方法列表 + */ + methods: { + + } }) \ No newline at end of file diff --git a/shuji/shuji.wxml b/shuji/shuji.wxml index 5a30ed5..680e223 100644 --- a/shuji/shuji.wxml +++ b/shuji/shuji.wxml @@ -1,2 +1,4 @@ - -shuji/shuji.wxml + +书名: +书号: +作者 \ No newline at end of file diff --git a/shuji/shuji.wxss b/shuji/shuji.wxss index 5eb2deb..ed69f6d 100644 --- a/shuji/shuji.wxss +++ b/shuji/shuji.wxss @@ -1 +1,69 @@ -/* shuji/shuji.wxss */ \ No newline at end of file +/* 基础样式 */ +view,scroll-view,swiper,swiper-item,icon,text,progress,button,checkbox-group,checkbox,form,input,label,picker,radio-group,radio,slider,switch,action-sheet,action-sheet-item,action-sheet-cancel,modal,toast,loading,navigator,audio,image,video,map,canvas { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +page { + height: 100%; + font-family: -apple-system-font,Helvetica Neue,Helvetica,sans-serif; +} + + + + +checkbox-group, +radio-group{ + display:block; +} + + + + +:before, +:after , +::before, +::after{ + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.c-minheight { + min-height: 80px; +} +.c-full { + width: 100%; + height: 100%; +} +.c-block { + display: block; +} +.c-autosize { + width: auto; + height: auto; +} +.c-fullwidth { + width: 100%; +} +.c-fullheight { + height: 100%; +} +.c-initHide{ + opacity:0 !important; +} +.c-ellipse{ + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow:hidden; +} +/* 自定义样式 */ + + + + +.wx-view_3ZhLNq{transition: All 0s ease; margin-right: 150px; margin-left: 150px; transform: rotate(0deg) scale(1.6) translate(0%,43%); -ms-transform: rotate(0deg) scale(1.6) translate(0%,43%); -o-transform: rotate(0deg) scale(1.6) translate(0%,43%); -moz-transform: rotate(0deg) scale(1.6) translate(0%,43%); -webkit-transform: rotate(0deg) scale(1.6) translate(0%,43%); -ms-transition: All 0s ease; -o-transition: All 0s ease; -moz-transition: All 0s ease; -webkit-transition: All 0s ease; } +.wx-text_efNLZY{transition: All 0s ease; margin-right: 80px; margin-left: 80px; transform: rotate(0deg) scale(1.2) translate(0%,434%); -ms-transform: rotate(0deg) scale(1.2) translate(0%,434%); -o-transform: rotate(0deg) scale(1.2) translate(0%,434%); -moz-transform: rotate(0deg) scale(1.2) translate(0%,434%); -webkit-transform: rotate(0deg) scale(1.2) translate(0%,434%); -ms-transition: All 0s ease; -o-transition: All 0s ease; -moz-transition: All 0s ease; -webkit-transition: All 0s ease; } +.wx-text_07leZC{transition: All 0s ease; margin-right: 80px; margin-left: 80px; transform: rotate(0deg) scale(1.2) translate(0%,543%); -ms-transform: rotate(0deg) scale(1.2) translate(0%,543%); -o-transform: rotate(0deg) scale(1.2) translate(0%,543%); -moz-transform: rotate(0deg) scale(1.2) translate(0%,543%); -webkit-transform: rotate(0deg) scale(1.2) translate(0%,543%); -ms-transition: All 0s ease; -o-transition: All 0s ease; -moz-transition: All 0s ease; -webkit-transition: All 0s ease; } +.wx-text_MWTyqb{transition: All 0s ease; margin-right: 80px; margin-left: 80px; transform: rotate(0deg) scale(1.2) translate(0%,652%); -ms-transform: rotate(0deg) scale(1.2) translate(0%,652%); -o-transform: rotate(0deg) scale(1.2) translate(0%,652%); -moz-transform: rotate(0deg) scale(1.2) translate(0%,652%); -webkit-transform: rotate(0deg) scale(1.2) translate(0%,652%); -ms-transition: All 0s ease; -o-transition: All 0s ease; -moz-transition: All 0s ease; -webkit-transition: All 0s ease; } \ No newline at end of file diff --git a/书籍信息/app.js b/书籍信息/app.js deleted file mode 100644 index 6d8dbe8..0000000 --- a/书籍信息/app.js +++ /dev/null @@ -1,3 +0,0 @@ -App({ - -}) \ No newline at end of file diff --git a/书籍信息/app.json b/书籍信息/app.json deleted file mode 100644 index 5727d8d..0000000 --- a/书籍信息/app.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "debug": true, - "window": { - "navigationBarTextStyle": "white", - "navigationBarBackgroundColor": "#000000", - "navigationBarTitleText": "", - "backgroundColor": "#ffffff", - "enablePullDownRefresh": false, - "backgroundTextStyle": "dark" - }, - "pages": [ - "page/index/index" - ] -} \ No newline at end of file diff --git a/书籍信息/app.wxss b/书籍信息/app.wxss deleted file mode 100644 index 880e245..0000000 --- a/书籍信息/app.wxss +++ /dev/null @@ -1,73 +0,0 @@ -/* 基础样式 */ -view,scroll-view,swiper,swiper-item,icon,text,progress,button,checkbox-group,checkbox,form,input,label,picker,radio-group,radio,slider,switch,action-sheet,action-sheet-item,action-sheet-cancel,modal,toast,loading,navigator,audio,image,video,map,canvas { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -page { - height: 100%; - font-family: -apple-system-font,Helvetica Neue,Helvetica,sans-serif; -} - - - - -checkbox-group, -radio-group{ - display:block; -} - - - - -:before, -:after , -::before, -::after{ - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.c-minheight { - min-height: 80px; -} -.c-full { - width: 100%; - height: 100%; -} -.c-block { - display: block; -} -.c-autosize { - width: auto; - height: auto; -} -.c-fullwidth { - width: 100%; -} -.c-fullheight { - height: 100%; -} -.c-initHide{ - opacity:0 !important; -} -.c-ellipse{ - text-overflow: ellipsis; - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: 2; - overflow:hidden; -} -/* 自定义样式 */ - - - - -.wx-view_3ZhLNq{transition: All 0s ease; margin-right: 150px; margin-left: 150px; transform: rotate(0deg) scale(1.6) translate(0%,43%); -ms-transform: rotate(0deg) scale(1.6) translate(0%,43%); -o-transform: rotate(0deg) scale(1.6) translate(0%,43%); -moz-transform: rotate(0deg) scale(1.6) translate(0%,43%); -webkit-transform: rotate(0deg) scale(1.6) translate(0%,43%); -ms-transition: All 0s ease; -o-transition: All 0s ease; -moz-transition: All 0s ease; -webkit-transition: All 0s ease; } -.wx-text_efNLZY{transition: All 0s ease; margin-right: 80px; margin-left: 80px; transform: rotate(0deg) scale(1.2) translate(0%,434%); -ms-transform: rotate(0deg) scale(1.2) translate(0%,434%); -o-transform: rotate(0deg) scale(1.2) translate(0%,434%); -moz-transform: rotate(0deg) scale(1.2) translate(0%,434%); -webkit-transform: rotate(0deg) scale(1.2) translate(0%,434%); -ms-transition: All 0s ease; -o-transition: All 0s ease; -moz-transition: All 0s ease; -webkit-transition: All 0s ease; } -.wx-text_07leZC{transition: All 0s ease; margin-right: 80px; margin-left: 80px; transform: rotate(0deg) scale(1.2) translate(0%,543%); -ms-transform: rotate(0deg) scale(1.2) translate(0%,543%); -o-transform: rotate(0deg) scale(1.2) translate(0%,543%); -moz-transform: rotate(0deg) scale(1.2) translate(0%,543%); -webkit-transform: rotate(0deg) scale(1.2) translate(0%,543%); -ms-transition: All 0s ease; -o-transition: All 0s ease; -moz-transition: All 0s ease; -webkit-transition: All 0s ease; } -.wx-text_MWTyqb{transition: All 0s ease; margin-right: 80px; margin-left: 80px; transform: rotate(0deg) scale(1.2) translate(0%,652%); -ms-transform: rotate(0deg) scale(1.2) translate(0%,652%); -o-transform: rotate(0deg) scale(1.2) translate(0%,652%); -moz-transform: rotate(0deg) scale(1.2) translate(0%,652%); -webkit-transform: rotate(0deg) scale(1.2) translate(0%,652%); -ms-transition: All 0s ease; -o-transition: All 0s ease; -moz-transition: All 0s ease; -webkit-transition: All 0s ease; } - - - - diff --git a/书籍信息/index.zip b/书籍信息/index.zip deleted file mode 100644 index 9ba96ed70243070ff9c8372cd2b0afed4c0ac22b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2638 zcmWIWW@h1H0D+odZNH80bT)7T*&xiuAj6PYP@tDp92&yOz^wh>JO+eIE4UdLSwI@V zgkwR0Ml}~#t!4nwAQ7M_2iTymx)!Y~fjl!tkO<76{5*U{do7}JW0#r#UU}`O7i+Jj&1CMN z^-D~GbvdL~n9f^#O?~zmR_XSAsv8*Jezbr7x{h((W0#)KhvzF?oLoP9`ldS<;}h(^ z``qjP$c*aMvbh(3zhq)ySjdC$YI#L5-cUOlVx526K;YhA?Hh^?LK8Ya7f785zNqRv zYo)_Q9Y)o;Du+Z?PS_%=&T(Pwiz|D*Z*O(JzR0!S@A9|wDO1+8$9FttG8FGT{{G#* z-S1D_%`N%<@%a4n`E~Wb%D#WLy>%~_SAu6F-;^hFME*NZYm}^dd|Z;d%52pl#mUJ9|N2eS6DOWy z;at|37$h*4VMeE~W6B|+0Kpq4R`O^bcMHlb_LL4j5^;gCd*wu~%lo_!1xYc>-S81w ze&y4WBnQ)7nF~KEIe(}=BM{z|cHOM4y=JA3ar&!kJ3`{_b4Qib-9Dw$>voMLVvYp= z+pV{yw^pmPDhm2a%2#$=(0T0e#pCv`PU}PJ2iOxL94<k&AJd! zC3I1Sais*u>C0@T#V4ODTM9cc`CUHa{Co0*F26&E1X>pF-`)Ff-`}F|Uk|T;|NhnS z(`)BG4EFxZdHQs7x0~4q?pQxum|n(mON#O81y{|`jk2PlCW3EE@2r^;#us>a z#_@vu8SPU{t{h0SZmHnTjONXG_f{rXRA8Qb?t{b4y=&LW=KF?ynX=kym-N;}uOr(3 zuPKdNe!A${ywINK^UOTYGT(VtwR_>-h8J(X{P}vRO8)%B-xZo$zo%Oj>{xTBJLdiM z>cmT`Eb&ivFM0I+>TbJ}xBV^W*vB_Nnfo;VhtlGql~?5E;B(Vv&C@=*;U4Eab@aA{ zdR;qv_RMLIvp(lF0yWlOVD&sI?VkGMhp3k3i`#`arz{DZqHsm+=@a$z<|~aYkApA& zsad2nRpiaQH!U7zEsr0 zDhAZzCRe9fwgyAv@&0FmSO-^Ukz^mM(s`=av&XMS6ki}D7y zf)1K#9#(4UIQ7y<{U-mPiIQ!~DVc$1d%s?PbI1CBciO)MAr{W*#Se@2&40i1xlD@$ zoAvbh0ec#aMXQb{Ov#K~x{Ak5a7*=X@3!gtE@v;&4ZPu3S{|g?P!O3>Fqq$(Q ziRGOsJ`4-NX(2(a?FSNPPMm3|^&+xqCO`**Tn4En@tKD3C&)K2z{&tIje$Xc z;jLplupI&|NJuw|8^x%3Fr#3F3O)l7;f7kIAp7(&s)5J_3~@%I=5}PG7qddW4RI^P oXi(nAXE65g -书名: -书号: -作者 \ No newline at end of file diff --git a/书籍信息/page/index/index.wxss b/书籍信息/page/index/index.wxss deleted file mode 100644 index 192b7b0..0000000 --- a/书籍信息/page/index/index.wxss +++ /dev/null @@ -1 +0,0 @@ -/* page/index/index.wxss */ \ No newline at end of file diff --git a/书籍信息/project.config.json b/书籍信息/project.config.json deleted file mode 100644 index bed9173..0000000 --- a/书籍信息/project.config.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "description": "项目配置文件", - "packOptions": { - "ignore": [] - }, - "setting": { - "urlCheck": true, - "es6": true, - "postcss": true, - "minified": true, - "newFeature": true, - "autoAudits": false - }, - "compileType": "miniprogram", - "libVersion": "2.5.0", - "appid": "wxb280d1925541c356", - "projectname": "7", - "debugOptions": { - "hidedInDevtools": [] - }, - "isGameTourist": false, - "condition": { - "search": { - "current": -1, - "list": [] - }, - "conversation": { - "current": -1, - "list": [] - }, - "game": { - "currentL": -1, - "list": [] - }, - "miniprogram": { - "current": -1, - "list": [] - } - } -} \ No newline at end of file diff --git a/后端的都放着里面/booksSearch/booksService/src/main/webapp/index.jsp b/后端的都放着里面/booksSearch/booksService/src/main/webapp/index.jsp index c38169b..6f07b72 100644 --- a/后端的都放着里面/booksSearch/booksService/src/main/webapp/index.jsp +++ b/后端的都放着里面/booksSearch/booksService/src/main/webapp/index.jsp @@ -1,5 +1,5 @@ - - -

Hello World!

- - + + +

Hello World!

+ + diff --git a/后端的都放着里面/booksSearch/booksService/target/classes/generatorConfig.xml b/后端的都放着里面/booksSearch/booksService/target/classes/generatorConfig.xml index 3b321a6..874e735 100644 --- a/后端的都放着里面/booksSearch/booksService/target/classes/generatorConfig.xml +++ b/后端的都放着里面/booksSearch/booksService/target/classes/generatorConfig.xml @@ -1,52 +1,52 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
\ No newline at end of file diff --git a/后端的都放着里面/booksSearch/booksService/target/classes/mybatis.xml b/后端的都放着里面/booksSearch/booksService/target/classes/mybatis.xml index 60a680b..27b1f5e 100644 --- a/后端的都放着里面/booksSearch/booksService/target/classes/mybatis.xml +++ b/后端的都放着里面/booksSearch/booksService/target/classes/mybatis.xml @@ -1,5 +1,5 @@ - - - + + + \ No newline at end of file diff --git a/后端的都放着里面/booksSearch/booksService/target/classes/spring-mybatis.xml b/后端的都放着里面/booksSearch/booksService/target/classes/spring-mybatis.xml index 35dbc99..56c2f51 100644 --- a/后端的都放着里面/booksSearch/booksService/target/classes/spring-mybatis.xml +++ b/后端的都放着里面/booksSearch/booksService/target/classes/spring-mybatis.xml @@ -1,51 +1,51 @@ - - - - - - - - - - - - - - - - - - - - - - dialect=mysql - reasonable=true - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + dialect=mysql + reasonable=true + + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF b/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF index f44188e..d2ae5d1 100644 --- a/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF +++ b/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF @@ -1,5 +1,5 @@ -Manifest-Version: 1.0 -Built-By: yuanhangpc -Build-Jdk: 1.8.0_152 -Created-By: Maven Integration for Eclipse - +Manifest-Version: 1.0 +Built-By: yuanhangpc +Build-Jdk: 1.8.0_152 +Created-By: Maven Integration for Eclipse + diff --git a/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/maven/edu.zxts/booksService/pom.properties b/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/maven/edu.zxts/booksService/pom.properties index 22e7a80..e96c18d 100644 --- a/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/maven/edu.zxts/booksService/pom.properties +++ b/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/maven/edu.zxts/booksService/pom.properties @@ -1,7 +1,7 @@ -#Generated by Maven Integration for Eclipse -#Wed Jan 09 17:07:46 CST 2019 -version=0.0.1-SNAPSHOT -groupId=edu.zxts -m2e.projectName=booksService -m2e.projectLocation=H\:\\sts-bundle\\booksSearch\\booksService -artifactId=booksService +#Generated by Maven Integration for Eclipse +#Wed Jan 09 17:07:46 CST 2019 +version=0.0.1-SNAPSHOT +groupId=edu.zxts +m2e.projectName=booksService +m2e.projectLocation=H\:\\sts-bundle\\booksSearch\\booksService +artifactId=booksService diff --git a/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/maven/edu.zxts/booksService/pom.xml b/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/maven/edu.zxts/booksService/pom.xml index 19409b3..179b39b 100644 --- a/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/maven/edu.zxts/booksService/pom.xml +++ b/后端的都放着里面/booksSearch/booksService/target/m2e-wtp/web-resources/META-INF/maven/edu.zxts/booksService/pom.xml @@ -1,160 +1,160 @@ - - - 4.0.0 - - edu.zxts - booksSearch - 0.0.1-SNAPSHOT - - edu.zxts - booksService - 0.0.1-SNAPSHOT - war - booksService Maven Webapp - http://maven.apache.org - - - UTF-8 - UTF-8 - - 4.3.10.RELEASE - - - - - mysql - mysql-connector-java - 5.1.46 - - - junit - junit - 3.8.1 - test - - - - org.mybatis.generator - mybatis-generator-core - 1.3.5 - - - mysql - mysql-connector-java - 5.1.46 - - - - - org.springframework - spring-core - ${spring.version} - - - - org.springframework - spring-beans - ${spring.version} - - - - org.springframework - spring-context - ${spring.version} - - - - org.springframework - spring-jdbc - ${spring.version} - - - - org.springframework - spring-tx - ${spring.version} - - - - org.springframework - spring-web - ${spring.version} - - - - org.springframework - spring-webmvc - ${spring.version} - - - - org.springframework - spring-test - ${spring.version} - test - - - - - org.mybatis - mybatis - 3.4.2 - - - org.mybatis - mybatis-spring - 1.3.1 - - - c3p0 - c3p0 - 0.9.1.2 - - - commons-dbcp - commons-dbcp - 1.4 - - - - - junit - junit - 4.12 - test - - - - booksService - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.8 - 1.8 - UTF8 - true - - - - - org.mybatis.generator - mybatis-generator-maven-plugin - 1.3.5 - - - ${basedir}/src/main/resources/generatorConfig.xml - true - - - - - - + + + 4.0.0 + + edu.zxts + booksSearch + 0.0.1-SNAPSHOT + + edu.zxts + booksService + 0.0.1-SNAPSHOT + war + booksService Maven Webapp + http://maven.apache.org + + + UTF-8 + UTF-8 + + 4.3.10.RELEASE + + + + + mysql + mysql-connector-java + 5.1.46 + + + junit + junit + 3.8.1 + test + + + + org.mybatis.generator + mybatis-generator-core + 1.3.5 + + + mysql + mysql-connector-java + 5.1.46 + + + + + org.springframework + spring-core + ${spring.version} + + + + org.springframework + spring-beans + ${spring.version} + + + + org.springframework + spring-context + ${spring.version} + + + + org.springframework + spring-jdbc + ${spring.version} + + + + org.springframework + spring-tx + ${spring.version} + + + + org.springframework + spring-web + ${spring.version} + + + + org.springframework + spring-webmvc + ${spring.version} + + + + org.springframework + spring-test + ${spring.version} + test + + + + + org.mybatis + mybatis + 3.4.2 + + + org.mybatis + mybatis-spring + 1.3.1 + + + c3p0 + c3p0 + 0.9.1.2 + + + commons-dbcp + commons-dbcp + 1.4 + + + + + junit + junit + 4.12 + test + + + + booksService + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + UTF8 + true + + + + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.3.5 + + + ${basedir}/src/main/resources/generatorConfig.xml + true + + + + + + diff --git a/后端的都放着里面/booksSearch/pom.xml b/后端的都放着里面/booksSearch/pom.xml index ef5391e..0f0b1b2 100644 --- a/后端的都放着里面/booksSearch/pom.xml +++ b/后端的都放着里面/booksSearch/pom.xml @@ -1,10 +1,10 @@ - - 4.0.0 - edu.zxts - booksSearch - 0.0.1-SNAPSHOT - pom - - booksService - + + 4.0.0 + edu.zxts + booksSearch + 0.0.1-SNAPSHOT + pom + + booksService + \ No newline at end of file diff --git a/后端的都放着里面/demo/.gitignore b/后端的都放着里面/demo/.gitignore index 82eca33..d17923d 100644 --- a/后端的都放着里面/demo/.gitignore +++ b/后端的都放着里面/demo/.gitignore @@ -1,25 +1,25 @@ -/target/ -!.mvn/wrapper/maven-wrapper.jar - -### STS ### -.apt_generated -.classpath -.factorypath -.project -.settings -.springBeans -.sts4-cache - -### IntelliJ IDEA ### -.idea -*.iws -*.iml -*.ipr - -### NetBeans ### -/nbproject/private/ -/build/ -/nbbuild/ -/dist/ -/nbdist/ +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/build/ +/nbbuild/ +/dist/ +/nbdist/ /.nb-gradle/ \ No newline at end of file diff --git a/后端的都放着里面/demo/.mvn/wrapper/maven-wrapper.properties b/后端的都放着里面/demo/.mvn/wrapper/maven-wrapper.properties index 7179346..c8102d8 100644 --- a/后端的都放着里面/demo/.mvn/wrapper/maven-wrapper.properties +++ b/后端的都放着里面/demo/.mvn/wrapper/maven-wrapper.properties @@ -1 +1 @@ -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip diff --git a/后端的都放着里面/demo/mvnw b/后端的都放着里面/demo/mvnw index 5551fde..2bf58f1 100644 --- a/后端的都放着里面/demo/mvnw +++ b/后端的都放着里面/demo/mvnw @@ -1,286 +1,286 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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 -# -# http://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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" - # TODO classpath? -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar" - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - wget "$jarUrl" -O "$wrapperJarPath" - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - curl -o "$wrapperJarPath" "$jarUrl" - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" +#!/bin/sh +# ---------------------------------------------------------------------------- +# 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 +# +# http://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. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Mingw, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + # TODO classpath? +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +########################################################################################## +# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +# This allows using the maven wrapper in projects that prohibit checking in binary data. +########################################################################################## +if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found .mvn/wrapper/maven-wrapper.jar" + fi +else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." + fi + jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar" + while IFS="=" read key value; do + case "$key" in (wrapperUrl) jarUrl="$value"; break ;; + esac + done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" + if [ "$MVNW_VERBOSE" = true ]; then + echo "Downloading from: $jarUrl" + fi + wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" + + if command -v wget > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found wget ... using wget" + fi + wget "$jarUrl" -O "$wrapperJarPath" + elif command -v curl > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found curl ... using curl" + fi + curl -o "$wrapperJarPath" "$jarUrl" + else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Falling back to using Java to download" + fi + javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + if [ -e "$javaClass" ]; then + if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Compiling MavenWrapperDownloader.java ..." + fi + # Compiling the Java class + ("$JAVA_HOME/bin/javac" "$javaClass") + fi + if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + # Running the downloader + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Running MavenWrapperDownloader.java ..." + fi + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") + fi + fi + fi +fi +########################################################################################## +# End of extension +########################################################################################## + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +if [ "$MVNW_VERBOSE" = true ]; then + echo $MAVEN_PROJECTBASEDIR +fi +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/后端的都放着里面/demo/mvnw.cmd b/后端的都放着里面/demo/mvnw.cmd index e5cfb0a..48363fa 100644 --- a/后端的都放着里面/demo/mvnw.cmd +++ b/后端的都放着里面/demo/mvnw.cmd @@ -1,161 +1,161 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar" -FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - echo Found %WRAPPER_JAR% -) else ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')" - echo Finished downloading %WRAPPER_JAR% -) -@REM End of extension - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven2 Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM set title of command window +title %0 +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar" +FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO ( + IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B +) + +@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +@REM This allows using the maven wrapper in projects that prohibit checking in binary data. +if exist %WRAPPER_JAR% ( + echo Found %WRAPPER_JAR% +) else ( + echo Couldn't find %WRAPPER_JAR%, downloading it ... + echo Downloading from: %DOWNLOAD_URL% + powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')" + echo Finished downloading %WRAPPER_JAR% +) +@REM End of extension + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/后端的都放着里面/demo/pom.xml b/后端的都放着里面/demo/pom.xml index ba8f07d..5f41a87 100644 --- a/后端的都放着里面/demo/pom.xml +++ b/后端的都放着里面/demo/pom.xml @@ -1,104 +1,104 @@ - - - 4.0.0 - - org.springframework.boot - spring-boot-starter-parent - 2.1.1.RELEASE - - - com.example - demo - 0.0.1-SNAPSHOT - demo - Demo project for Spring Boot - - - UTF-8 - UTF-8 - 1.8 - - - - - org.springframework.boot - spring-boot-starter - - - org.springframework.boot - spring-boot-starter-test - test - - - org.mybatis.spring.boot - mybatis-spring-boot-starter - true - - - org.springframework.boot - spring-boot-starter-data-jpa - - - org.projectlombok - lombok - 1.18.2 - - - net.sf.json-lib - json-lib - 2.4 - jdk15 - - - - mysql - mysql-connector-java - 8.0.13 - - - - org.mybatis.spring.boot - mybatis-spring-boot-starter - 1.1.1 - - - - - javax.servlet - javax.servlet-api - 3.0.1 - provided - - - javax.servlet - jstl - 1.2 - - - com.alibaba - fastjson - 1.2.37 - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.8 - 1.8 - UTF8 - true - - - - org.springframework.boot - spring-boot-maven-plugin - - - - - + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.1.1.RELEASE + + + com.example + demo + 0.0.1-SNAPSHOT + demo + Demo project for Spring Boot + + + UTF-8 + UTF-8 + 1.8 + + + + + org.springframework.boot + spring-boot-starter + + + org.springframework.boot + spring-boot-starter-test + test + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + true + + + org.springframework.boot + spring-boot-starter-data-jpa + + + org.projectlombok + lombok + 1.18.2 + + + net.sf.json-lib + json-lib + 2.4 + jdk15 + + + + mysql + mysql-connector-java + 8.0.13 + + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 1.1.1 + + + + + javax.servlet + javax.servlet-api + 3.0.1 + provided + + + javax.servlet + jstl + 1.2 + + + com.alibaba + fastjson + 1.2.37 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + UTF8 + true + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/bookMapper.java b/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/bookMapper.java index cb38bc4..7dcb70f 100644 --- a/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/bookMapper.java +++ b/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/bookMapper.java @@ -1,14 +1,14 @@ -package com.example.demo.Dao; -import com.example.demo.bean.book; -import org.apache.ibatis.annotations.Select; -import java.util.List; - -public interface bookMapper { - @Select("select * from book where book_name = #{book_name}") - public book selectBookBybook_name(String book_name); - @Select("select * from book where book_id = #{book_id}") - public book selectBookBybook_id(long book_id); - @Select("select * from book") - public List select(); - -} +package com.example.demo.Dao; +import com.example.demo.bean.book; +import org.apache.ibatis.annotations.Select; +import java.util.List; + +public interface bookMapper { + @Select("select * from book where book_name = #{book_name}") + public book selectBookBybook_name(String book_name); + @Select("select * from book where book_id = #{book_id}") + public book selectBookBybook_id(long book_id); + @Select("select * from book") + public List select(); + +} diff --git a/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/borrowrecordMapper.java b/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/borrowrecordMapper.java index 0437aaa..1759170 100644 --- a/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/borrowrecordMapper.java +++ b/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/borrowrecordMapper.java @@ -1,25 +1,25 @@ -package com.example.demo.Dao; - -import com.example.demo.bean.book; -import com.example.demo.bean.borrowrecord; -import com.example.demo.bean.student; -import org.apache.ibatis.annotations.Select; - -import java.util.List; - -public interface borrowrecordMapper { - @Select("select * from book where book_name = #{book_name}") - public book selectBookBybook_name(String book_name); - @Select("select * from student where s_id = #{s_id}") - public student selectStudentBys__id(long s_id); - @Select("select * from book where book_id = #{book_id}") - public book selectBookBybook_id(long book_id); - @Select("select * from student where s_name = #{s_name}") - public student selectBookBys_name(String s_name); - @Select("select * from borroerecord where borrowtime = #{borrowtime}") - public borrowrecord selectborrowrecordByborrowtime(String borrowtime); - @Select("select * from borroerecord where senttime = #{senttime}") - public borrowrecord selectborrowrecordBysenttime(String senttime); - @Select("select * from borrowrecord") - public List select(); -} +package com.example.demo.Dao; + +import com.example.demo.bean.book; +import com.example.demo.bean.borrowrecord; +import com.example.demo.bean.student; +import org.apache.ibatis.annotations.Select; + +import java.util.List; + +public interface borrowrecordMapper { + @Select("select * from book where book_name = #{book_name}") + public book selectBookBybook_name(String book_name); + @Select("select * from student where s_id = #{s_id}") + public student selectStudentBys__id(long s_id); + @Select("select * from book where book_id = #{book_id}") + public book selectBookBybook_id(long book_id); + @Select("select * from student where s_name = #{s_name}") + public student selectBookBys_name(String s_name); + @Select("select * from borroerecord where borrowtime = #{borrowtime}") + public borrowrecord selectborrowrecordByborrowtime(String borrowtime); + @Select("select * from borroerecord where senttime = #{senttime}") + public borrowrecord selectborrowrecordBysenttime(String senttime); + @Select("select * from borrowrecord") + public List select(); +} diff --git a/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/studentMapper.java b/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/studentMapper.java index 46eadc8..de8dbc1 100644 --- a/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/studentMapper.java +++ b/后端的都放着里面/demo/src/main/java/com/example/demo/Dao/studentMapper.java @@ -1,12 +1,12 @@ -package com.example.demo.Dao; - -import com.example.demo.bean.student; -import org.apache.ibatis.annotations.Select; - -import java.util.List; -public interface studentMapper{ - @Select("select * from student where s_id = #{s_id}") - public student selectAudioByS_id(long s_id); - @Select("select * from student") - public List select(); -} +package com.example.demo.Dao; + +import com.example.demo.bean.student; +import org.apache.ibatis.annotations.Select; + +import java.util.List; +public interface studentMapper{ + @Select("select * from student where s_id = #{s_id}") + public student selectAudioByS_id(long s_id); + @Select("select * from student") + public List select(); +} diff --git a/后端的都放着里面/demo/src/main/java/com/example/demo/DemoApplication.java b/后端的都放着里面/demo/src/main/java/com/example/demo/DemoApplication.java index 3f3d9f6..8b2f557 100644 --- a/后端的都放着里面/demo/src/main/java/com/example/demo/DemoApplication.java +++ b/后端的都放着里面/demo/src/main/java/com/example/demo/DemoApplication.java @@ -1,14 +1,14 @@ -package com.example.demo; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication -public class DemoApplication { - - public static void main(String[] args) { - SpringApplication.run(DemoApplication.class, args); - } - -} - +package com.example.demo; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class DemoApplication { + + public static void main(String[] args) { + SpringApplication.run(DemoApplication.class, args); + } + +} + diff --git a/后端的都放着里面/demo/src/main/java/com/example/demo/bean/book.java b/后端的都放着里面/demo/src/main/java/com/example/demo/bean/book.java index f300346..1d485e5 100644 --- a/后端的都放着里面/demo/src/main/java/com/example/demo/bean/book.java +++ b/后端的都放着里面/demo/src/main/java/com/example/demo/bean/book.java @@ -1,21 +1,21 @@ -package com.example.demo.bean; - -import lombok.Getter; -import lombok.Setter; - -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -@Getter -@Setter -@Entity -public class book { - @GeneratedValue(strategy=GenerationType.AUTO) - private long book_id; - private String book_name; - private String book_author; - private String book_sort; - private int book_num; - public book(){}; - -} +package com.example.demo.bean; + +import lombok.Getter; +import lombok.Setter; + +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +@Getter +@Setter +@Entity +public class book { + @GeneratedValue(strategy=GenerationType.AUTO) + private long book_id; + private String book_name; + private String book_author; + private String book_sort; + private int book_num; + public book(){}; + +} diff --git a/后端的都放着里面/demo/src/main/java/com/example/demo/bean/borrowrecord.java b/后端的都放着里面/demo/src/main/java/com/example/demo/bean/borrowrecord.java index 649b6b6..e8fb5ba 100644 --- a/后端的都放着里面/demo/src/main/java/com/example/demo/bean/borrowrecord.java +++ b/后端的都放着里面/demo/src/main/java/com/example/demo/bean/borrowrecord.java @@ -1,22 +1,22 @@ -package com.example.demo.bean; - - -import lombok.Getter; -import lombok.Setter; - -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -@Getter -@Setter -@Entity -public class borrowrecord { - @GeneratedValue(strategy=GenerationType.AUTO) - private long s_id; - private long book_id; - private String s_name; - private String book_name; - private String borrowtime; - private String senttime; - public borrowrecord(){}; -} +package com.example.demo.bean; + + +import lombok.Getter; +import lombok.Setter; + +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +@Getter +@Setter +@Entity +public class borrowrecord { + @GeneratedValue(strategy=GenerationType.AUTO) + private long s_id; + private long book_id; + private String s_name; + private String book_name; + private String borrowtime; + private String senttime; + public borrowrecord(){}; +} diff --git a/后端的都放着里面/demo/src/main/java/com/example/demo/bean/student.java b/后端的都放着里面/demo/src/main/java/com/example/demo/bean/student.java index 49bd669..8859bc4 100644 --- a/后端的都放着里面/demo/src/main/java/com/example/demo/bean/student.java +++ b/后端的都放着里面/demo/src/main/java/com/example/demo/bean/student.java @@ -1,19 +1,19 @@ -package com.example.demo.bean; - -import lombok.Getter; -import lombok.Setter; - -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -@Getter -@Setter -@Entity -public class student { - @GeneratedValue(strategy=GenerationType.AUTO) - private long s_id; - private String s_name; - private String s_password; - public student() {}; -} - +package com.example.demo.bean; + +import lombok.Getter; +import lombok.Setter; + +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +@Getter +@Setter +@Entity +public class student { + @GeneratedValue(strategy=GenerationType.AUTO) + private long s_id; + private String s_name; + private String s_password; + public student() {}; +} + diff --git a/后端的都放着里面/demo/src/main/java/com/example/demo/searchservice/controller/searchservicecontroller.java b/后端的都放着里面/demo/src/main/java/com/example/demo/searchservice/controller/searchservicecontroller.java index 73321b6..98b8f8d 100644 --- a/后端的都放着里面/demo/src/main/java/com/example/demo/searchservice/controller/searchservicecontroller.java +++ b/后端的都放着里面/demo/src/main/java/com/example/demo/searchservice/controller/searchservicecontroller.java @@ -1,9 +1,9 @@ -package com.example.demo.searchservice.controller; - -import org.springframework.stereotype.Controller; -import javax.servlet.http.HttpServlet; - -@Controller -public class searchservicecontroller extends HttpServlet { - -} +package com.example.demo.searchservice.controller; + +import org.springframework.stereotype.Controller; +import javax.servlet.http.HttpServlet; + +@Controller +public class searchservicecontroller extends HttpServlet { + +} diff --git a/后端的都放着里面/demo/src/main/java/com/example/demo/searchservice/service/searchservice.java b/后端的都放着里面/demo/src/main/java/com/example/demo/searchservice/service/searchservice.java index 73456aa..c14f1fc 100644 --- a/后端的都放着里面/demo/src/main/java/com/example/demo/searchservice/service/searchservice.java +++ b/后端的都放着里面/demo/src/main/java/com/example/demo/searchservice/service/searchservice.java @@ -1,7 +1,7 @@ -package com.example.demo.searchservice.service; -import com.example.demo.bean.book; -import java.util.List; -public interface searchservice{ - List findByNameLike(String book_name); - List findByIdLike(long book_id); -} +package com.example.demo.searchservice.service; +import com.example.demo.bean.book; +import java.util.List; +public interface searchservice{ + List findByNameLike(String book_name); + List findByIdLike(long book_id); +} diff --git a/后端的都放着里面/demo/src/main/resources/application.yml b/后端的都放着里面/demo/src/main/resources/application.yml index 6b09feb..05ef50e 100644 --- a/后端的都放着里面/demo/src/main/resources/application.yml +++ b/后端的都放着里面/demo/src/main/resources/application.yml @@ -1,7 +1,7 @@ -datasource: - url: jdbc:mysql://localhost:3306/zx?useUnicode=true&characterEncoding=utf8 - username: root - password: jin187 - driver-class-name: com.mysql.jdbc.Driver -mybatis: +datasource: + url: jdbc:mysql://localhost:3306/zx?useUnicode=true&characterEncoding=utf8 + username: root + password: jin187 + driver-class-name: com.mysql.jdbc.Driver +mybatis: type-aliases-package: com.example.demo.Dao \ No newline at end of file diff --git a/后端的都放着里面/demo/src/test/java/com/example/demo/DemoApplicationTests.java b/后端的都放着里面/demo/src/test/java/com/example/demo/DemoApplicationTests.java index 2876223..09ea2fd 100644 --- a/后端的都放着里面/demo/src/test/java/com/example/demo/DemoApplicationTests.java +++ b/后端的都放着里面/demo/src/test/java/com/example/demo/DemoApplicationTests.java @@ -1,17 +1,17 @@ -package com.example.demo; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; - -@RunWith(SpringRunner.class) -@SpringBootTest -public class DemoApplicationTests { - - @Test - public void contextLoads() { - } - -} - +package com.example.demo; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class DemoApplicationTests { + + @Test + public void contextLoads() { + } + +} + diff --git a/后端的都放着里面/zx.sql b/后端的都放着里面/zx.sql index f1f49f5..a14aa65 100644 --- a/后端的都放着里面/zx.sql +++ b/后端的都放着里面/zx.sql @@ -1,106 +1,106 @@ --- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) --- --- Host: localhost Database: 真香 --- ------------------------------------------------------ --- Server version 8.0.13 - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; - SET NAMES utf8 ; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; - --- --- Table structure for table `book` --- - -DROP TABLE IF EXISTS `book`; -/*!40101 SET @saved_cs_client = @@character_set_client */; - SET character_set_client = utf8 ; -CREATE TABLE `book` ( - `book_id` int(20) NOT NULL, - `book_name` varchar(45) NOT NULL, - `author` varchar(20) NOT NULL, - `book_sort` varchar(20) NOT NULL, - `book_num` int(5) NOT NULL, - PRIMARY KEY (`book_id`,`book_name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `book` --- - -LOCK TABLES `book` WRITE; -/*!40000 ALTER TABLE `book` DISABLE KEYS */; -INSERT INTO `book` VALUES (1,'软件综合实践二','王胜春','实践类',0),(2,'软件工程','张锦','理论类',0),(3,'CSAPP','窦亚玲','理论类',0),(4,'系统分析与设计','蒋少华','理论类',0),(5,'编译原理','肖伟','理论类',0),(6,'网络安全','王六平','理论类',0); -/*!40000 ALTER TABLE `book` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `borrowrecord` --- - -DROP TABLE IF EXISTS `borrowrecord`; -/*!40101 SET @saved_cs_client = @@character_set_client */; - SET character_set_client = utf8; -CREATE TABLE `borrowrecord` ( - `s_id` int(20) NOT NULL, - `book_id` int(20) NOT NULL, - `s_name` varchar(20) NOT NULL, - `book_name` varchar(20) NOT NULL, - `borrowtime` varchar(45) NOT NULL, - `senttime` varchar(45) NOT NULL, - PRIMARY KEY (`s_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `borrowrecord` --- - -LOCK TABLES `borrowrecord` WRITE; -/*!40000 ALTER TABLE `borrowrecord` DISABLE KEYS */; -/*!40000 ALTER TABLE `borrowrecord` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `student` --- - -DROP TABLE IF EXISTS `student`; -/*!40101 SET @saved_cs_client = @@character_set_client */; - SET character_set_client = utf8; -CREATE TABLE `student` ( - `s_id` int(20) NOT NULL, - `s_password` varchar(20) NOT NULL, - `s_name` varchar(20) NOT NULL, - PRIMARY KEY (`s_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `student` --- - -LOCK TABLES `student` WRITE; -/*!40000 ALTER TABLE `student` DISABLE KEYS */; -INSERT INTO `student` VALUES (20160801,'123456','xzy'),(20160802,'123456','zxy'),(20160803,'123456','myj'),(20160804,'123456','zjh'); -/*!40000 ALTER TABLE `student` ENABLE KEYS */; -UNLOCK TABLES; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - --- Dump completed on 2019-01-09 10:40:29 +-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) +-- +-- Host: localhost Database: 真香 +-- ------------------------------------------------------ +-- Server version 8.0.13 + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; + SET NAMES utf8 ; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `book` +-- + +DROP TABLE IF EXISTS `book`; +/*!40101 SET @saved_cs_client = @@character_set_client */; + SET character_set_client = utf8 ; +CREATE TABLE `book` ( + `book_id` int(20) NOT NULL, + `book_name` varchar(45) NOT NULL, + `author` varchar(20) NOT NULL, + `book_sort` varchar(20) NOT NULL, + `book_num` int(5) NOT NULL, + PRIMARY KEY (`book_id`,`book_name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `book` +-- + +LOCK TABLES `book` WRITE; +/*!40000 ALTER TABLE `book` DISABLE KEYS */; +INSERT INTO `book` VALUES (1,'软件综合实践二','王胜春','实践类',0),(2,'软件工程','张锦','理论类',0),(3,'CSAPP','窦亚玲','理论类',0),(4,'系统分析与设计','蒋少华','理论类',0),(5,'编译原理','肖伟','理论类',0),(6,'网络安全','王六平','理论类',0); +/*!40000 ALTER TABLE `book` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `borrowrecord` +-- + +DROP TABLE IF EXISTS `borrowrecord`; +/*!40101 SET @saved_cs_client = @@character_set_client */; + SET character_set_client = utf8; +CREATE TABLE `borrowrecord` ( + `s_id` int(20) NOT NULL, + `book_id` int(20) NOT NULL, + `s_name` varchar(20) NOT NULL, + `book_name` varchar(20) NOT NULL, + `borrowtime` varchar(45) NOT NULL, + `senttime` varchar(45) NOT NULL, + PRIMARY KEY (`s_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `borrowrecord` +-- + +LOCK TABLES `borrowrecord` WRITE; +/*!40000 ALTER TABLE `borrowrecord` DISABLE KEYS */; +/*!40000 ALTER TABLE `borrowrecord` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `student` +-- + +DROP TABLE IF EXISTS `student`; +/*!40101 SET @saved_cs_client = @@character_set_client */; + SET character_set_client = utf8; +CREATE TABLE `student` ( + `s_id` int(20) NOT NULL, + `s_password` varchar(20) NOT NULL, + `s_name` varchar(20) NOT NULL, + PRIMARY KEY (`s_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `student` +-- + +LOCK TABLES `student` WRITE; +/*!40000 ALTER TABLE `student` DISABLE KEYS */; +INSERT INTO `student` VALUES (20160801,'123456','xzy'),(20160802,'123456','zxy'),(20160803,'123456','myj'),(20160804,'123456','zjh'); +/*!40000 ALTER TABLE `student` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2019-01-09 10:40:29 diff --git a/后端的都放着里面/zxlogin/.classpath b/后端的都放着里面/zxlogin/.classpath index ba69aab..1d5af2f 100644 --- a/后端的都放着里面/zxlogin/.classpath +++ b/后端的都放着里面/zxlogin/.classpath @@ -1,22 +1,22 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/zxlogin/.project b/后端的都放着里面/zxlogin/.project index d8b8165..4ac695a 100644 --- a/后端的都放着里面/zxlogin/.project +++ b/后端的都放着里面/zxlogin/.project @@ -1,48 +1,48 @@ - - - zxlogin - - - - - - org.eclipse.wst.jsdt.core.javascriptValidator - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.wst.common.project.facet.core.builder - - - - - org.eclipse.wst.validation.validationbuilder - - - - - org.springframework.ide.eclipse.core.springbuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.springframework.ide.eclipse.core.springnature - org.eclipse.jem.workbench.JavaEMFNature - org.eclipse.wst.common.modulecore.ModuleCoreNature - org.eclipse.jdt.core.javanature - org.eclipse.m2e.core.maven2Nature - org.eclipse.wst.common.project.facet.core.nature - org.eclipse.wst.jsdt.core.jsNature - - + + + zxlogin + + + + + + org.eclipse.wst.jsdt.core.javascriptValidator + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/后端的都放着里面/zxlogin/.settings/.jsdtscope b/后端的都放着里面/zxlogin/.settings/.jsdtscope index b72a6a4..585c967 100644 --- a/后端的都放着里面/zxlogin/.settings/.jsdtscope +++ b/后端的都放着里面/zxlogin/.settings/.jsdtscope @@ -1,13 +1,13 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs b/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs index 6acb9dc..a698f2a 100644 --- a/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs +++ b/后端的都放着里面/zxlogin/.settings/org.eclipse.core.resources.prefs @@ -1,3 +1,3 @@ -eclipse.preferences.version=1 -encoding//src/main/java=UTF8 -encoding/=UTF-8 +eclipse.preferences.version=1 +encoding//src/main/java=UTF8 +encoding/=UTF-8 diff --git a/后端的都放着里面/zxlogin/.settings/org.eclipse.jdt.core.prefs b/后端的都放着里面/zxlogin/.settings/org.eclipse.jdt.core.prefs index 6e80039..1ab2bb5 100644 --- a/后端的都放着里面/zxlogin/.settings/org.eclipse.jdt.core.prefs +++ b/后端的都放着里面/zxlogin/.settings/org.eclipse.jdt.core.prefs @@ -1,8 +1,8 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 -org.eclipse.jdt.core.compiler.compliance=1.8 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.source=1.8 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/后端的都放着里面/zxlogin/.settings/org.eclipse.m2e.core.prefs b/后端的都放着里面/zxlogin/.settings/org.eclipse.m2e.core.prefs index f897a7f..14b697b 100644 --- a/后端的都放着里面/zxlogin/.settings/org.eclipse.m2e.core.prefs +++ b/后端的都放着里面/zxlogin/.settings/org.eclipse.m2e.core.prefs @@ -1,4 +1,4 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.common.component b/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.common.component index afd0938..1d074a3 100644 --- a/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.common.component +++ b/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.common.component @@ -1,11 +1,11 @@ - - - - - - - - - - - + + + + + + + + + + + diff --git a/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.common.project.facet.core.xml b/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.common.project.facet.core.xml index d74c55e..593353a 100644 --- a/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,7 +1,7 @@ - - - - - - - + + + + + + + diff --git a/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.validation.prefs b/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.validation.prefs index 04cad8c..6f1cba6 100644 --- a/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.validation.prefs +++ b/后端的都放着里面/zxlogin/.settings/org.eclipse.wst.validation.prefs @@ -1,2 +1,2 @@ -disabled=06target -eclipse.preferences.version=1 +disabled=06target +eclipse.preferences.version=1 diff --git a/后端的都放着里面/zxlogin/pom.xml b/后端的都放着里面/zxlogin/pom.xml index 6a296f5..dfcbca3 100644 --- a/后端的都放着里面/zxlogin/pom.xml +++ b/后端的都放着里面/zxlogin/pom.xml @@ -1,154 +1,154 @@ - - - 4.0.0 - zxtsgl - zxlogin - 0.0.1-SNAPSHOT - zxlogin Maven Webapp - http://maven.apache.org - - - UTF-8 - UTF-8 - - 4.3.10.RELEASE - - - - junit - junit - 3.8.1 - test - - - - mysql - mysql-connector-java - 5.1.46 - - - - - - org.mybatis.generator - mybatis-generator-core - 1.3.5 - - - - - org.springframework - spring-core - ${spring.version} - - - - org.springframework - spring-beans - ${spring.version} - - - - org.springframework - spring-context - ${spring.version} - - - - org.springframework - spring-jdbc - ${spring.version} - - - - org.springframework - spring-tx - ${spring.version} - - - - org.springframework - spring-web - ${spring.version} - - - - org.springframework - spring-webmvc - ${spring.version} - - - - org.springframework - spring-test - ${spring.version} - test - - - - org.mybatis - mybatis - 3.4.2 - - - org.mybatis - mybatis-spring - 1.3.1 - - - - c3p0 - c3p0 - 0.9.1.2 - - - commons-dbcp - commons-dbcp - 1.4 - - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - javax.servlet - jstl - 1.2 - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.8 - 1.8 - UTF8 - true - - - - org.mybatis.generator - mybatis-generator-maven-plugin - 1.3.5 - - - ${basedir}/src/main/resources/generatorConfig.xml - true - - - - zxlogin - + + + 4.0.0 + zxtsgl + zxlogin + 0.0.1-SNAPSHOT + zxlogin Maven Webapp + http://maven.apache.org + + + UTF-8 + UTF-8 + + 4.3.10.RELEASE + + + + junit + junit + 3.8.1 + test + + + + mysql + mysql-connector-java + 5.1.46 + + + + + + org.mybatis.generator + mybatis-generator-core + 1.3.5 + + + + + org.springframework + spring-core + ${spring.version} + + + + org.springframework + spring-beans + ${spring.version} + + + + org.springframework + spring-context + ${spring.version} + + + + org.springframework + spring-jdbc + ${spring.version} + + + + org.springframework + spring-tx + ${spring.version} + + + + org.springframework + spring-web + ${spring.version} + + + + org.springframework + spring-webmvc + ${spring.version} + + + + org.springframework + spring-test + ${spring.version} + test + + + + org.mybatis + mybatis + 3.4.2 + + + org.mybatis + mybatis-spring + 1.3.1 + + + + c3p0 + c3p0 + 0.9.1.2 + + + commons-dbcp + commons-dbcp + 1.4 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + javax.servlet + jstl + 1.2 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + UTF8 + true + + + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.3.5 + + + ${basedir}/src/main/resources/generatorConfig.xml + true + + + + zxlogin + \ No newline at end of file diff --git a/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java b/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java index a1f1ee3..b050126 100644 --- a/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java +++ b/后端的都放着里面/zxlogin/src/main/java/controller/LoginController.java @@ -1,56 +1,56 @@ -package controller; - - -import java.io.IOException; -import java.io.Writer; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -import service.LoginService; -import domain.UserPO; - -@Controller -public class LoginController { - @Autowired@Qualifier("LoginServiceImpl") - private LoginService loginService; - @RequestMapping("/login") - public void login(int userid, int userpassword, - HttpServletRequest request, HttpServletResponse response) throws IOException { - UserPO userPO=this.loginService.FindByUserid(userid); - response.setContentType("text/html;charset=utf-8"); - /* 设置响应头允许ajax跨域访问 */ - response.setHeader("Access-Control-Allow-Origin", "*"); - /* 星号表示所有的异域请求都可以接受, */ - response.setHeader("Access-Control-Allow-Methods", "GET,POST"); - System.out.println(userid); - if(userPO!=null) - if(userpassword==userPO.getUserpassword()) - { - System.out.println("密码正确"); - Writer out = response.getWriter(); - out.write("111"); - out.flush(); - } - - - else{ - System.out.println("密码错误"); - Writer out = response.getWriter(); - out.write("100"); - out.flush(); - } - else{ - System.out.println("不存在用户名"); - Writer out = response.getWriter(); - out.write("001"); - out.flush(); - } - - } -} +package controller; + + +import java.io.IOException; +import java.io.Writer; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +import service.LoginService; +import domain.UserPO; + +@Controller +public class LoginController { + @Autowired@Qualifier("LoginServiceImpl") + private LoginService loginService; + @RequestMapping("/login") + public void login(int userid, int userpassword, + HttpServletRequest request, HttpServletResponse response) throws IOException { + UserPO userPO=this.loginService.FindByUserid(userid); + response.setContentType("text/html;charset=utf-8"); + /* 设置响应头允许ajax跨域访问 */ + response.setHeader("Access-Control-Allow-Origin", "*"); + /* 星号表示所有的异域请求都可以接受, */ + response.setHeader("Access-Control-Allow-Methods", "GET,POST"); + System.out.println(userid); + if(userPO!=null) + if(userpassword==userPO.getUserpassword()) + { + System.out.println("密码正确"); + Writer out = response.getWriter(); + out.write("111"); + out.flush(); + } + + + else{ + System.out.println("密码错误"); + Writer out = response.getWriter(); + out.write("100"); + out.flush(); + } + else{ + System.out.println("不存在用户名"); + Writer out = response.getWriter(); + out.write("001"); + out.flush(); + } + + } +} diff --git a/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java b/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java index cdeb568..5c763cc 100644 --- a/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java +++ b/后端的都放着里面/zxlogin/src/main/java/domain/UserPO.java @@ -1,29 +1,29 @@ -package domain; - -import java.io.Serializable; - -public class UserPO implements Serializable{ - private int userid; - private int userpassword; - private String username; - public int getUserid() { - return userid; - } - public void setUserid(int userid) { - this.userid = userid; - } - public int getUserpassword() { - return userpassword; - } - public void setUserpassword(int userpassword) { - this.userpassword = userpassword; - } - public String getUsername() { - return username; - } - public void setUsername(String username) { - this.username = username; - } - - -} +package domain; + +import java.io.Serializable; + +public class UserPO implements Serializable{ + private int userid; + private int userpassword; + private String username; + public int getUserid() { + return userid; + } + public void setUserid(int userid) { + this.userid = userid; + } + public int getUserpassword() { + return userpassword; + } + public void setUserpassword(int userpassword) { + this.userpassword = userpassword; + } + public String getUsername() { + return username; + } + public void setUsername(String username) { + this.username = username; + } + + +} diff --git a/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java b/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java index d47c532..4df9f5a 100644 --- a/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java +++ b/后端的都放着里面/zxlogin/src/main/java/mapperDAO/UserDAO.java @@ -1,12 +1,12 @@ -package mapperDAO; - -import org.springframework.stereotype.Repository; - -import domain.UserPO; - -@Repository("UserDAO") -public interface UserDAO { - public UserPO FindByUserid(int userid); - - -} +package mapperDAO; + +import org.springframework.stereotype.Repository; + +import domain.UserPO; + +@Repository("UserDAO") +public interface UserDAO { + public UserPO FindByUserid(int userid); + + +} diff --git a/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java b/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java index cde0854..2504e58 100644 --- a/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java +++ b/后端的都放着里面/zxlogin/src/main/java/service/LoginService.java @@ -1,8 +1,8 @@ -package service; - -import domain.UserPO; - -public interface LoginService{ - - public UserPO FindByUserid(int userid); -} +package service; + +import domain.UserPO; + +public interface LoginService{ + + public UserPO FindByUserid(int userid); +} diff --git a/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java b/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java index 4a35451..c32d701 100644 --- a/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java +++ b/后端的都放着里面/zxlogin/src/main/java/serviceimpl/LoginServiceImpl.java @@ -1,22 +1,22 @@ -package serviceimpl; - -import mapperDAO.UserDAO; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.stereotype.Component; - -import domain.UserPO; -import service.LoginService; - -@Component("LoginServiceImpl") -public class LoginServiceImpl implements LoginService{ - @Autowired@Qualifier("UserDAO") - private UserDAO userDAO; - - - public UserPO FindByUserid(int userid){ - return this.userDAO.FindByUserid(userid); - } - -} +package serviceimpl; + +import mapperDAO.UserDAO; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.stereotype.Component; + +import domain.UserPO; +import service.LoginService; + +@Component("LoginServiceImpl") +public class LoginServiceImpl implements LoginService{ + @Autowired@Qualifier("UserDAO") + private UserDAO userDAO; + + + public UserPO FindByUserid(int userid){ + return this.userDAO.FindByUserid(userid); + } + +} diff --git a/后端的都放着里面/zxlogin/src/main/resources/generatorConfig.xml b/后端的都放着里面/zxlogin/src/main/resources/generatorConfig.xml index 1568a4d..6a98719 100644 --- a/后端的都放着里面/zxlogin/src/main/resources/generatorConfig.xml +++ b/后端的都放着里面/zxlogin/src/main/resources/generatorConfig.xml @@ -1,49 +1,49 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
\ No newline at end of file diff --git a/后端的都放着里面/zxlogin/src/main/resources/mapper/LoginMapper.xml b/后端的都放着里面/zxlogin/src/main/resources/mapper/LoginMapper.xml index 849a6c6..2423725 100644 --- a/后端的都放着里面/zxlogin/src/main/resources/mapper/LoginMapper.xml +++ b/后端的都放着里面/zxlogin/src/main/resources/mapper/LoginMapper.xml @@ -1,19 +1,19 @@ - - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/zxlogin/src/main/resources/mybatis.xml b/后端的都放着里面/zxlogin/src/main/resources/mybatis.xml index 60a680b..27b1f5e 100644 --- a/后端的都放着里面/zxlogin/src/main/resources/mybatis.xml +++ b/后端的都放着里面/zxlogin/src/main/resources/mybatis.xml @@ -1,5 +1,5 @@ - - - + + + \ No newline at end of file diff --git a/后端的都放着里面/zxlogin/src/main/resources/spring-context.xml b/后端的都放着里面/zxlogin/src/main/resources/spring-context.xml index 34a92db..b674982 100644 --- a/后端的都放着里面/zxlogin/src/main/resources/spring-context.xml +++ b/后端的都放着里面/zxlogin/src/main/resources/spring-context.xml @@ -1,11 +1,11 @@ - - - - - - + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/zxlogin/src/main/resources/spring-mvc.xml b/后端的都放着里面/zxlogin/src/main/resources/spring-mvc.xml index c1090a2..5cc5ecd 100644 --- a/后端的都放着里面/zxlogin/src/main/resources/spring-mvc.xml +++ b/后端的都放着里面/zxlogin/src/main/resources/spring-mvc.xml @@ -1,27 +1,27 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/zxlogin/src/main/resources/spring-mybatis.xml b/后端的都放着里面/zxlogin/src/main/resources/spring-mybatis.xml index a61f66a..c27408c 100644 --- a/后端的都放着里面/zxlogin/src/main/resources/spring-mybatis.xml +++ b/后端的都放着里面/zxlogin/src/main/resources/spring-mybatis.xml @@ -1,38 +1,38 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/zxlogin/src/main/webapp/WEB-INF/web.xml b/后端的都放着里面/zxlogin/src/main/webapp/WEB-INF/web.xml index eddd9a8..3d47f13 100644 --- a/后端的都放着里面/zxlogin/src/main/webapp/WEB-INF/web.xml +++ b/后端的都放着里面/zxlogin/src/main/webapp/WEB-INF/web.xml @@ -1,20 +1,20 @@ - - - Archetype Created Web Application - - - appServlet - org.springframework.web.servlet.DispatcherServlet - - contextConfigLocation - classpath:spring-*.xml - - 1 - - - appServlet - / - + + + Archetype Created Web Application + + + appServlet + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + classpath:spring-*.xml + + 1 + + + appServlet + / + \ No newline at end of file diff --git a/后端的都放着里面/zxlogin/target/classes/generatorConfig.xml b/后端的都放着里面/zxlogin/target/classes/generatorConfig.xml index 1568a4d..6a98719 100644 --- a/后端的都放着里面/zxlogin/target/classes/generatorConfig.xml +++ b/后端的都放着里面/zxlogin/target/classes/generatorConfig.xml @@ -1,49 +1,49 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
\ No newline at end of file diff --git a/后端的都放着里面/zxlogin/target/classes/mapper/LoginMapper.xml b/后端的都放着里面/zxlogin/target/classes/mapper/LoginMapper.xml index 849a6c6..2423725 100644 --- a/后端的都放着里面/zxlogin/target/classes/mapper/LoginMapper.xml +++ b/后端的都放着里面/zxlogin/target/classes/mapper/LoginMapper.xml @@ -1,19 +1,19 @@ - - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/zxlogin/target/classes/mybatis.xml b/后端的都放着里面/zxlogin/target/classes/mybatis.xml index 60a680b..27b1f5e 100644 --- a/后端的都放着里面/zxlogin/target/classes/mybatis.xml +++ b/后端的都放着里面/zxlogin/target/classes/mybatis.xml @@ -1,5 +1,5 @@ - - - + + + \ No newline at end of file diff --git a/后端的都放着里面/zxlogin/target/classes/spring-context.xml b/后端的都放着里面/zxlogin/target/classes/spring-context.xml index 34a92db..b674982 100644 --- a/后端的都放着里面/zxlogin/target/classes/spring-context.xml +++ b/后端的都放着里面/zxlogin/target/classes/spring-context.xml @@ -1,11 +1,11 @@ - - - - - - + + + + + + \ No newline at end of file diff --git a/后端的都放着里面/zxlogin/target/classes/spring-mvc.xml b/后端的都放着里面/zxlogin/target/classes/spring-mvc.xml index c1090a2..5cc5ecd 100644 --- a/后端的都放着里面/zxlogin/target/classes/spring-mvc.xml +++ b/后端的都放着里面/zxlogin/target/classes/spring-mvc.xml @@ -1,27 +1,27 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/zxlogin/target/classes/spring-mybatis.xml b/后端的都放着里面/zxlogin/target/classes/spring-mybatis.xml index a61f66a..c27408c 100644 --- a/后端的都放着里面/zxlogin/target/classes/spring-mybatis.xml +++ b/后端的都放着里面/zxlogin/target/classes/spring-mybatis.xml @@ -1,38 +1,38 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF b/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF index 39c705b..e769f0a 100644 --- a/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF +++ b/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF @@ -1,5 +1,5 @@ -Manifest-Version: 1.0 -Built-By: zhujiehuang -Build-Jdk: 1.8.0_152 -Created-By: Maven Integration for Eclipse - +Manifest-Version: 1.0 +Built-By: zhujiehuang +Build-Jdk: 1.8.0_152 +Created-By: Maven Integration for Eclipse + diff --git a/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/maven/zxtsglxt/zxlogin/pom.properties b/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/maven/zxtsglxt/zxlogin/pom.properties index 1abe114..c982709 100644 --- a/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/maven/zxtsglxt/zxlogin/pom.properties +++ b/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/maven/zxtsglxt/zxlogin/pom.properties @@ -1,7 +1,7 @@ -#Generated by Maven Integration for Eclipse -#Thu Jan 10 00:26:11 CST 2019 -version=0.0.1-SNAPSHOT -groupId=zxtsglxt -m2e.projectName=zxlogin -m2e.projectLocation=D\:\\sts worksapce\\zxlogin -artifactId=zxlogin +#Generated by Maven Integration for Eclipse +#Thu Jan 10 00:26:11 CST 2019 +version=0.0.1-SNAPSHOT +groupId=zxtsglxt +m2e.projectName=zxlogin +m2e.projectLocation=D\:\\sts worksapce\\zxlogin +artifactId=zxlogin diff --git a/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/maven/zxtsglxt/zxlogin/pom.xml b/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/maven/zxtsglxt/zxlogin/pom.xml index 597b3f8..cb03fef 100644 --- a/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/maven/zxtsglxt/zxlogin/pom.xml +++ b/后端的都放着里面/zxlogin/target/m2e-wtp/web-resources/META-INF/maven/zxtsglxt/zxlogin/pom.xml @@ -1,21 +1,21 @@ - - 4.0.0 - zxtsglxt - zxlogin - war - 0.0.1-SNAPSHOT - zxlogin Maven Webapp - http://maven.apache.org - - - junit - junit - 3.8.1 - test - - - - zxlogin - - + + 4.0.0 + zxtsglxt + zxlogin + war + 0.0.1-SNAPSHOT + zxlogin Maven Webapp + http://maven.apache.org + + + junit + junit + 3.8.1 + test + + + + zxlogin + + diff --git a/后端的都放着里面/zxnew.sql b/后端的都放着里面/zxnew.sql index 5159bed..7a77bf5 100644 --- a/后端的都放着里面/zxnew.sql +++ b/后端的都放着里面/zxnew.sql @@ -1,132 +1,132 @@ -CREATE DATABASE IF NOT EXISTS `真香图书管理系统` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */; -USE `真香图书管理系统`; --- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) --- --- Host: localhost Database: 真香图书管理系统 --- ------------------------------------------------------ --- Server version 8.0.13 - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; - SET NAMES utf8 ; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; - --- --- Table structure for table `book` --- - -DROP TABLE IF EXISTS `book`; -/*!40101 SET @saved_cs_client = @@character_set_client */; - SET character_set_client = utf8mb4 ; -CREATE TABLE `book` ( - `book_id` int(20) NOT NULL, - `book_name` varchar(45) NOT NULL, - `book_author` varchar(20) NOT NULL, - `book_num` int(5) NOT NULL, - `book_sort` varchar(20) NOT NULL, - `book_image` varchar(45) DEFAULT NULL, - PRIMARY KEY (`book_id`,`book_name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `book` --- - -LOCK TABLES `book` WRITE; -/*!40000 ALTER TABLE `book` DISABLE KEYS */; -INSERT INTO `book` VALUES (1,'中国史学入门','顾颉刚',10,'历史人文类',NULL),(2,'明朝那些事儿','石悦',10,'历史人文类',NULL),(3,'袁氏当国','唐德刚',10,'历史人文类',NULL),(4,'天朝的崩溃','茅海建',10,'历史人文类',NULL),(5,'东晋门阀政治','田余庆',10,'历史人文类',NULL),(6,'通俗天文学','(美)西蒙·纽康 ',10,'自然科学类',NULL),(7,'自私的基因','[英]理查德·道金斯',10,'自然科学类',NULL),(8,'发现之旅','托尼赖斯',10,'自然科学类',NULL),(9,'宇宙之书','约翰.D.巴罗',10,'自然科学类',NULL); -/*!40000 ALTER TABLE `book` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `borrowrecord` --- - -DROP TABLE IF EXISTS `borrowrecord`; -/*!40101 SET @saved_cs_client = @@character_set_client */; - SET character_set_client = utf8mb4 ; -CREATE TABLE `borrowrecord` ( - `s_id` int(20) NOT NULL, - `book_id` int(20) NOT NULL, - `s_name` varchar(20) NOT NULL, - `book_name` varchar(20) NOT NULL, - `book_num` int(5) NOT NULL, - PRIMARY KEY (`s_id`,`book_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `borrowrecord` --- - -LOCK TABLES `borrowrecord` WRITE; -/*!40000 ALTER TABLE `borrowrecord` DISABLE KEYS */; -/*!40000 ALTER TABLE `borrowrecord` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `manager` --- - -DROP TABLE IF EXISTS `manager`; -/*!40101 SET @saved_cs_client = @@character_set_client */; - SET character_set_client = utf8mb4 ; -CREATE TABLE `manager` ( - `m_id` int(20) NOT NULL, - `m_password` varchar(20) NOT NULL, - PRIMARY KEY (`m_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `manager` --- - -LOCK TABLES `manager` WRITE; -/*!40000 ALTER TABLE `manager` DISABLE KEYS */; -INSERT INTO `manager` VALUES (1,'000000'),(2,'000000'); -/*!40000 ALTER TABLE `manager` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `student` --- - -DROP TABLE IF EXISTS `student`; -/*!40101 SET @saved_cs_client = @@character_set_client */; - SET character_set_client = utf8mb4 ; -CREATE TABLE `student` ( - `s_id` int(20) NOT NULL, - `s_password` varchar(20) NOT NULL, - `s_name` varchar(20) NOT NULL, - PRIMARY KEY (`s_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `student` --- - -LOCK TABLES `student` WRITE; -/*!40000 ALTER TABLE `student` DISABLE KEYS */; -INSERT INTO `student` VALUES (20160801,'123456','xzy'),(20160802,'123456','zxy'),(20160803,'123456','myj'),(20160804,'123456','zjh'); -/*!40000 ALTER TABLE `student` ENABLE KEYS */; -UNLOCK TABLES; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - --- Dump completed on 2019-01-11 10:30:38 +CREATE DATABASE IF NOT EXISTS `真香图书管理系统` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */; +USE `真香图书管理系统`; +-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) +-- +-- Host: localhost Database: 真香图书管理系统 +-- ------------------------------------------------------ +-- Server version 8.0.13 + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; + SET NAMES utf8 ; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `book` +-- + +DROP TABLE IF EXISTS `book`; +/*!40101 SET @saved_cs_client = @@character_set_client */; + SET character_set_client = utf8mb4 ; +CREATE TABLE `book` ( + `book_id` int(20) NOT NULL, + `book_name` varchar(45) NOT NULL, + `book_author` varchar(20) NOT NULL, + `book_num` int(5) NOT NULL, + `book_sort` varchar(20) NOT NULL, + `book_image` varchar(45) DEFAULT NULL, + PRIMARY KEY (`book_id`,`book_name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `book` +-- + +LOCK TABLES `book` WRITE; +/*!40000 ALTER TABLE `book` DISABLE KEYS */; +INSERT INTO `book` VALUES (1,'中国史学入门','顾颉刚',10,'历史人文类',NULL),(2,'明朝那些事儿','石悦',10,'历史人文类',NULL),(3,'袁氏当国','唐德刚',10,'历史人文类',NULL),(4,'天朝的崩溃','茅海建',10,'历史人文类',NULL),(5,'东晋门阀政治','田余庆',10,'历史人文类',NULL),(6,'通俗天文学','(美)西蒙·纽康 ',10,'自然科学类',NULL),(7,'自私的基因','[英]理查德·道金斯',10,'自然科学类',NULL),(8,'发现之旅','托尼赖斯',10,'自然科学类',NULL),(9,'宇宙之书','约翰.D.巴罗',10,'自然科学类',NULL); +/*!40000 ALTER TABLE `book` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `borrowrecord` +-- + +DROP TABLE IF EXISTS `borrowrecord`; +/*!40101 SET @saved_cs_client = @@character_set_client */; + SET character_set_client = utf8mb4 ; +CREATE TABLE `borrowrecord` ( + `s_id` int(20) NOT NULL, + `book_id` int(20) NOT NULL, + `s_name` varchar(20) NOT NULL, + `book_name` varchar(20) NOT NULL, + `book_num` int(5) NOT NULL, + PRIMARY KEY (`s_id`,`book_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `borrowrecord` +-- + +LOCK TABLES `borrowrecord` WRITE; +/*!40000 ALTER TABLE `borrowrecord` DISABLE KEYS */; +/*!40000 ALTER TABLE `borrowrecord` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `manager` +-- + +DROP TABLE IF EXISTS `manager`; +/*!40101 SET @saved_cs_client = @@character_set_client */; + SET character_set_client = utf8mb4 ; +CREATE TABLE `manager` ( + `m_id` int(20) NOT NULL, + `m_password` varchar(20) NOT NULL, + PRIMARY KEY (`m_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `manager` +-- + +LOCK TABLES `manager` WRITE; +/*!40000 ALTER TABLE `manager` DISABLE KEYS */; +INSERT INTO `manager` VALUES (1,'000000'),(2,'000000'); +/*!40000 ALTER TABLE `manager` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `student` +-- + +DROP TABLE IF EXISTS `student`; +/*!40101 SET @saved_cs_client = @@character_set_client */; + SET character_set_client = utf8mb4 ; +CREATE TABLE `student` ( + `s_id` int(20) NOT NULL, + `s_password` varchar(20) NOT NULL, + `s_name` varchar(20) NOT NULL, + PRIMARY KEY (`s_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `student` +-- + +LOCK TABLES `student` WRITE; +/*!40000 ALTER TABLE `student` DISABLE KEYS */; +INSERT INTO `student` VALUES (20160801,'123456','xzy'),(20160802,'123456','zxy'),(20160803,'123456','myj'),(20160804,'123456','zjh'); +/*!40000 ALTER TABLE `student` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2019-01-11 10:30:38