随笔分类 - # spring boot
摘要:/* * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi
阅读全文
摘要:参考(12条消息) spring-boot整合redis,自定义序列化方式,RedisUtil工具类_燕某的博客-CSDN博客 在RedisTemplate.java源码中我们可以看到,我们可以看到这样一段代码 if (defaultSerializer == null) { defaultSeri
阅读全文
摘要:1,添加起步依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency>
阅读全文
摘要:1,添加mybatis起步依赖 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.2.0</version>
阅读全文
摘要:1,profiles方式 spring.profiles.active= 2,jvm 参数配置 -Dspring.profiles.active=dev 3,java -jar xxx.jar --spring.profiles.active=dev Spring Boot支持多环境配置,允许你为不
阅读全文
摘要:yml/yaml参考:YAML 入门教程 | 菜鸟教程 (runoob.com) #自定义简单类型数据,记得【值前面要有一个空格】 username: zhangsan #pojo类型数据 #${username}参数引用 user: id: 1 username: ${username} pass
阅读全文

浙公网安备 33010602011771号