Redis缓存 引入starter: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 配置pr ...
分类:
其他好文 时间:
2020-02-03 18:45:47
阅读次数:
89
YAML 可以给实体类赋值 jsr303验证 springboot多环境配置 自动配置原理 初探 由以前的beans.xml手动配置文件 JavaConfig编写配置类 自动配置: pom.xml spring boot dependencies:核心依赖在父工程中! 我们在写或者引入一些Sprin ...
分类:
编程语言 时间:
2020-02-02 21:30:32
阅读次数:
78
Main方法 直接运行启动类main方法 遵循应用程序入口点的Java约定的标准方法。我们的main方法SpringApplication通过调用委托给Spring Boot的类run。 SpringApplication引导我们的应用程序,启动Spring,然后启动自动配置的Tomcat Web服 ...
分类:
编程语言 时间:
2020-02-02 13:49:06
阅读次数:
76
3、Spring Boot 的自动配置原理 package com.mmall; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootAp ...
分类:
编程语言 时间:
2020-02-01 21:25:28
阅读次数:
99
CONDITIONS EVALUATION REPORT Positive matches: AopAutoConfiguration matched: - @ConditionalOnProperty (spring.aop.auto=true) matched (OnPropertyCondit ...
分类:
编程语言 时间:
2020-02-01 16:40:21
阅读次数:
357
一、新建Spring Boot 工程 特殊勾选数据库相关两个依赖 Mysql Driver — 数据库驱动 Spring Data JDBC 二、配置文件application.properties 中配置数据库信息即可 1 #testjdbc数据库连接信息 2 spring.datasource. ...
分类:
数据库 时间:
2020-01-31 15:42:41
阅读次数:
75
Robot Framework安装准备 一、python3.6以上版本 安装过程中勾选“add python to path”,就可以自动配置好环境变量。 安装完成后在命令行输入python,如下图所示就是配置成功了。 二、在线安装robotframework 在命令行输入pip install r ...
1.Spring boot 阅读源码:需要看 1 和 2两项内容。 ⒈. XXXAutoConfiguration :获取自动xxx的配置类 ⒉.XXXProperties:自动配置类装配配置文件中自定义的内容 ⒊. 导入静态资源:webMvcAutoConfiguration webMvcAuto ...
分类:
编程语言 时间:
2020-01-29 23:15:09
阅读次数:
76
一、安装 1.首先安装node.js node.js是傻瓜式安装,会自动配置环境变量。 npm install webpack -g全局安装webpack 2.安装官方脚手架create-react-app npm install -g create-react-app 3.创建项目 create- ...
分类:
其他好文 时间:
2020-01-27 20:37:53
阅读次数:
58
前面遇到 导航已取消问题,总是无法解决,在网上查看了很多方法,要么无法解决,要么要重新修改注册表,都没能解决我的问题。今天偶然发现,可以在internet属性中进入 连接--》局域网设置--》自动配置时选择“自动检测设置”,去掉“使用自动配置脚本”选项,保存,退出。问题解决。 解决方法: 转自:ht ...