提交demo代码

This commit is contained in:
2025-03-04 17:38:41 +08:00
parent 755b0383f7
commit 107f28a7a6
19 changed files with 748 additions and 0 deletions
@@ -0,0 +1,24 @@
# 应用服务 WEB 访问端口
server.port=9090
# DataSource configuration using HikariCP (default connection pool in Spring Boot)
spring.datasource.url=jdbc:mysql://120.78.126.4:5455/rag_flow?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
spring.datasource.username=root
spring.datasource.password=infini_rag_flow
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
# HikariCP specific properties (optional)
spring.datasource.hikari.maximum-pool-size=10
spring.datasource.hikari.minimum-idle=5
spring.datasource.hikari.idle-timeout=300000
spring.datasource.hikari.max-lifetime=1800000
spring.datasource.hikari.connection-timeout=30000
mybatis-plus:
#mapper配置文件
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.example.demo.model #需要配置成你当前包下的实体类路径
configuration:
#开启驼峰命名
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.example.demo.mapper.ElectricityBillMapper">
<select id="queryElectricityByDate" resultType="com.example.demo.model.ElectricityBill" >
select * from electricity_bill
</select>
</mapper>
@@ -0,0 +1,6 @@
<html>
<body>
<h1>hello word!!!</h1>
<p>this is a html page</p>
</body>
</html>