feat(note): 初始化笔记服务模块

- 添加笔记、频道、话题等核心数据表结构
- 创建对应的数据访问对象(DO)和MyBatis映射文件
- 配置Spring Boot应用启动类及基础依赖
- 设置Nacos服务发现与配置中心相关配置
- 添加全局异常处理机制和响应码枚举定义
- 配置RedisTemplate以支持JSON序列化存储
- 定义日志输出格式及异步写入策略
- 新增笔记状态、类型、可见性等相关枚举类
- 配置MyBatis-Plus、MySQL、Druid等数据访问组件
- 添加Maven模块结构并集成到主项目中
This commit is contained in:
Hanserwei
2025-10-07 18:07:30 +08:00
parent eb74ebae8d
commit 665ea930fd
31 changed files with 919 additions and 8 deletions

View File

@@ -6,10 +6,10 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication
@EnableFeignClients(basePackages = "com.hanserwei.hannote")
public class HanNoteAuthApplication {
public class HannoteAuthApplication {
public static void main(String[] args) {
SpringApplication.run(HanNoteAuthApplication.class, args);
SpringApplication.run(HannoteAuthApplication.class, args);
}
}

View File

@@ -3,12 +3,6 @@ spring:
name: han-note-auth
profiles:
active: dev # 默认激活 dev 本地开发环境
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver # 指定数据库驱动类
# 数据库连接信息
url: ${spring.datasource.url}
username: ${spring.datasource.username} # 数据库用户名
password: ${spring.datasource.password} # 数据库密码
data:
redis:
database: 5 # Redis 数据库索引(默认为 0