codecrucible

SpringBoot connects to iFlytek Spark model to implement dialogue

Application address https://xinghuo.xfyun.cn/sparkapi?scr=price Apply for 2 million Tokens for free Development documentation https://www.xfyun.cn/doc/spark/Web.html#_1-Interface Description There are related demos at the bottom of the page for reference. introduce The interface is returned in segments in the form of sockets, and non-http requests are relatively cumbersome. The official only provides a relatively simple demo. Dependencies <!–okhttp3–> <dependency>…

Read More

springboot jpa paging query methods (two types)! ! !

springboot jpa paging query methods (two types) 1.PagingAndSortingRepository interface 2. @Query annotation custom query method Summarize This article introduces two commonly used methods for Spring Data JPA paging queries. 1. PagingAndSortingRepository interface Create a Repository interface that inherits from PagingAndSortingRepository, and use agreed naming rules on method names to define query methods. Spring Data JPA…

Read More

SpringBoot 3 new features

Table of contents 1. GraalVM 1.1 Generate local executable application 1.2 Generate docker image 2. Support virtual threads 2.1 Stress test when virtual thread is not enabled 2.2 Stress test when virtual thread is enabled 3. HTTP Interface 1. GraalVM Using GraalVM to compile SpringBoot applications into local executable image files can significantly improve startup…

Read More

springboot + uniapp implements single file upload and image echoing

1. Use the uni-file-picker component tag For specific usage, please see the introduction of uni-file-picker on the official website of uniapp. Front-end code The code is as follows. It is uploaded to the backend through uni.uoloadFile and returns url. The address is assigned value for image echo. <template> <view class=”container”> <uni-file-picker file-mediatype=”image” mode=”grid” @select=”select” />…

Read More

Detailed explanation of the use of spring.profiles

This article explains the usage and differences between spring.profiles.active and spring.profiles.include Article Directory Business scene spring.profiles.active property Specified at startup spring.profiles.includeProperty Configuration method Configuration location Configuration differences Use and differentiate with examples *Test 1 Test 2 Test three Write a program to view the activated yml file Summary of this article Business scene When we…

Read More

_Explore the infinite possibilities of portable Ruby: Introduction and technical analysis of Homebrew Portable Ruby

Explore the infinite possibilities of portable Ruby: Introduction and technical analysis of Homebrew Portable Ruby 1. Project introduction In the open source world, there are always some tools that can make your eyes shine. Today, we would like to recommend to you a project that makes Ruby developers excited-Homebrew Portable Ruby. This is not just…

Read More