启动报异常: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applica ...
分类:
编程语言 时间:
2020-04-26 21:26:31
阅读次数:
96
开始: import com.alibaba.fastjson.JSONObject; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import or ...
分类:
其他好文 时间:
2020-04-26 20:54:30
阅读次数:
75
springboot Cache #使用缓存 使用springboot的缓存时添加依赖, 或直接使用redis的starter <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-start ...
分类:
编程语言 时间:
2020-04-26 01:33:15
阅读次数:
62
thymeleaf模板头文件: xmlns:th="http://www.thymeleaf.org" <!-- thymeleaf模板 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b ...
分类:
其他好文 时间:
2020-04-26 01:23:26
阅读次数:
267
1、配置类package com.configuration;import com.bean.Person;import com.tools.service.Service001;import org.springframework.context.annotation.Bean;import or ...
分类:
其他好文 时间:
2020-04-25 14:21:01
阅读次数:
55
一.创建spring boot项目 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <depe ...
分类:
编程语言 时间:
2020-04-25 12:39:31
阅读次数:
76
依赖的导入 在maven项目创建好以后找到目录下的pom.xml在<dependencies>标签中加入 例 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <ve ...
分类:
其他好文 时间:
2020-04-25 10:45:06
阅读次数:
64
@Reference是dubbo的注解,也是注入,他一般注入的是分布式的远程服务的对象,需要dubbo配置使用。 1.@Autowiredorg.springframework.beans.factory.annotation.AutowiredSpringBoot项目中常用。简单来说就是引入由Sp ...
分类:
其他好文 时间:
2020-04-25 01:24:56
阅读次数:
626
@SpringBootApplication 废话不多说,我们直接贴出来SpringBoot的官方给出的源码: package org.springframework.boot.autoconfigure; @Target(ElementType.TYPE)@Retention(RetentionP ...
分类:
移动开发 时间:
2020-04-25 01:19:28
阅读次数:
100
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</f ...
分类:
编程语言 时间:
2020-04-24 22:01:47
阅读次数:
93