做生意网站,请人帮忙做网站推广,广告设计图片大全 图片素材,衡阳网站建设icp备01.用到的 一些 核心技术
1 Spring Framework
Spring Core IOC 、AOP 管理对象的一种思想 IOC 面向对象的管理思想 AOP 面向切面的管理思想Spring Data Access 》访问数据库的功能 Transaction、Spring MyBatis Transaction 》管理事务Spring MyBat…
01.用到的 一些 核心技术
1 Spring Framework
Spring Core IOC 、AOP 管理对象的一种思想 IOC 面向对象的管理思想 AOP 面向切面的管理思想Spring Data Access 》访问数据库的功能 Transaction、Spring MyBatis Transaction 》管理事务Spring MyBatis 整合MyBatis myBatis是访问数据库的一种框架Web Servlet 用于Web 开发 Spring MVCIntegration Email、Scheduling、AMQP、Security 2 Http (HyperText Transfer Protocal)
》 超文本传输协议
what
用于 传输 HTML 等有关内容的 应用层协议
规定了 浏览器和服务器 之间 如何通信 以及通信时 的数据格式
详细信息网址https//developer.mozilla.org/zh-CN Http 流
客户端与服务端进行通信信息交互的步骤
1. 建立一条 tcp 连接
客户端 可能打开 一条新的连接、 or 几个新的TCP连接、 or 重用已经存在的连接 连向 服务端 2.发送一个 http 报文
客户端 发送 HTTP报文 到服务端
HTTP报文 在HTTP/2 之前是语义可读的
GET / HTTP/1.1
Host: developer.mozilla.org
Accept-Language: zhHTTP/2 这些简单的消息 被封装到了 帧中 这使得报文不能被直接读取原理是相同的 3. 读取服务端 返回的 报文消息
HTTP/1.1 200 OK
Date: Sat, 09 Oct 2010 14:28:02 GMT
Server: Apache
Last-Modified: Tue, 01 Dec 2009 20:18:22 GMT
ETag: 51142bc1-7449-479b075b2891b
Accept-Ranges: bytes
Content-Length: 29769
Content-Type: text/html 4. 关闭连接 或者 为后续请求重用连接 当启用 HTTP 流水线时后续请求都可以直接发送而不用等待第一个响应被全部接收。然而 HTTP 流水线已被证明很难在现有的网络中实现因为现有网络中有老旧的软件与现代版本的软件同时存在。因此HTTP 流水线已在 HTTP/2 中被更健壮、使用帧的多路复用请求所取代。 3.Spring MVC
三层架构 - 表现层 、 业务层 、 数据访问层 MVC 设计模式 将复杂的代码分为三个层次 - Model: 模型层- View视图层- Controller控制层核心组件 -前端控制器DispatcherServlet 4.MyBatis
核心组件 sqlSessionFactory : 用于创建SqlSession的工厂类spring整合了SqlSession:Mybatis的核心组件用于向数据库执行SQLspring整合了主配置文件XML配置文件可以对MyBatis的底层做出更详细的配置spring整合了Mapper接口DAO接口Mapper映射器: 用于编写SQL,并将SQL和实体类映射的组件采用XML、注解均可实现示例 使用MyBatis对用户表进行CRUD操作 7 项目调试的方法与技巧
1.响应状态码的含义 200 ok 请求成功 3开头 》重定向 》以一个低耦合的方式 进行资源跳转 注册-》登录 302 found 请求的资源现在从不同的URL响应请求 4开头 》客户端 响应错误 404 Not found 向服务器请求的功能不存在 常见的可能情况 1.地址栏 or 超链接的 url写错了 2.表单配置出错 5 开头 》 服务端 响应错误 500 服务器 遇到了 不知道如何处理的情况 处理方法检查服务端程序 2.服务端断点调试技巧
3.客户端断点调试技巧
4.设置日志级别并将日志输出到不同的终端
https://logback.qos.ch
Logger rootLogger LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
package org.slf4j;
public interface Logger {// Printing methods: //跟踪 级别public void trace(String message);//调试 级别public void debug(String message);//调度 级别public void info(String message); public void warn(String message); public void error(String message);
}
8.版本控制 PS C:\Desktop\软件开发\项目\miao_backend\demo-dev git config --list diff.astextplain.textconvastextplain filter.lfs.cleangit-lfs clean -- %f filter.lfs.smudgegit-lfs smudge -- %f filter.lfs.processgit-lfs filter-process filter.lfs.requiredtrue http.sslbackendopenssl http.sslcainfoC:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt core.autocrlftrue ... PS C:\Desktop\软件开发\项目\niuke_coder\community git init Initialized empty Git repository in C:/Desktop/软件开发/项目/niuke_coder/community/.git/ PS C:\Desktop\软件开发\项目\niuke_coder\community git status On branch master No commits yet Untracked files: (use git add file... to include in what will be committed) .gitignore .mvn/ log/ mvnw mvnw.cmd pom.xml src/ 文件临时添加到了本地仓库 PS C:\Desktop\软件开发\项目\niuke_coder\community git add * warning: in the working copy of .gitignore, LF will be replaced by CRLF the next time Git touches it warning: in the working copy of .mvn/wrapper/maven-wrapper.properties, LF will be replaced by CRLF the next time Git touches it warning: in the working copy of mvnw, LF will be replaced by CRLF the next time Git touches it PS C:\Desktop\软件开发\项目\niuke_coder\community git commit -m 仿牛客首次提交 [master (root-commit) 4341e7a] 仿牛客首次提交 69 files changed, 6729 insertions() create mode 100644 .gitignore create mode 100644 .mvn/wrapper/maven-wrapper.jar create mode 100644 .mvn/wrapper/maven-wrapper.properties //连接远程仓库 之 创建rsa 密钥 PS C:\Desktop\软件开发\项目\niuke_coder\community ssh-keygen -t rsa -C isyi126.com; Generating public/private rsa key pair. //添加 ssh密钥并新建对应仓库 PS C:\Desktop\软件开发\项目\niuke_coder\community git remote add origin https://github.com/IsYlPaoCoin/Like_Niuke_Community.git PS C:\Desktop\软件开发\项目\niuke_coder\community git push -u origin main 02系统功能开发
1.发送邮件服务
邮箱设置启用SMTP服务
Spring Email : 使用JavaMailSender
2.开发注册功能
访问注册页面 点击顶部区域内的链接打开注册页面提交注册数据 通过表单提交数据服务端验证账号是否 已存在、 邮箱是否 已注册服务端发送 激活邮件激活注册账号 点击邮件中的链接访问服务端的激活账号