怎么样模仿一个网站做简历学做巧裁缝官方网站

web/2025/9/28 18:58:19/文章来源:
怎么样模仿一个网站做简历,学做巧裁缝官方网站,小程序开发一个要多少钱,做兼职网站有哪些目录 1.私信列表 1.1 数据访问层 1.2 业务层 1.3 表现层 1.4 私信详情 2.发送列表 2.1 数据访问层 2.2 业务层 2.3 表现层 2.4 设置已读状态 1.私信列表 私信列表#xff1a;查询当前用户的会话列表#xff0c;每个会话只显示一条最新的私信、支持分页列表私信详情…目录 1.私信列表 1.1 数据访问层 1.2 业务层 1.3 表现层 1.4 私信详情 2.发送列表 2.1 数据访问层 2.2 业务层 2.3 表现层 2.4 设置已读状态  1.私信列表 私信列表查询当前用户的会话列表每个会话只显示一条最新的私信、支持分页列表私信详情查询某个会话所包含的私信、支持分页显示 在 entity 包下新建 Message 实体类 package com.example.demo.entity;import java.util.Date; /*** 私信列表实体类*/ public class Message {private int id;private int fromId;private int toId;private String conversationId;//会话 idprivate String content;private int status;private Date createTime;public int getId() {return id;}public void setId(int id) {this.id id;}public int getFromId() {return fromId;}public void setFromId(int fromId) {this.fromId fromId;}public int getToId() {return toId;}public void setToId(int toId) {this.toId toId;}public String getConversationId() {return conversationId;}public void setConversationId(String conversationId) {this.conversationId conversationId;}public String getContent() {return content;}public void setContent(String content) {this.content content;}public int getStatus() {return status;}public void setStatus(int status) {this.status status;}public Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime createTime;}Overridepublic String toString() {return Message{ id id , fromId fromId , toId toId , conversationId conversationId \ , content content \ , status status , createTime createTime };} } 1.1 数据访问层 在 dao 包下创建 MessageMapper 接口 查询当前用户的会话列表,针对每个会话只返回一条最新的私信根据用户id查询并且支持分页功能查询当前用户的会话数量根据用户 id 查询查询某个会话所包含的私信列表根据会话 id 查询并且支持分页功能查询某个会话所包含的私信数量根据会话 id 查询查询未读私信的数量根据用户 id 和 会话 id查询会话 id 动态拼接 package com.example.demo.dao;import com.example.demo.entity.Message;import java.util.List;/*** 私信列表数据访问层逻辑*/ public interface MessageMapper {//查询当前用户的会话列表,针对每个会话只返回一条最新的私信ListMessage selectConversations(int userId, int offset, int limit);//查询当前用户的会话数量int selectConversationCount(int userId);//查询某个会话所包含的私信列表ListMessage selectLetters(String conversationId, int offset, int limit);//查询某个会话所包含的私信数量int selectLetterCount(String conversationId);//查询未读私信的数量int selectLetterUnreadCount(int userId, String conversationId); } 在 resources 资源文件下的 mapper 中添加配置文件message-mapper ?xml version1.0 encodingUTF-8 ? !DOCTYPE mapperPUBLIC -//mybatis.org//DTD Mapper 3.0//ENhttp://mybatis.org/dtd/mybatis-3-mapper.dtd mapper namespacecom.example.demo.dao.MessageMapper!---私信列表配置文件--!--公用 sql--sql idselectFieldsid, from_id, to_id, conversation_id, content, status, create_time/sql!--查询当前用户的会话列表--select idselectConversations resultTypeMessageselect include refidselectFields/includefrom messagewhere id in (select max(id) from messagewhere status ! 2and from_id ! 1and (from_id #{userId} or to_id #{userId})group by conversation_id)order by id desclimit #{offset}, #{limit}/select!--查询当前用户的会话数量--select idselectConversationCount resultTypeintselect count(m.maxid) from (select max(id) as maxid from messagewhere status ! 2and from_id ! 1and (from_id #{userId} or to_id #{userId})group by conversation_id) as m/select!--查询某个会话所包含的私信列表--select idselectLetters resultTypeMessageselect include refidselectFields/includefrom messagewhere status ! 2and from_id ! 1and conversation_id #{conversationId}order by id desclimit #{offset}, #{limit}/select!--查询某个会话所包含的私信数量--select idselectLetterCount resultTypeintselect count(id)from messagewhere status ! 2and from_id ! 1and conversation_id #{conversationId}/select!--查询未读私信的数量--select idselectLetterUnreadCount resultTypeintselect count(id)from messagewhere status 0and from_id ! 1and to_id #{userId}if testconversationId!nulland conversation_id #{conversationId}/if/select/mapper 1.2 业务层 在 service 包下新建 MessageService 类业务查询 定义五个方法调用 Mapper实现业务即可注入 MessageMapper package com.example.demo.service;import com.example.demo.dao.MessageMapper; import com.example.demo.entity.Message; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service;import java.util.List;/*** 私信列表业务组件*/ Service public class MessageService {Autowiredprivate MessageMapper messageMapper;//查询当前用户的会话列表public ListMessage findConversations(int userId, int offset, int limit) {return messageMapper.selectConversations(userId, offset, limit);}//查询当前用户的会话数量public int findConversationCount(int userId) {return messageMapper.selectConversationCount(userId);}//查询某个会话所包含的私信列表public ListMessage findLetters(String conversationId, int offset, int limit) {return messageMapper.selectLetters(conversationId, offset, limit);}//查询某个会话所包含的私信数量public int findLetterCount(String conversationId) {return messageMapper.selectLetterCount(conversationId);}//查询未读私信的数量public int findLetterUnreadCount(int userId, String conversationId) {return messageMapper.selectLetterUnreadCount(userId, conversationId);} } 1.3 表现层 在 controller 类下新建 MessageController 类处理私信详情请求 添加处理私信列表的方法声明私信路径请求为 GET 请求传入 Model、分页 Page实现查询功能注入 MessageService查询当前用户私信用户注入 HostHolder设置分页信息每页显示多少条数据、分页路径、一共多少条数据——查询当前会话的数据、传入 userId需要获取 User查询会话列表得到数据显示未读数量、每一次会话的未读数量、会话中包含多少条数据 声明集合用 Map 封装将多个数据存入 Map 中遍历列表新建 HashMap 重构数据存入遍历的每一次数据、存入未读详细数据用户 id、会话 id、存入多少条数量会话 id、显示当前用户相对应的用户头像寻找目标 id如果当前用户是消息的发起者目标就是接收人如果当前对象是消息的接收者目标就是发起者将目标对象存入 HashMap 中注入 UserService将得到的 HashMap 存入集合当中最后传入模板中 查询未读消息数量查询整个用户所有的未读消息数量传入 Model 中显示返回 Model 路径/site/letter package com.example.demo.controller;import com.example.demo.entity.Message; import com.example.demo.entity.Page; import com.example.demo.entity.User; import com.example.demo.service.MessageService; import com.example.demo.service.UserService; import com.example.demo.util.HostHolder; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod;import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map;/*** 私信列表表现层*/ Controller public class MessageController {//实现查询功能注入 MessageServiceAutowiredprivate MessageService messageService;//查询当前用户私信用户注入 HostHolderAutowiredprivate HostHolder hostHolder;Autowiredprivate UserService userService;//添加处理私信列表的方法RequestMapping(path /letter/list, method RequestMethod.GET)public String getLetterList(Model model, Page page) {//设置分页信息每页显示多少条数据、分页路径、一共多少条数据——查询当前会话的数据、传入 userId需要获取 UserUser user hostHolder.getUser();page.setLimit(5);page.setPath(/letter/list);page.setRows(messageService.findConversationCount(user.getId()));//查询会话列表得到数据(显示未读数量、每一次会话的未读数量、会话中包含多少条数据)//声明集合用 Map 封装将多个数据存入 Map 中ListMessage conversationList messageService.findConversations(user.getId(), page.getOffset(), page.getLimit());ListMapString, Object conversations new ArrayList();//遍历列表新建 HashMap 重构数据存入遍历的每一次数据、存入未读详细数据用户 id、会话 id// 、存入多少条数量会话 id、显示当前用户相对应的用户头像if (conversationList ! null) {for (Message message : conversationList) {MapString, Object map new HashMap();map.put(conversation, message);map.put(letterCount, messageService.findLetterCount(message.getConversationId()));map.put(unreadCount, messageService.findLetterUnreadCount(user.getId(), message.getConversationId()));//寻找目标 id如果当前用户是消息的发起者目标就是接收人如果当前对象是消息的接收者目标就是发起者int targetId user.getId() message.getFromId() ? message.getToId() : message.getFromId();//将目标对象存入 HashMap 中注入 UserServicemap.put(target, userService.findUserById(targetId));//将得到的 HashMap 存入集合当中conversations.add(map);}}//最后传入模板中model.addAttribute(conversations, conversations);// 查询未读消息数量查询整个用户所有的未读消息数量传入 Model 中显示返回 Model 路径/site/letterint letterUnreadCount messageService.findLetterUnreadCount(user.getId(), null);model.addAttribute(letterUnreadCount, letterUnreadCount);return /site/letter;} } 1.4 私信详情 在 controller 类下 MessageController 类添加私信详情方法 声明访问路径点击按钮查看会话详情需要传入会话 id在路径中包含会话 id查询方法为 GET 请求方法中获取路径中的会话 id 参数并且支持分页把模板传入设置分页信息每页显示多少条数据、分页路径、行数定义私信列表分页查询会话 id、分页用集合表示Message 封装 对发信人进行补充声明集合存放 Map遍历集合实例化 HashMap然后放入私信把 fromId 转化为 fromUser将 Map 放入集合中将集合发送给模板 补充上述的来自某个人的私信当前登陆用户与之对话目标的名字查询当前登录与之对话的用户显示出来创建私有方法传入 会话 id拆封会话 id与当前用户进行判断查询私信目标返回模板 //添加私信详情方法//声明访问路径点击按钮查看会话详情需要传入会话 id在路径中包含会话 id查询方法为 GET 请求RequestMapping(path /letter/detail/{conversationId}, method RequestMethod.GET)//方法中获取路径中的会话 id 参数并且支持分页把模板传入public String getLetterDetail(PathVariable(conversationId) String conversationId, Page page, Model model) {//设置分页信息每页显示多少条数据、分页路径、行数page.setLimit(5);page.setPath(/letter/datail/ conversationId);page.setRows(messageService.findLetterCount(conversationId));//定义私信列表分页查询会话 id、分页用集合表示Message 封装ListMessage letterList messageService.findLetters(conversationId, page.getOffset(), page.getLimit());//对发信人进行补充声明集合存放 MapListMapString, Object letters new ArrayList();//遍历集合实例化 HashMap然后放入私信把 fromId 转化为 fromUser将 Map 放入集合中if (letterList ! null) {for (Message message : letterList) {MapString, Object map new HashMap();map.put(letter, message);map.put(fromUser, userService.findUserById(message.getFromId()));letters.add(map);}}model.addAttribute(letters, letters);// 私信目标——补充上述的来自某个人的私信当前登陆用户与之对话目标的名字查询当前登录与之对话的用户显示出来model.addAttribute(target, getLetterTarget(conversationId));//查询私信目标返回模板return /site/letter-detail;}//创建私有方法传入 会话 id拆封会话 id与当前用户进行判断private User getLetterTarget(String conversationId) {String[] ids conversationId.split(_);int id0 Integer.parseInt(ids[0]);int id1 Integer.parseInt(ids[1]);if (hostHolder.getUser().getId() id0) {return userService.findUserById(id1);} else {return userService.findUserById(id0);}} 2.发送列表 发送私信采用异步的方式发送私信、发送成功后刷新私信列表设置已读访问私信详情时将显示的私信设置为已读状态 2.1 数据访问层 在 dao 包下的 MessageMapper 中添加消息、修改消息的状态的方法 //新增消息int insertMessage(Message message);//修改消息的状态:修改的状态为多个id使用集合int updateStatues(ListInteger ids, int status); 在配置文件 message.xml 实现SQL !--增加消息公共 sql--sql idinsertFieldsfrom_id, to_id, conversation_id, content, status, create_time/sql!--增加消息--insert idinsertMessage parameterTypeMessage keyPropertyidinsert into message(include refidinsertFields/include)values(#{fromId},#{toId},#{conversationId},#{content},#{status},#{createTime})/insert!--修改消息的状态--update idupdateStatusupdate message set status #{status}where id inforeach collectionids itemid open( separator, close)#{id}/foreach/update 2.2 业务层 在 MessageService 中新增消息方法 过滤标签过滤敏感词在创建一个方法把消息变成已读支持一次读取多条数据使用集合 //注入敏感词Autowiredprivate SensitiveFilter sensitiveFilter;//增加消息的方法public int addMessage(Message message) {message.setContent(HtmlUtils.htmlEscape(message.getContent()));message.setContent(sensitiveFilter.filter(message.getContent()));return messageMapper.insertMessage(message);}//创建一个方法把消息变成已读支持一次读取多条数据使用集合public int readMessage(ListInteger ids) {return messageMapper.updateStatus(ids, 1);} 2.3 表现层 在 MessageController 中去写增加消息的请求方法 声明访问路径请求方式为 POST 请求提交数据异步请求添加 ResponseBody 页面表单需要传入 发私信给谁接收人用户名、私信内容通过用户名查询用户得到 id在 Userservice 添加查询方法 //通过用户名查询用户得到 idpublic User findUserByName(String username) {return userMapper.selectByName(username);} 利用当前数据构造要插入的对象从当前用户取、发送给谁、会话 id两个id使用 _ 拼接id 小的在前面、内容、当前时间做插入调用 messageService如果没报错给页面返回状态0如果报错后面统一处理异常 //发送私信的方法RequestMapping(path /letter/send, method RequestMethod.POST)ResponseBody //异步请求//页面表单需要传入 发私信给谁接收人用户名、私信内容public String sendLetter(String toName, String content) {User target userService.findUserByName(toName);if (target null) {return CommunityUtil.getJSONString(1, 目标用户不存在!);}//利用当前数据构造要插入的对象从当前用户取、发送给谁、会话 id两个id使用 _ 拼接id 小的在前面、内容、当前时间Message message new Message();message.setFromId(hostHolder.getUser().getId());message.setToId(target.getId());if (message.getFromId() message.getToId()) {message.setConversationId(message.getFromId() _ message.getToId());} else {message.setConversationId(message.getToId() _ message.getFromId());}message.setContent(content);message.setCreateTime(new Date());//做插入调用 messageServicemessageService.addMessage(message);//如果没报错给页面返回状态0;如果报错后面统一处理异常return CommunityUtil.getJSONString(0);} 前端页面 index.xml !-- 内容 --div classmaindiv classcontainerdiv classrowdiv classcol-8h6b classsquare/b 来自 i classtext-success th:utext${target.username}落基山脉下的闲人/i 的私信/h6/divdiv classcol-4 text-rightbutton typebutton classbtn btn-secondary btn-sm onclickback();返回/buttonbutton typebutton classbtn btn-primary btn-sm data-togglemodal data-target#sendModal给TA私信/button/div/div!-- 弹出框 --div classmodal fade idsendModal tabindex-1 roledialog aria-labelledbyexampleModalLabel aria-hiddentruediv classmodal-dialog modal-lg roledocumentdiv classmodal-contentdiv classmodal-headerh5 classmodal-title idexampleModalLabel发私信/h5button typebutton classclose data-dismissmodal aria-labelClosespan aria-hiddentruetimes;/span/button/divdiv classmodal-bodyformdiv classform-grouplabel forrecipient-name classcol-form-label发给/labelinput typetext classform-control idrecipient-name th:value${target.username}/divdiv classform-grouplabel formessage-text classcol-form-label内容/labeltextarea classform-control idmessage-text rows10/textarea/div/form/divdiv classmodal-footerbutton typebutton classbtn btn-secondary data-dismissmodal取消/buttonbutton typebutton classbtn btn-primary idsendBtn发送/button/div/div/div/div!-- 提示框 --div classmodal fade idhintModal tabindex-1 roledialog aria-labelledbyhintModalLabel aria-hiddentruediv classmodal-dialog modal-lg roledocumentdiv classmodal-contentdiv classmodal-headerh5 classmodal-title idhintModalLabel提示/h5/divdiv classmodal-body idhintBody发送完毕!/div/div/div/div!-- 私信列表 --ul classlist-unstyled mt-4li classmedia pb-3 pt-3 mb-2 th:eachmap:${letters}a hrefprofile.htmlimg th:src${map.fromUser.headerUrl} classmr-4 rounded-circle user-header alt用户头像 /adiv classtoast show d-lg-block rolealert aria-liveassertive aria-atomictruediv classtoast-headerstrong classmr-auto th:utext${map.fromUser.username}落基山脉下的闲人/strongsmall th:text${#dates.format(map.letter.createTime,yyyy-MM-dd HH:mm:ss)}2019-04-25 15:49:32/smallbutton typebutton classml-2 mb-1 close data-dismisstoast aria-labelClosespan aria-hiddentruetimes;/span/button/divdiv classtoast-body th:utext${map.letter.content}君不见, 黄河之水天上来, 奔流到海不复回!/div/div/li/ul!-- 分页 --nav classmt-5 th:replaceindex::paginationul classpagination justify-content-centerli classpage-itema classpage-link href#首页/a/lili classpage-item disableda classpage-link href#上一页/a/lili classpage-item activea classpage-link href#1/a/lili classpage-itema classpage-link href#2/a/lili classpage-itema classpage-link href#3/a/lili classpage-itema classpage-link href#4/a/lili classpage-itema classpage-link href#5/a/lili classpage-itema classpage-link href#下一页/a/lili classpage-itema classpage-link href#末页/a/li/ul/nav/div/div 前端页面 letter.js $(function(){$(#sendBtn).click(send_letter);$(.close).click(delete_msg); });function send_letter() {$(#sendModal).modal(hide);var toName $(#recipient-name).val();var content $(#message-text).val();$.post(CONTEXT_PATH /letter/send,{toName:toName,content:content},function(data) {data $.parseJSON(data);if(data.code 0) {$(#hintBody).text(发送成功!);} else {$(#hintBody).text(data.msg);}$(#hintModal).modal(show);setTimeout(function(){$(#hintModal).modal(hide);location.reload();}, 2000);}); }function delete_msg() {// TODO 删除数据$(this).parents(.media).remove(); } 当 xiaowen 看数据时将显示的私信设置为已读状态 2.4 设置已读状态  在 私信详情方法 补充将私信列表中未读消息提取出来自动设置为已读 在集合中提取消息补充方法传入私信列表、实例化集合遍历数据判断当前用户是否为接收者是才能去变为已读并且消息的状态是不是0 //添加私信详情方法//声明访问路径点击按钮查看会话详情需要传入会话 id在路径中包含会话 id查询方法为 GET 请求RequestMapping(path /letter/detail/{conversationId}, method RequestMethod.GET)//方法中获取路径中的会话 id 参数并且支持分页把模板传入public String getLetterDetail(PathVariable(conversationId) String conversationId, Page page, Model model) {//设置分页信息每页显示多少条数据、分页路径、行数page.setLimit(5);page.setPath(/letter/detail/ conversationId);page.setRows(messageService.findLetterCount(conversationId));//定义私信列表分页查询会话 id、分页用集合表示Message 封装ListMessage letterList messageService.findLetters(conversationId, page.getOffset(), page.getLimit());//对发信人进行补充声明集合存放 MapListMapString, Object letters new ArrayList();//遍历集合实例化 HashMap然后放入私信把 fromId 转化为 fromUser将 Map 放入集合中if (letterList ! null) {for (Message message : letterList) {MapString, Object map new HashMap();map.put(letter, message);map.put(fromUser, userService.findUserById(message.getFromId()));letters.add(map);}}model.addAttribute(letters, letters);// 私信目标——补充上述的来自某个人的私信当前登陆用户与之对话目标的名字查询当前登录与之对话的用户显示出来model.addAttribute(target, getLetterTarget(conversationId));// 设置已读ListInteger ids getLetterIds(letterList);if (!ids.isEmpty()) {messageService.readMessage(ids);}//查询私信目标返回模板return /site/letter-detail;}//在集合中提取消息private ListInteger getLetterIds(ListMessage letterList) {ListInteger ids new ArrayList();if (letterList ! null) {for (Message message : letterList) {if (hostHolder.getUser().getId() message.getToId() message.getStatus() 0) {ids.add(message.getId());}}}return ids;}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/83481.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

