摘要:
Spring Security 安全与权限 安全:虽然属于应用的非功能性需求,但是在 Web 开发中,是非常重要的一个方面,应该在应用开发的初期就考虑进来。 市面上比较有名的安全框架有:Shiro、SpringSecurity Spring Security 是一个功能强大且高度可定制的身份验证和访 阅读全文
摘要:
任务 异步任务 在 service 包下建一个 AsyncService 类,编写一个方法,假装正在处理数据,使用线程设置一些延时,模拟同步等待的情况 @Service public class AsyncService { public void hello(){ try { Thread.sle 阅读全文
摘要:
Spring Data 对于数据访问层,无论是 SQL(关系型数据库)还是 NOSQL(非关系型数据库),Spring Boot 底层都是采用 Spring Data 的方式进行统一处理。 Spring Data 也是 Spring 中与 Spring Boot、Spring Cloud 等齐名的知 阅读全文
摘要:
入门程序 入门程序编写步骤 1、创建基础项目 Spring 官方提供了非常方便的工具(快速生成的网站)让我们快速构建应用,IDEA 中也集成了这个网站。 Spring Initializr:https://start.spring.io/ **创建方式一:**使用 Spring Initializr 阅读全文
摘要:
问题描述 SpringBoot 启动 web 项目之后出现:java.lang.UnsatisfiedLinkError: D:\Tomcat\apache-tomcat-9.0.36\bin\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA 32 阅读全文