上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页

5-Spring Cloud alibaba-3-nacos服务注册发现

摘要: 在实际开发中,我们会把所有服务都注册到nacos注册中心上,由nacos去维护和管理我们的所有服务; 通过添加一个starter依赖:spring-cloud-starter-alibaba-nacos-discovery它通过自动配置、注解以及Spring Boot 编程模型与Nacos无缝集成, 阅读全文
posted @ 2023-04-04 10:30 companion 阅读(36) 评论(0) 推荐(0) 编辑

4-Spring Cloud alibaba-2-nacos运行环境部署

摘要: 1、下载nacos最新的二进制压缩包; 下载地址:https://github.com/alibaba/nacos/releases 2、解压下载下来的nacos最新的二进制压缩包; tar -zxvf nacos-server-1.3.1.tar.gzcd nacos/bin 3、启动nacos 阅读全文
posted @ 2023-04-04 09:44 companion 阅读(12) 评论(0) 推荐(0) 编辑

3-Spring Cloud alibaba-1-nacos简介

摘要: Nacos是阿里巴巴2018年7月推出来的一个开源项目,是一个更易于构建云原生应用的动态服务注册与发现、配置管理和服务管理平台;(Nacos:纳科斯) Nacos致力于快速实现动态服务注册与发现、服务配置、服务元数据及流量管理; Nacos 属于Spring cloud alibaba下的一个组件; 阅读全文
posted @ 2023-04-04 09:42 companion 阅读(11) 评论(0) 推荐(0) 编辑

27-springboot-thymeleaf内置对象

摘要: 1、内置web对象 thymaleaf内置的web对象,可以直接在模板中使用,这些对象由#号开头: #request: 相当于HttpServletRequest 对象,这是Thymeleaf 3.x版本,若是Thymeleaf 2.x版本使用 #httpServletRequest; ${#req 阅读全文
posted @ 2023-04-03 16:24 companion 阅读(147) 评论(0) 推荐(0) 编辑

26-springboot-thymeleaf字符串拼接-常量-符号

摘要: Thymeleaf 字符串拼接 一种是字符串拼接: <span th:text="'当前是第'+${sex}+'页 ,共'+${sex}+'页'"></span> 另一种更简洁的方式,使用“|”减少了字符串的拼接: <span th:text="|当前是第${sex}页,共${sex}页|"></s 阅读全文
posted @ 2023-04-03 16:23 companion 阅读(224) 评论(0) 推荐(0) 编辑

25-springboot-thymeleaf的常见属性

摘要: th:action <form id="login" th:action="@{/login}">......</form> th:method <form id="login" th:action="@{/login}" th:method="post">......</form> th:href 阅读全文
posted @ 2023-04-03 16:04 companion 阅读(24) 评论(0) 推荐(0) 编辑

24-springboot-thymeleaf的表达式

摘要: 1.添加热部署,为了测试不用频繁重启 <!--热部署插件--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</ 阅读全文
posted @ 2023-04-03 16:02 companion 阅读(8) 评论(0) 推荐(0) 编辑

23-springboot集成thymeleaf

摘要: Spring Boot 官方推荐前端不使用JSP,推荐使用thymeleaf来替代JSP技术; Thymeleaf是一种模板技术,该模板技术也采用Java语言开发的; 但是thymeleaf是另外一家公司开源做的,并不属于springboot,springboot只是很好地集成这种模板技术,作为前端 阅读全文
posted @ 2023-04-03 15:20 companion 阅读(61) 评论(0) 推荐(0) 编辑

22-springboot应用监控-actuator

摘要: 可以做成页面监控(springboot-admin),而不是json的格式,看起来会更方便。 在生产环境中,有时可能需要监控服务的可用性,spring-boot 的 actuator 就是提供了对应用的配置查看、健康检查、相关功能统计等,可以通过HTTP,JMX来访问这些监控功能;(端点) 如何使用 阅读全文
posted @ 2023-04-03 14:40 companion 阅读(119) 评论(0) 推荐(0) 编辑

21-springboot为什么不推荐使用jsp

摘要: 参考文章及实现方式 https://www.zhihu.com/question/61385975 阅读全文
posted @ 2023-04-03 13:49 companion 阅读(9) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 23 下一页