Eureka Client注册到Eureka Server 注册到Eureka Server主要是三个: maven依赖 <!--eureka client--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactI ...
分类:
其他好文 时间:
2020-07-03 09:13:42
阅读次数:
51
1.引入了前缀,解决了前缀问题 http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd 组件扫描 将组件扫描<context:component-scan b ...
分类:
移动开发 时间:
2020-07-03 01:19:01
阅读次数:
91
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
分类:
编程语言 时间:
2020-07-01 22:06:42
阅读次数:
61
1、pom文件添加: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>tru ...
分类:
编程语言 时间:
2020-06-30 23:01:10
阅读次数:
107
1、以eureka server启动类为例,将启动类改为以下内容: import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.boot.SpringApplication;import org. ...
分类:
编程语言 时间:
2020-06-30 20:39:42
阅读次数:
85
java使用redis 很简单,看我的github的例子就行 spirng整合redis,这里用xml配置方式实现 2.1导包 <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis ...
分类:
编程语言 时间:
2020-06-30 20:24:26
阅读次数:
80
1.pom文件下配置依赖: <!-- 热跟新 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</opti ...
分类:
其他好文 时间:
2020-06-30 13:18:49
阅读次数:
74
本文代码使用的是Spring Boot 2.1.1.RELEASE 版本 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version ...
分类:
编程语言 时间:
2020-06-30 13:00:18
阅读次数:
51
异常: org.springframework.orm.hibernate3.HibernateSystemException: No default constructor for entity Caused by: org.hibernate.InstantiationException: No ...
分类:
其他好文 时间:
2020-06-30 12:50:04
阅读次数:
55
最近再做spring junit 做单元测试中,报 Failed to load ApplicationContext 错误。 import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.bea ...
分类:
移动开发 时间:
2020-06-30 12:38:56
阅读次数:
60