上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 68 下一页
摘要: 1 import javax.imageio.ImageIO; 2 import javax.swing.*; 3 import java.awt.*; 4 import java.awt.image.BufferedImage; 5 import java.io.File; 6 import ja 阅读全文
posted @ 2021-05-17 16:20 SpringCore 阅读(803) 评论(0) 推荐(0)
摘要: 1 -- 登录 2 mysql -u root -p 3 -- 查询mysql用户 4 select user,host,authentication_string from mysql.user; 5 -- 切换到mysql库 6 use mysql; 7 -- 修改root用户host 8 up 阅读全文
posted @ 2021-02-23 14:10 SpringCore 阅读(6926) 评论(0) 推荐(0)
摘要: Debian 默认apt-get源为从cd介质安装 ⒈备份官方默认更新源文件 cp /etc/apt/sources.list /etc/apt/sources.list.bak 备份官方更新源文件 ⒉编辑 1.打开 vi /etc/apt/sources.list 2.清空内容 ESC后进入命令模 阅读全文
posted @ 2020-12-10 18:50 SpringCore 阅读(6657) 评论(0) 推荐(1)
摘要: 在微服务领域,使用Spring应用对另外一个应用的API发起请求的场景并不罕见。 Spring应用可以采用多张方式来消费REST API,包括以下几种方式 ⒈RestTemplate Spring核心框架提供的简单、同步REST客户端。 为了避免单调的样板代码,Spring提供了RestTempla 阅读全文
posted @ 2020-12-02 17:56 SpringCore 阅读(179) 评论(0) 推荐(0)
摘要: 使用Spring Data REST将会自动为集成Spring Data的项目暴露API接口。 ⒈,创建集成Spring Data项目【略】 Spring Data能够基于我们定义的接口自动创建repository实现。 <dependency> <groupId>org.springframewo 阅读全文
posted @ 2020-12-02 10:57 SpringCore 阅读(903) 评论(0) 推荐(0)
摘要: 超媒体是一种创建自描述API的方式,即API所返回的资源中会包含相关资源的链接,客户端只需要了解最少的API URL 信息就能导航整个应用API。 Spring HATEOAS项目为Spring提供了超链接的支持,它提供了一些类和资源装配器(assembler),在SpringMVC控制器返回资源之 阅读全文
posted @ 2020-12-02 10:03 SpringCore 阅读(370) 评论(0) 推荐(0)
摘要: Spring profile是一种条件化的配置,在运行时,Spring根据哪些profile处于激活状态,可以使用或忽略不同的bean、配置类和配置属性。 ⒈,定义方式 1.基于约定创建另外一个配置文件 文件名称要遵守如下约定: application-{profile名称}.yml or appl 阅读全文
posted @ 2020-11-27 16:23 SpringCore 阅读(950) 评论(0) 推荐(0)
摘要: 1,在项目的“src/main/resources/META-INF/”下新建"additional-spring-configuration-metadata.json"文件,并在其中声明配置属性的元数据 { "properties": [ { "name": "cn.coreqi", "type 阅读全文
posted @ 2020-11-27 15:04 SpringCore 阅读(188) 评论(0) 推荐(0)
摘要: 原文地址: https://www.oschina.net/news/118690/the-future-of-net-standard 作者:局长 微软 .NET 官方博客近日发布了一篇谈论 .NET Standard 未来的文章。文章作者是 .NET 项目经理 Immo,他在文章中指出未来 .N 阅读全文
posted @ 2020-09-18 09:31 SpringCore 阅读(778) 评论(0) 推荐(0)
摘要: 原文地址:https://www.oschina.net/news/118103/new-spring-oauth-server 原文作者:码农小胖哥 今年四月份Spring官方发起Spring Authorization Server项目。该项目是由Spring Security主导的一个社区驱动 阅读全文
posted @ 2020-08-23 18:03 SpringCore 阅读(487) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 68 下一页