泰安网站建设哪里有wordpress您访问的网页出错

Android 为了让我们能够更加方便的管理数据库,特意提供了一个SQLiteOpenHelper帮助类,通过借助这个类就可以非常简单的对数据库进行创建和升级。 SQLiteOpenHelper是一个抽象类,我们要创建一个自己的帮助类去继承它。SQLiteOpenHelper有两个抽…

南翔企业网站开发建设好玩的网页游戏排行

团队名称:筑梦之舟 团队项目名称:跑跑 N(Need)需求: 有许多人在跑步时想了解自己的移动轨迹和跑步距离很不便利,无法了解跑步的日程,我们的软件就是为了更加方便热爱跑步的人能够参加到跑步之中…

一个人做网站要多久本科学历30天出证

我们可能会收到类似于这样的短信,发现其中的链接并不是常规的网址链接,而是个短小精悍的短链接,产品中经常需要这样的需求,如果在给用户下发的短信中是一个很长的连接,用户体验肯定很差,因此我们需要实现长…

网站建设的重难点分析购物网站建设平台

Python爬虫程序是一种利用Python编写的程序,用于自动化地从互联网上获取数据。它可以模拟人类在网页上的操作,自动化地访问网页并提取所需的数据。Python爬虫程序可以用于各种用途,例如数据挖掘、信息收集、搜索引擎优化等。它通常使用Python…

