欢迎来到天天文库
浏览记录
ID:27522129
大小:255.45 KB
页数:29页
时间:2018-12-03
《us六仔出售浅析java响应式编程(reactiveprogramming)》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、开发环境:US六仔出售dsluntan.com0:3393756370VX:170618635131、mysql-5.7.212、navicat(mysql客户端管理工具)3、idea20174、jdk95、tomcat8.56、springboot7>mybatis38、shiro9、maven项目开始:一、数据库设计:ei量issiohrolenaine:varch..intuser_name:vpass_word:vrid:int注:数据库三张表和spring整合shiro中的一模一样,在那边已经详细说明,这里直接大家看下三张表的ER阁。intp
2、ermission一name:•…rii:int图片发自简书App二、添加依赖,配置mybatis1、用idea新建SpringInitializr项目,项目结构如下:■gshiroE:developJavaworkspaceideaworkspaceshiro>.idea>.mvnvsrcv咖mainvjavavcom.zhu.shiro>controller>dao>entity>servicecAuthRealmcCredenttiaMatchercServletlnitializercShiroApplicationcShiroCon
3、figurationvresources>mappersstatictemplatesapplication.propertiesV•WCbdDD个艾件英需要自己新建,_用于存放前端资源v■pagesj5pindex.jspjsplogin.jspj5punauthorized.jsptest>target-.gitignoresqlini.sql=mvnw==mvnw.cmdITIpom.xmlashiro.imliiIhExternalLibraries图片发自简书App2、添加依赖:〈dependencies〉〈dependency〉4、ld>org>springframework•bootspring-boot-starter-web〈/dependency〉org.mybatis.spring.bootmybatis-spring-boot-starter1.3.2〈dependency〉mysql5、rtifactId>mysql-connector-javaruntimeorg.springframework.bootspring-boot-starter-tomcatprovided"scope>org.springframework.boot6、factId>spring-boot-starter-test〈/artifactId>test〈/dependency〉shiro-corel.2.3〈/dependency〉org.apache.shiroshiro-spring7、l.2.3〈/dependency〉com.alibabadruid1.0.20〈/version〉〈/dependency〉〈!--常用的工具包-->org-apache.commonscommons-lang33.48、cy〉〈dependency〉org
4、ld>org>springframework•bootspring-boot-starter-web〈/dependency〉org.mybatis.spring.bootmybatis-spring-boot-starter1.3.2〈dependency〉mysql5、rtifactId>mysql-connector-javaruntimeorg.springframework.bootspring-boot-starter-tomcatprovided"scope>org.springframework.boot6、factId>spring-boot-starter-test〈/artifactId>test〈/dependency〉shiro-corel.2.3〈/dependency〉org.apache.shiroshiro-spring7、l.2.3〈/dependency〉com.alibabadruid1.0.20〈/version〉〈/dependency〉〈!--常用的工具包-->org-apache.commonscommons-lang33.48、cy〉〈dependency〉org
5、rtifactId>mysql-connector-javaruntime
6、factId>spring-boot-starter-test〈/artifactId>test〈/dependency〉shiro-corel.2.3〈/dependency〉org.apache.shiroshiro-spring
7、l.2.3〈/dependency〉com.alibabadruid1.0.20〈/version〉〈/dependency〉〈!--常用的工具包-->org-apache.commonscommons-lang33.48、cy〉〈dependency〉org
8、cy〉〈dependency〉org
此文档下载收益归作者所有