• HOME
  • SEARCH
  • TOPICS
  • DATA

  • Spring Boot 获取 URL 中 PathVariable 的值

    @PathVariable @GetMapping("/api/post/{postId}") public Post getPost(@PathVariable Integer postId) {

    2024-04-01, Views: 1802 , Topics: Spring Boot

  • Spring Boot 判断 URL 地址是否匹配 Controller 路径

    PathMatcher match方法第一个参数是Controller的地址,第二个参数是需要匹配的URL地址,可以是指定的字符串或者请求的地址。 @Contr

    2024-03-29, Views: 1946 , Topics: Spring Boot

  • Spring Boot 工程作为 SDK 依赖库方式自动注入 Bean 类

    需求 抽取公共模块,以SDK的方式被宿主引入。在这个SDK中,自动注入@Configuration、@Bean、@Component、@Service、@Rep

    2024-03-28, Views: 1509 , Topics: Spring Boot

  • Spring Boot 打包成 SDK 去除 application.yaml 配置文件

    Maven pom.xml 在build节点下,添加resources节点,并添加excludes规则,将application.yaml配置排除在SDK的ja

    2024-03-27, Views: 2430 , Topics: Spring Boot

  • Spring Boot 报错 the request was rejected because no multipart boundary was found

    错误信息 the request was rejected because no multipart boundary was found org.spri

    2024-03-25, Views: 3393 , Topics: Spring Boot

  • Spring Boot 3 Thymeleaf ctx 对象

    ctx Thymeleaf中提供的#ctx是WebEngineContext对象。 <p th:text="${#ctx}"></p>

    2024-03-22, Views: 1398 , Topics: Spring Boot Thymeleaf

  • Spring Boot 3 Thymeleaf 获取 HTTP 状态码

    ctx Thymeleaf提供了#ctx可以获取Status Code。 思路 通过ctx获取到HttpServletResponse就能获取状态码了。 代码

    2024-03-21, Views: 1576 , Topics: Spring Boot Thymeleaf

  • Spring Boot 3 Invalid return type for async method (only Future and void supported): class java.lang.Boolean

    错误信息 Invalid return type for async method (only Future and void supported): clas

    2024-03-20, Views: 3089 , Topics: Spring Boot

  • Spring Boot 3.2 启用虚拟线程后 ThreadPoolTaskScheduler 报错

    错误信息 *************************** APPLICATION FAILED TO START *************************** Descripti

    2024-03-19, Views: 2543 , Topics: Spring Boot juc Spring

  • Spring Boot 3 自动加载配置类新方式

    说明 从Spring Boot 2.7开始,原先的自动加载方式标记为过时,Spring Boot 3中原先的方式被移除,无法通过原先的方式加载自定义自动配置类。

    2024-03-18, Views: 1856 , Topics: Spring Boot

  • Flowable 工作流集成到 Spring Boot 工程

    添加依赖 全部功能 包含所有Flowable引擎的功能:Process、CMMN、DMN、IDM。 <dependency> <gro

    2024-03-13, Views: 1774 , Topics: Flowable Spring Boot

  • Flowable 配置不同数据库 Schema 做到数据隔离

    需求 后端服务使用了PostgreSQL,有自己的数据库,不想让Flowable的数据库在业务的数据库中。 实现 使用PostgreSQL的不同Schema,但

    2024-03-12, Views: 2837 , Topics: Flowable Spring Boot

  • Flowable 配置单独数据库

    环境 Spring Boot 3、Flowable 7。 代码 yaml 配置 flowable: datasource: url: jdbc:po

    2024-03-11, Views: 2374 , Topics: Flowable Spring Boot

  • Spring Boot Thymeleaf URL 链接

    @{} 使用@{}表示URL链接,GET请求中使用()表示请求参数。 <link rel="shortcut icon" th:href="@{/favi

    2023-08-29, Views: 1751 , Topics: Spring Boot Thymeleaf

  • Spring Boot Thymeleaf 字符串拼接

    使用 + 号 将常量字符串使用单引号''括起来,变量使用${}表示,使用+号联结。 <a th:href="'/p/' + ${post.id} + '.

    2023-08-28, Views: 1911 , Topics: Spring Boot Thymeleaf

  • Spring Boot Thymeleaf 时间处理类

    Java LocalDateTime 类 获取当前时间 <div th:text="${#temporals.createNow()}"></

    2023-08-25, Views: 1816 , Topics: Spring Boot Thymeleaf

  • Spring Boot Thymeleaf 获取常量

    需求 使用Thymeleaf在HTML中获取Java代码中的常量。 常量 public interface Endpoint { String HOM

    2023-08-24, Views: 1934 , Topics: Spring Boot Thymeleaf

  • Spring Boot Thymeleaf 获取 Bean 等容器中的对象

    需求 获取@Bean、@Component、@Configuration等Spring自动注入到的容器对象。 ${@} 使用${@}语法,获取容器中的对象。 其

    2023-08-23, Views: 1754 , Topics: Spring Boot Thymeleaf

  • Spring Boot Thymeleaf 在 JavaScript 代码中的使用

    [[]] 在JavaScript代码中渲染变量,使用[[${var}]],会转义特殊HTML字符。 [()] 在JavaScript代码中渲染变量,使用[(${

    2023-08-22, Views: 2567 , Topics: Spring Boot Thymeleaf JavaScript

  • Spring Boot Thymeleaf 3 获取请求的 Uri 路径

    需求 由于Thymeleaf3跟随Spring Boot3进行了版本更新,Java扩展包的命名空间由JavaEE改成了JakartaEE。 Thymeleaf3

    2023-08-21, Views: 2434 , Topics: Spring Boot Thymeleaf

  • First Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next Last

©2026 沪ICP备18012661号-1 阿里云

Messages Sitemap GitHub