技术分享共16篇
JSON Web Token 入门教程-TOY论坛

JSON Web Token 入门教程

JSON Web Token(缩写 JWT)是目前最流行的跨域认证解决方案,本文介绍它的原理和用法。 一、跨域认证的问题 互联网服务离不开用户认证。一般流程是下面这样。 1、用户向服务器发送用户名和密码...
toywl666的头像-TOY论坛钻石会员toywl6662年前
07616
@RequestParam,@PathParam,@PathVariable等注解区别-TOY论坛

@RequestParam,@PathParam,@PathVariable等注解区别

@RequestParam 和 @PathVariable 注解是用于从request中接收请求的,两个都可以接收参数,关键点不同的是@RequestParam 是从request里面拿取值,而 @PathVariable 是从一个URI模板里面来...
Spring boot整合mybatis步骤-TOY论坛

Spring boot整合mybatis步骤

添加数据库以及mybatis maven依赖 jdbc:mybatis包含了spring-boot-starter-jdbc可以不用添加 <!-- mybatis --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <art...
Spring boot属性绑定-TOY论坛

Spring boot属性绑定

@PropertySourece() my.properties name=kil UserService.java 添加@PropertySource('my.properties')指定配置文件 引用@Value('${name}') package cn.kil.springboot_parameter.service; impor...
springboot项目使用advice做统一返回处理-TOY论坛

springboot项目使用advice做统一返回处理

ResponseBodyAdvice接口 public interface ResponseBodyAdvice<T> { // 是否支持advice功能 // true 支持,false 不支持 boolean supports(MethodParameter returnType, Class<? extends ...
广西移动光猫管理员超级密码收集-TOY论坛

广西移动光猫管理员超级密码收集

账号: telecomadmin (华为老款8321)密码: admintelecom 账号: CMCCAdmin(烽火)密码: aDm8H%MdA 账号:admin (中兴F623)密码:Cmcc10086# 账号:CMCCAdmin (新猫统一)密码:Cmcc10086#
node定时发送html格式邮件,带模板引擎编辑动态编辑html-TOY论坛

node定时发送html格式邮件,带模板引擎编辑动态编辑html

//引用模块 const nodemailer =require('nodemailer') const schedule =require('node-schedule') const path =require('path') const template=require('art-template') //模板路径 const view...
toywl666的头像-TOY论坛钻石会员toywl6662年前
04812
Spring Boot条件注解-TOY论坛

Spring Boot条件注解

ConditionalOnBean:是否存在某类或某个名字的BeanConditionalOnMissingBean:是否缺失某个某类或某个名字的BeanConditionalOnSingleCandidate:是否符合指定类型的Bean只有一个ConditionalOnCl...
toywl666的头像-TOY论坛钻石会员toywl6662年前
09111
curl 的用法指南-TOY论坛

curl 的用法指南

简介 curl 是常用的命令行工具,用来请求 Web 服务器。它的名字就是客户端(client)的 URL 工具的意思。 它的功能非常强大,命令行参数多达几十种。如果熟练的话,完全可以取代 Postman 这一类...
Spring Boot项目全局异常处理方式-TOY论坛

Spring Boot项目全局异常处理方式

SpringBoot中,@ControllerAdvice 即可开启全局异常处理,使用该注解表示开启了全局异常的捕获,我们只需在自定义一个方法使用@ExceptionHandler注解然后定义捕获异常的类型即可对这些捕获的异...