- 博客(9)
- 收藏
- 关注
原创 使用SpringCloudConfig连接码云报错Cannot clone or checkout repository:xxx
使用SpringCloudConfig集中管理配置,将配置文件上传到码云(gitee.com),然后开始配置配置中心微服务。新建微服务,导入maven依赖:<dependencies> <dependency> <groupId>org.springframework.cloud</groupId> ...
2019-04-10 12:28:16 2614
原创 Spring-boot的application.properties(摘自 Spring-boot 1.4.4 官方文档)
# ===================================================================# COMMON SPRING BOOT PROPERTIES## This sample file is provided as a guideline. Do NOT copy it in its# entirety to your own appl...
2019-03-04 16:54:18 462
原创 Spring-boot 的启动器 (摘自 Spring-boot 1.4.4 官方文档)
1. Spring Boot application starters spring-boot-starter-thymeleaf 使用 Thymeleaf 视图构建 MVC Web 应用程序 spring-boot-starter-ws 使用 Spring Web 服务。1.4 不推荐使用,推荐使用 spring-boot-starter-web-services spri...
2019-03-04 16:45:08 698
原创 If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
今天学习SpringBoot,使用SpringBoot整合SpringMVC和SpringDataJpa后,写了一个简单的小demo,使用启动类启动后,出现了如下问题:***************************APPLICATION FAILED TO START***************************Description:Failed to auto...
2019-03-04 13:08:53 6992 2
原创 socket实现简易tomcat server
提供socket服务并实现请求的分发。服务器监听客户端请求——解析请求头——根据请求映射关系分发处理——调用service方法——执行doGet或doPost方法——响应请求。1、服务器持续监听客户端请求。/** * @author jiang * @Description Server */public class Server { @SuppressWarnings(...
2019-02-28 16:21:15 490
原创 BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schem...
2019-02-25 11:00:51 1172
原创 不使用spring的自动装配,获取容器中管理的对象
package com.abc.utils;import org.springframework.beans.BeansException;import org.springframework.context.ApplicationContext;import org.springframework.context.ApplicationContextAware;import org....
2019-01-18 10:54:51 429
原创 Java面向对象-继承浅析
继承: 就是在已有类的基础上构建出新的类,新的类称为已有类的子类,子类会自动拥有父类所有的非私有的属性和行为,并且还能扩展自己特有的功能。继承的特点: 1、java中只支持单继承,不支持多继承 2、支持多层继承(形成继承体系)继承需注意的问题: 1、子类只能继承父类非私有的成员(成员变量和成员方法) 2、父类的构造方法子类不能继承,但是可以...
2018-04-25 15:40:48 112
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人