目录Spring AI + ollama 本地搭建聊天 AI前期准备添加依赖配置文件聊天实现一、采用 Java 缓存对话信息controller效果图二、采用数据库保存对话信息实体类confiurationservices实现类controller效果图总结Spring AI