11 2019 档案
摘要:redis.host=192.168.200.128 redis.port=6379 redis.pass= redis.database=0 redis.maxIdle=300 redis.maxWait=3000 redis.testOnBorrow=true
阅读全文
摘要:applicationContext-redis.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w
阅读全文
摘要:导入依赖 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>4.1.6</version> </dependency> https://blog.csd
阅读全文
摘要:一:pom工程:作用1、管理版本;2、聚合工程1、版本管理。首先创建pom工程:new-->maven project-->勾上create a simple project。 ,这里才显示maven工程的不同所在,他有一个parent project,也即是父工程,也就是工程继承,理解工程继承也就
阅读全文
摘要:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.2.RELEASE</version></parent><dep
阅读全文
摘要:如果想把二者放在一个文件夹下,不做任何配置的情况会出现错误 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.offcn.mapper.UserMapper.getUserList
阅读全文
摘要:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.2.RELEASE</version></parent><dep
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><map
阅读全文
摘要:#DB Configationspring.datasource.driver-class-name=com.mysql.jdbc.Driverspring.datasource.url=jdbc:mysql://127.0.0.1:3306/springbootspring.datasource.
阅读全文
摘要:#DB Configations and JPA Configations spring: datasource: driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/springboot username:
阅读全文
摘要:Authentication 权限 Caching 缓存 Context passing 内容传递 Error handling 错误处理 Lazy loading 懒加载 Debugging 调试 logging, tracing, profiling and monitoring 记录跟踪 优化
阅读全文
摘要:String和StringBuffer、StringBuilder的区别是什么?String为什么不可变: 相同点:三者都可以存储和操作字符串 不同点: 可变性: String类使用final关键字字符数组保存字符串(private final char value[]) 所有String对象是不可
阅读全文
摘要:byte<short=char<int <long<float<double 注意:byte short char int 在相互转化时都会转化为int类型而非较大的类型 int 以及 int以上的类型进行相互转换,会提升为较大的类型
阅读全文
摘要:导依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 配置数据源在(.yml中) sprin
阅读全文
摘要:创建密码 找到redis的安装目录bin,执行vim(vi) redis.conf 在 esc 下 找到requirepass( /requirepass) 设置密码 开启redis服务器 ./redis-server redis.conf 启动: ./redis-cli -h 192.168.11
阅读全文
摘要:传统方法 a: 创建web工程 b: 配置springmvc web.xml c: 编写controller d :部署tomact springboot 1 创建springboot 工程 必须继承spring-boot-stater-parent 导依赖 <dependency> <groupI
阅读全文
摘要:<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.7.0</version> </dependency> <dependency> <groupId>
阅读全文

浙公网安备 33010602011771号