测试代码: package com.github.abel533.event; import com.github.abel533.C; import org.springframework.context.ApplicationEvent; import org.springframework.c ...
分类:
移动开发 时间:
2020-03-14 16:28:49
阅读次数:
70
1.修改application.yml配置 logging: level: org.springframework.web: TRACE 2.启动项目后,查看地址 ...
分类:
编程语言 时间:
2020-03-14 15:11:14
阅读次数:
118
1.添加依赖 <!-- 仪表盘监控 --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId ...
分类:
编程语言 时间:
2020-03-14 14:28:38
阅读次数:
79
javaweb项目在调试controller层时可能会需要重复部署打开服务器浪费大量的时间,spring和junit提供了测试的方法mockmvc maven依赖(spring版本5.1.5.RELEASE) <dependency> <groupId>org.springframework</gr ...
分类:
编程语言 时间:
2020-03-14 12:29:58
阅读次数:
88
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework ...
分类:
移动开发 时间:
2020-03-13 18:52:07
阅读次数:
92
<?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-03-13 14:33:18
阅读次数:
63
Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection idea File > Settings > [Project Settings] > SQL Dialec ...
分类:
数据库 时间:
2020-03-13 13:17:27
阅读次数:
80
使用SpringBoot实现文件的上传 springboot可以直接使用 org.springframework.web.multipart.MultipartFile 所以非常容易实现 一、首先是简单的单文件上传 先在index.html页面下写一个简单的form表单 <h1>单文件</h1><f ...
分类:
编程语言 时间:
2020-03-12 21:51:27
阅读次数:
80
1、build.gradle中引入组件compile("org.springframework.cloud:spring-cloud-starter-config:2.1.1.RELEASE")compile("org.springframework.cloud:spring-cloud-starter-openfeign:2.1.3.RELEASE")2、
分类:
编程语言 时间:
2020-03-12 15:54:58
阅读次数:
160
hibernate与spring整合 方式一:无障碍整合:带Hibernate配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xs ...
分类:
Web程序 时间:
2020-03-11 11:16:41
阅读次数:
88