文章目录 1. 基础概念1)Spring Data REST2)JPA(Java Persistence API) 2. 添加依赖3. 创建JPA实体4. 创建JPA Repository5. 启用Spring Data REST6. 启动服务7. 测试8. 总结 Spring Data REST 是 Spring Framework 生态系统中的一…
目录
核心代码 consumers.py
from channels.generic.websocket import WebsocketConsumer
from channels.exceptions import StopConsumer
import datetime
import time
from asgiref.sync import async_to_sync
class ChatConsumer(WebsocketConsumer):def websocket_conne…
1. change the chmod of folders
sudo chown -R $USER:$USER /home/anaconda3
2. torch.cuda.is_available()返回false
change conda installation to pip. zai qi ta huan jing pei zhi dou mei wen ti de qing kuang xia , zai shi shi zhe ge fang fa.
# CUDA 11.7
con…