上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 下载和安装 国内的软件,去官网下就行了,下载好后到其 bin 目录执行命令 startup.cmd -m standalone 服务就会启动 浏览器访问,能访问到 nacos 界面 小试牛刀 工程导入依赖 <!-- 当前服务注册到 nacos 需要 --> <dependency> <groupId 阅读全文
posted @ 2024-07-13 22:43 CyrusHuang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 下载安装 下载地址:https://developer.hashicorp.com/consul/install?product_intent=consul 解压出来只有个 exe 文件,在这个目录打开 shell,consul --version 查看版本,consul agent -dev 开发 阅读全文
posted @ 2024-07-13 10:55 CyrusHuang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 安装 卸载老版本(如果有) yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ 阅读全文
posted @ 2024-07-11 13:45 CyrusHuang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 自动配置工程 绑定配置文件,上逼格的 start 都支持自定义配置,我们也装像点~~ @ConfigurationProperties("cyrus.hello") public class CyrusHelloProperties { // 绑定配置文件 cyrus.hello.username 阅读全文
posted @ 2024-07-07 17:09 CyrusHuang 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 占坑 阅读全文
posted @ 2024-07-05 23:50 CyrusHuang 阅读(3) 评论(0) 推荐(0) 编辑
摘要: @SpringBootApplication 发现是一个复合注解 @SpringBootConfiguration、@EnableAutoConfiguration、@ComponentScan 由三个注解组合而来 @Target(ElementType.TYPE) @Retention(Reten 阅读全文
posted @ 2024-07-05 23:46 CyrusHuang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-07-05 20:07 CyrusHuang 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 都是 spring 支持的,@Import 我也是从 spring 的文章张直接复制出来的,那边文章详细解释了 bean 的方方面面,感兴趣可以去看 @Configuration、@Bean 相当于 spring 的配置文件,spring 在配置文件中可以配置 bean,用注解方式就是这样的 // 阅读全文
posted @ 2024-07-05 13:39 CyrusHuang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 依赖管理 父项目(一直网上找)spring-boot-dependencies 决定了当前 springboot 预先配置的所有依赖及版本 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dep 阅读全文
posted @ 2024-07-05 13:03 CyrusHuang 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 前面说了适配器执行 handler 怎么解析请求参数,现在看怎么响应参数,还是从具体执行 handler 的方法开始 // org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod#invo 阅读全文
posted @ 2024-07-04 13:57 CyrusHuang 阅读(2) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页