markerhub / vueblog Goto Github PK
View Code? Open in Web Editor NEW一个前后端分离的简单博客案例,适合刚入门vue,学前后端分离的童鞋!
Home Page: https://www.bilibili.com/video/BV1PQ4y1P7hZ/
License: Apache License 2.0
一个前后端分离的简单博客案例,适合刚入门vue,学前后端分离的童鞋!
Home Page: https://www.bilibili.com/video/BV1PQ4y1P7hZ/
License: Apache License 2.0
package.json
中 要添加一些脚本吗?
可以吧开发文档放到 Github 上吗,放在掘金上看起来不方便,
或者以公众号的形式回复,获取开发文档的 Markdown 文档
ShiroConfig中对ShiroFilterFactoryBean做了配置,而ShiroFilterFactoryBean实现了BeanPostProcessor接口,导致所有依赖AccountRealm的Service被提前初始化,递归初始化Service依赖的Service,无法受到Spring AOP的代理导致事务失效!!!
导致事务失效!!!
具体查看启动时Spring日志打印信息:
[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:376] INFO - Bean 'userServiceImpl' of type [com.markerhub.service.impl.UserServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
BUG处理方法是在依赖的Service上加@lazy开启懒加载模式
Dear
我在照着 掘金 的文章写代码时候,在实体校验那一块遇到问题。
原文中写道
我们使用springboot框架作为基础,那么就已经自动集成了Hibernate validatior。
可是我是手动添加了如下的maven依赖之后, 才解决了 @NotBlank
等注解can not be resolved的问题,请问这是什么原因呢?
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.1.0.Final</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.el</artifactId>
<version>3.0.1-b11</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator-cdi</artifactId>
<version>6.1.0.Final</version>
</dependency>
您好,看了您在掘金的文档,其中AccountController中的登录方法只是对密码错误的情况做了抛异常处理,没有看到登录相关的代码(因为之前使用shiro做认证的时候都会调用subject.login(token)),为什么在项目中没有找到相关的代码呢?水平有限,请您指教!谢谢!
同一个浏览器下只有直接登陆页面的会显示已登录,其他新开的tab前端会显示未登录,但jwt生效,能访问http://localhost:8080/blog/add 或 http://localhost:8080/blog/1/edit
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool] with root cause
该怎么处理呢?
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.