扬州网站建设myvodo龙华网站建设招商

💨随着信息技术的迅猛发展,云计算已成为推动数字经济发展的重要驱动力之一。在这个领域中,云栖大会无疑是中国乃至全球最重要的盛会之一。云栖大会的历史可以追溯到2009年的地方网站峰会,随着时间的推移,它逐渐演变为阿…

html网站源代码网站推广需要几个人做

文章目录 1、索引阻塞的种类2、什么时候使用阻塞?场景1:进行系统维护场景。场景2:保护数据不被随意更改场景。场景3:优化资源使用的场景。场景4:遵守安全规则场景。 3、添加索引阻塞API4、解除设置 API5、小结6、参考 …

小说阅读网站建设市场需求分析百度公司招聘官网

在互联网的app当中,特别是像美团,饿了么等app。经常会看到附件美食或者商家, 当我们点击美食之后,会出现一系列的商家,商家中可以按照多种排序方式,我们此时关注的是距离,这个地方就需要使用到我…

医药电商网站建设网站开发人员工资水平

10011311341 吕涛、10011311356李红目的:通过熟悉使用火车头采集器,在网络上采取3万条笑话并进行排重,以此来熟悉web文本挖掘的一些知识。过程:本次学习,主要分成两个部分。第一部分是笑话文本的采集,第二部…

