oukingtim / king-admin Goto Github PK
View Code? Open in Web Editor NEWking-admin是一个超酷的前后端分离的基础权限管理后台,前端:angularJs+bootstrap+gulp,后端:spring-boot+mybatis-plus(分java版和kotlin版)
License: MIT License
king-admin是一个超酷的前后端分离的基础权限管理后台,前端:angularJs+bootstrap+gulp,后端:spring-boot+mybatis-plus(分java版和kotlin版)
License: MIT License
为什么用的还是angularjs1 是否考虑下升级为2 或者4
如果像现在这样的独立id,会有很多重复数据。或者给role_id+menu_id加一个unique constraint也行。
对sys_user_role也是一样道理。
看了一下登录没有任何特殊处理,只是用shiro来判断,请问前端不需要对sessionid做特殊处理,比如renren-fast那样,是因为用代理了,前端和后端共享session了么?
renren-fast是对token做了特殊处理,大神能讲下咱这个项目的登录是怎么回事吗?
演示地址打不开了
完全按照讲解执行的,但最终运行KingAdminJavaApplication.java时会报错,如下:
Thu Jun 21 14:10:34 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2018-06-21 14:10:34.164 ERROR 15452 --- [reate-126286359] com.alibaba.druid.pool.DruidDataSource : create connection error, url: jdbc:mysql://localhost:3306/king-admin?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8, errorCode 0, state 08001
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
at sun.reflect.GeneratedConstructorAccessor55.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.Util.getInstance(Util.java:387)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:917)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2332)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2085)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:795)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44)
at sun.reflect.GeneratedConstructorAccessor46.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1452)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1516)
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2080)
Caused by: java.lang.NullPointerException: null
at com.mysql.jdbc.ConnectionImpl.getServerCharset(ConnectionImpl.java:3005)
at com.mysql.jdbc.MysqlIO.sendConnectionAttributes(MysqlIO.java:1916)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1845)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1215)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2255)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2286)
... 12 common frames omitted
本人是编程菜鸟……刚接触前、后端开发,希望有大神可以指点!
有没有详细的前后端部署说明,部署了几次都失败了
最近在学后端使用kotlin开发,刚好找到这个资源,十分感谢
分开运行没问题,打包之后放到resources下面,登陆之后一直转圈圈,没有对后端的请求,前端也没有报错
java用了lombok注解简化代码,请下载lombok插件 如果不前后端分离部署,可以cd king-admin-angularjs 运行 gulp 命令打包生成static 然后替换到java或kotlin的resource里
Error: Cannot find module 'wrench' at Function.Module._resolveFilename (module.js:489:15) at Function.Module._load (module.js:439:25) at Module.require (module.js:517:17) at require (internal/module.js:11:18) at Object.<anonymous> (/Users/tianzhen/MyFiles/MyWorkFiles/Java_WEB/Code/后台管理1漂亮/king-admin-master/king-admin-angularjs/gulpfile.js:4:14) at Module._compile (module.js:573:30) at Object.Module._extensions..js (module.js:584:10) at Module.load (module.js:507:32) at tryModuleLoad (module.js:470:12) at Function.Module._load (module.js:462:3)
我以前不是做javaweb的,刚开始学后台,所以还停留在用intellij或eclipse写代码运行的这种思维上, 而楼主的代码却能直接运行, 我很奇怪都没有启动servlet容器,甚至电脑上都没安装任何web服务器, 这个网页是如何运行在2000端口的呢?
我只希望将代码能导入到intellij中运行, 打包出war, 然后发布到jetty服务器中去...求楼主赐教
Hello,I'm Tom.
Nice to meet you.:)
Now we offer a top talent guard program, which provides long-term professional recommendation, technical cooperation and exchange, business consultation and other related services for senior talents.
This service is free for life, and provides personalized career service according to your different stages.
I think you are quite suitable for some of our business customers,if you are interested, please add my WeChat to get more information about it. My WeChat number is qq3046472037.
Look forward to your news!
Thank you.
代码有问题,根本运行不了啊, 都是错误。。。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.