- 博客(17)
- 资源 (2)
- 收藏
- 关注
原创 了解Prompt Engineering
提示工程是AI使用中不可或缺的一门技术,甚至可以说是一门科学。我们通过精心设计的Prompt,可以为模型提供特定的上下文、说明以及示例,帮助LLMs(大语言模型)理解我们的提问,同时做出响应,结果可以是一段文字、一张图片或者音频、视频等不同内容。例如,ChatGPT是当前一种非常优秀的生成式AI模型,只需要以几个单词或句子作为输入起点,就能够阐述几乎任何主题的内容,并且可以对上下文有记忆能力。尽管如此,ChatGPT也并不会每次回答出满意的结果,它更需要精确而详细的指令才能理解所需的响应。
2024-05-22 19:11:22
737
1
原创 SpringBoot集成elasticsearch
SpringBoot集成elasticsearch1. 引入jar包2. 配置项3. esConfig4. elasticTools5. 注意点参考:1. 引入jar包//elastic searchcompile('org.elasticsearch:elasticsearch:7.10.1')compile('org.elasticsearch.client:elasticsearch-rest-client:7.10.1')compile('org.elasticsearch.client:
2021-05-13 15:49:30
302
原创 Redisson序列化方式替换为fastjson
Redisson序列化方式替换为fastjsonredisson初始化org.redisson.config.ConfigFastJsonCodec我们在使用redisson时,若不适用序列化,则对开发人员不友好,而默认的Jackson可能会引发死循环异常。同时Jackson引入的包过多,所以引入Fastjsonredisson初始化 /** * Create sync/async Redisson instance with default config * *
2021-05-06 17:12:39
4349
原创 mac安装docker图形界面
docker search docker==> Formulaedocker docker-machine-driver-vmwaredocker-clean docker-machine-driver-vultrdocker-completion docker-machine-driver-xhyvedocker-co.
2021-02-26 23:56:41
1115
转载 mac 通过brew 安装 docker
安装virtual boxbrew cask install virtualbox安装 docker 和 docker-machinebrew install dockerbrew install docker-machine初始化 Virtual Box 的 default 虚拟机docker-machine create --driver virtualbox default
2021-02-26 23:27:15
1212
原创 Http请求外部接口返回308
问题现状postman可以正常请求,但是后端代码请求返回,protocol=http/1.1, code=308, message=Permanent Redirect308重定向是什么状态重定向编码,有301、302和307、308,一般我们遇到的都是浏览器端的302重定向,其他几个很少遇到。下面是一篇关于这几种状态码的介绍HTTP 中的 301、302、303、307、308 响应状态码如何解决先说一下我是如何解决的,原本请求的是http协议,与接口方了解后,有https协议,换..
2021-01-13 10:55:52
10197
2
原创 mybaitis-plus 代码生成
mybaitis-plus 代码生成1. Generator.java2. controller.java.vm3. entity.java.vm4. mapper.java.vm5. mapper.xml.vm6. service.java.vm7. serviceImpl.java.vm参考1. Generator.java@SpringBootTest@RunWith(SpringRunner.class)public class MybatisGenerator { /**
2020-10-30 14:04:26
308
1
原创 反射创建对象(Mybatis 对象工厂类实现)
public <T> T create(Class<T> type) { return create(type, null, null); } @SuppressWarnings("unchecked") public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArg..
2020-10-10 15:32:15
247
原创 SpringBoot集成jackson 日期的序列化和反序列化配置
项目经常遇到日期处理的问题,故做个总结。Date类型没有设置日期格式增加配置spring: jackson: #日期格式化 date-format: yyyy-MM-dd HH:mm:ss serialization: #格式化输出 indent_output: true #忽略无法转换的对象 fail_on_empty_beans: false #设置空如何序列化 defaultPropertyInc
2020-09-06 17:27:01
6139
原创 Mac安装mysql服务
miuchendeMacBook-Pro:~ miaochen$ mysql_secure_installationSecuring the MySQL server deployment.Connecting to MySQL using a blank password.VALIDATE PASSWORD PLUGIN can be used to test passwordsand improve security. It checks the strength of password
2020-08-09 20:15:00
208
原创 phpStudy vscode 搭建debug调试
下载地址phpstudy:https://www.xp.cn/download.htmlvscode:https://code.visualstudio.com/设置phpstudy版本:7.3.4nts[Xdebug]zend_extension=D:/phpstudy_pro/Extensions/php/php7.3.4nts/ext/php_xdebug.dllxdebug.collect_params=1xdebug.collect_return=1xdebug.auto_.
2020-07-27 17:51:12
760
原创 nexus maven 私服搭建(mac)
nexus 3nexus 的作用下载安装配置mvn deploy问题nexus 的作用指定私服的中央地址、将自己的Maven项目指定到私服地址、从私服下载中央库的项目索引、从私服仓库下载依赖组件、将第三方项目jar上传到私服供其他项目组使用下载下载地址:https://www.sonatype.com/download-oss-sonatype百度网盘:链接: https://pan.baidu.com/s/1zrKiwe46Fa6-aVXUYNpUuQ 提取码: 55x7安装解压后,目录b
2020-06-15 23:48:17
373
原创 spring boot启动失败,没有报错信息
当spring boot 启动失败,返回信息只有Process finished with exit code 0我们可以在启动的main函数加上异常捕获 try { SpringApplication.run(TiangongSpringBootDemoApplication.class, args); } catch (Exception e...
2020-03-01 17:41:10
1334
原创 javax.management.InstanceNotFoundException: org.springframework.boot:type=Admin,name=SpringApplica异常
javax.management.InstanceNotFoundException: org.springframework.boot:type=Admin,name=SpringApplication at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor....
2020-02-29 22:23:23
3211
原创 ant design按需加载组件和样式
增加组件$ yarn add react-app-rewired customize-cra修改package.json/* package.json */"scripts": {- "start": "react-scripts start",+ "start": "react-app-rewired start",- "build": "react-scri...
2020-02-20 23:40:28
615
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人