网站之间的区别查询网站备案显示划横线

随着科技的进步,智能机器人越来越多地融入我们的日常生活。其中,CyberDog 2作为一款前沿的四足机器人,凭借其出色的视觉灵敏度和多功能技术配备,受到了广泛的关注。本文将重点探讨CyberDog 2的视觉系统,尤其是其四种不同类型的摄像头如何共同提升其视觉灵敏度,以及激光传…

网站域名过期未续费怎么办梅县区住房和城乡规划建设局官方网站

西甲的赫罗纳足球俱乐部是8868体育助力的球队之一,西甲排名第12的赫塔费队迎来了西甲第29轮的较量,赫塔费队此役坐镇自己的主场PK赛前排名第2的争冠超级黑马赫罗纳队。 赛前赫塔费队已经连续4轮联赛不胜(2平2负状态低迷)&#xff…

计算机网络 网站开发与设计徐州有哪些做网站

参考资料: JAVA并发专题 - 终有救赎的专栏 - 掘金 Java并发编程学习路线(建议收藏��) | Java程序员进阶之路x沉默王二 面试题目: JUC第一讲:Java并发知识体系详解 面试题汇总(P6熟练 P7精通…

网站怎么增加流量长沙seo工资

最近,网上疯传OpenAI2027年关于AGI的计划。在本文,我们将针对部分细节以第一人称进行分享。​ 摘要:OpenAI于2022年8月开始训练一个125万亿参数的多模态模型。第一个阶段是Arrakis,也叫Q*,该模型于2023年12月完成训练&…

台州seo网站推广旅游网站信息门户建设方案

Kafka中神秘的内部主题(Internal Topic)__consumer_offsets。 consumer_offsets在Kafka源码中有个更为正式的名字,叫*位移主题*,即Offsets Topic。为了方便今天的讨论,我将统一使用位移主题来指代consumer_offsets。需…

做网站哪个公司电子商务网站推广计划书

文章目录 定义案例:零售销售数据仓库实践创建维度表创建事实表插入维度表数据插入事实表数据增改查 定义 维度建模是一种用于数据仓库设计的技术,它的目标是使数据库结构更加直观,易于理解和使用,特别是对于那些进行数据查询和报…

校园兼职网站开发用例图wordpress 联系我们表单

操作系统:CentOS 7.5 64bit,安装方式为gnome Desktop,附加系统工具以及兼容X Window安装包Oracle版本:11gR2Oracle11gR2官方文档链接安装系统建立默认用户的时候建立非oracle的账号。由于是离线安装,使用ssh登录&#…

北京响应式网站制作公司网站免费源码下载

TP框架的自动绑定 对于某些操作的情况(例如模型的写入和更新方法),可以支持参数的自动绑定,例如: 首先需要开启DB_BIND_PARAM配置参数: DB_BIND_PARAM > true 然后,我们在使用 1.$Model M(U…

深圳做网站网站制作的基本流程是什么

Uniapp是一个基于Vue.js的跨平台开发框架,可以同时开发微信小程序、H5、App等多个平台的应用。下面是Uniapp常用的API讲解: Vue.js的API Uniapp采用了Vue.js框架,因此可以直接使用Vue.js的API。例如:v-show、v-if、v-for、compu…

旅游在线网站开发小米发布会后多久可以买到新机

Redis 内存管理 1. Redis 给缓存数据设置过期时间的作用 给缓存数据设置过期时间(TTL, Time-To-Live)有以下几个重要作用: (1) 自动释放内存 避免缓存数据无限增长,导致 Redis 内存溢出。例如,在 会话管理、短连接…

网站源码怎么弄网站网上预定功能怎么做

目录 一、 算法概述二、代码示例三、输出结果一、 算法概述 适用:根据指定的box范围框来裁剪点云数据。(独创的思路,借用opencv内置的函数来实现点云数据在平面上的裁剪)。 二、代码示例 #include<iostream> #include<pcl/point_cloud.h> #include

手机网站淘宝客电商网站平台建设视频

前言 最近有许多小伙伴找我来咨询Python&#xff0c;我来讲几个极其重要&#xff0c;但是大多数Python小白都在一直犯的思维错误吧&#xff01;如果你能早点了解清楚这些&#xff0c;会改变你的编程学习生涯的。小编这一期专门总结了大家问的最多的&#xff0c;关于学习Python…