推荐
专栏
教程
课程
飞鹅
本次共找到2715条
spring自定义注解
相关的信息
Easter79
•
3年前
spring数据源DriverManagerDataSource和BasicDataSource
说起来没什么好说的东西,Java后台的配置还是照样的配,服务一直调用着正欢的时候发现跑个1000条记录tomcat就会有报错,大致错误如下:org.springframework.transaction.CannotCreateTransactionException:CouldnotopenHibernateSession
亚瑟
•
4年前
Spring Boot API 服务开发指南
SpringBoot大大简化了使用Spring框架开发Web应用时的配置工作,使用它只需添加相关依赖包,即可通过零配置或少量配置来运行一个Web应用。本文将使用SpringBoot来开发一个API服务,同时支持REST和GraphQL两种协议。内容包括使用Querydsl来替换JPQL以便以类型安全的方式动态构建S
Stella981
•
3年前
Spring Cloud Gateway 全局通用异常处理
为什么需要全局异常处理在传统SpringBoot应用中,我们@ControllerAdvice来处理全局的异常,进行统一包装返回//摘至springcloudalibabaconsole模块处理@ControllerAdvicepublicclassConsol
Stella981
•
3年前
Spring Boot XSS 攻击过滤插件使用
XSS是什么XSS(CrossSiteScripting)攻击全称跨站脚本攻击,为了不与CSS(CascadingStyleSheets)名词混淆,故将跨站脚本攻击简称为XSS,XSS是一种常见web安全漏洞,它允许恶意代码植入到提供给其它用户使用的页面中。xss攻击流程!(https:
Stella981
•
3年前
Spring Cloud 入门 之 Hystrix 篇(四)
原文地址:SpringCloud入门之Hystrix篇(四)(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.extlight.com%2F2019%2F03%2F19%2FSpringCloud%25E5%2585%25A5%25E9%2597%25A8%2
Stella981
•
3年前
Spring Security OAuth 个性化token
个性化Token目的默认通过调用/oauth/token返回的报文格式包含以下参数{"access_token":"e6669cdfb6cd43feaf5cf91a65041382","token_type":"bearer","refre
Stella981
•
3年前
Spring Security 新特性 Lambda DSL 使用
\项目推荐:SpringCloud、SpringSecurityOAuth2的RBAC权限管理系统欢迎关注(https://gitee.com/log4j/pig)LambdaDSL概述SpringSecurity5.2对LambdaDSL语法的增强,允许使用lambda配置HttpSec
Easter79
•
3年前
Spring高级应用之注入各类集合
先定义一个测试类,由于本文将要介绍注入各种集合时如何配置,故这个类包含各种集合,类名和属性名不好取,没有特殊含义:public class Test { private List<String listTest; private Map<String, Object mapTest; priv
Stella981
•
3年前
Spring Boot上传文件+部署到Tomcat
1概述SpringBoot上传文件,根据官方uploadfile示例(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fspring.io%2Fguides%2Fgs%2Fuploadingfiles%2F)修改的,可以打成war放到服务器上(笔者使用的是Tomcat)
Stella981
•
3年前
Spring Boot 配置随机数技巧
SpringBoot支持在系统加载的时候配置随机数。添加config/random.properties文件,添加以下内容:随机32位MD5字符串user.random.secret${random.value}随机int数字user.random.intNumber${random.int}
1
•••
193
194
195
•••
272