自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 springboot整合springsecurity快速上手

springSecurity 配置代码package com.example.springsecurity.config;import com.fasterxml.jackson.databind.ObjectMapper;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.

2020-11-02 17:21:16 266

原创 springboot整合RabbitMQ

RabbitMQ 5种消息分发机制application.ymlspring: application: name: rabbitmq-ying rabbitmq: host: localhost port: 5672 username: ying password: ying virtual-host: /yingpom.xml ...

2020-04-24 20:34:00 187

原创 SpringbootSecurity

1.pom文件<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apac...

2019-11-26 20:43:34 106

原创 SpringBoot+mybatis+Maven+redis+cache 缓存整合

pom.xml文件<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.ap...

2019-11-20 23:00:08 314

原创 SpringBoot 国际化

1.创建自己的国际化类import org.springframework.util.StringUtils;import org.springframework.web.servlet.LocaleResolver;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletRespo...

2019-10-29 20:37:59 91

原创 ssh + springboot + springsecurity + mysql整合

ssh + springboot + springsecurity + mysql整合1.build.gradle配置文件plugins { id 'org.springframework.boot' version '2.2.0.RELEASE' id 'io.spring.dependency-management' version '1.0.8.RELEASE' id 'java'...

2019-10-24 21:19:17 286

原创 Gradle + Springboot + SSM整合

1.配置文件application.propertiesspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driverspring.datasource.url=jdbc:mysql://127.0.0.1:3306/ssm_springboot?serverTimezone=UTC&characterEncoding=utf-...

2019-10-12 11:00:21 194

原创 Maven + SpringBoot 整合 SSM框架注解式开发

1.Maven pom.xml 配置如下<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:...

2019-10-11 17:33:11 153

原创 MongoDB分页查询

Springboot application.properties 配置文件spring.data.mongodb.database = mytestdbspring.data.mongodb.host = localhostspring.data.mongodb.port = 27017首先需要一个与数据库集合对应的实体类package com.mongodb.MongoDB;...

2019-09-27 17:32:04 150

原创 使用Spring Data MongoDB 对 Mongdb 进行增删改查

package com.mongodb.MongoDB;import static org.springframework.data.mongodb.core.query.Criteria.where;import static org.springframework.data.mongodb.core.query.Query.query;import static org.springfr...

2019-09-26 16:14:17 112

原创 SpringSecurity

1.实现WebSecurityConfigurerAdapter接口 1.1 重写configure(HttpSecurity http)方法 1.2 //请求授权 http.formLogin().and().authorizeRequests() //访问 "/" 和 "/home" 和 "/user" 路径的请求都允许 .antMatchers("/", "/login","/...

2019-09-10 20:47:57 90 3

原创 java httpClient post请求

import java.io.File;import java.io.IOException;import java.nio.charset.Charset;import java.util.ArrayList;import java.util.List;import org.apache.http.HttpResponse;import org.apache.http.NameVal...

2019-01-10 19:32:22 201

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除