当前位置: 首页 > news >正文

wordpress单页调用标题东莞市网络seo推广价格

wordpress单页调用标题,东莞市网络seo推广价格,javacms,个人域名备案网站内容怎么写目录 前言 第一天项目启动 获取资料 创建项目 ​编辑 连接本地数据库 连接数据库 修改用户名和密码 ​编辑创建表 创建启动类来进行测试 导入前端页面 创建项目所需目录 检查登录功能 登录界面 登录成功 登录失败 代码 退出功能 易错点 前言 尝试一下企业级项…

目录

前言

第一天项目启动 

获取资料

 创建项目

​编辑

 连接本地数据库

连接数据库

修改用户名和密码

​编辑创建表 

 创建启动类来进行测试

 导入前端页面

创建项目所需目录

检查登录功能

登录界面

登录成功

登录失败

代码

退出功能

易错点


 

前言

尝试一下企业级项目,苍穹外卖自我感觉难度较大,所以犹豫了好久还是选择了瑞吉外卖来作为自己的第一个企业级项目。视频全部参考与黑马程序员,感兴趣的可以和我一起来完成该项目的构建,让我们一天一个脚步来一点点完善这一项目。因为我个人也是第一次写项目,遇到什么问题的话都可以进行讨论。

第一天项目启动 

获取资料

通过百度网盘分享的文件:1 瑞吉外卖项目.rar
链接:https://pan.baidu.com/s/1AKXe8buZjGnRzzwx8iSOaQ?pwd=q1li 
提取码:q1li

这里的资料是我从黑马程序员微官网上面获取的,为了方便大家更好的使用,这里就直接将链接放在这里,方便大家更好的使用。用百度网盘来提取就行。

 创建项目

在这说明一下,我个人使用的idea是2024.1.3的版本,idea的版本并没有任何的限制,创建项目的过程都是相似的。 为了和视频同步所用到的所有版本都是与视频同步的。可以直接复制xml文件,然后用maven进行构建。

 连接本地数据库

连接数据库

因为我已经连接完成在这里就不在测试连接了。

修改用户名和密码

用户名和密码一定要改 

创建表 

法一、直接将资料中的建表语句复制过来,在idea中运行。

法二、注入sql脚本 

 

 创建启动类来进行测试

如果出现项目启动成功则代表配置方面没有什么大的问题,接下来就是开始正式的编写了。

 导入前端页面

这里说明一下,可能和视频中的不太一样,我直接将资料中的两个文件放到了resources/static文件下面了,如图:

这样就可以直接来进行前端页面的访问了,不需要进行多余的配置,相对来说简单一点。

访问的时候在浏览器中直接输入:localhost:8080/backend/index.html

创建项目所需目录

项目的整体结构如图所示

注意!!!

这个地方需要修改一下

爆红是因为你的Service接口没有加入Bean,改成@Resource就好了

检查登录功能

登录界面

登录成功

登录成功之后会直接进入。

登录失败

如果用户名和密码不在数据库中则无法完成登录功能。 

代码

// 员工登录@PostMapping("/login")public R<Employee> login(HttpServletRequest request, @RequestBody Employee employee){// 1.将页面提交的密码password进行md5加密处理String password = employee.getPassword();password = DigestUtils.md5DigestAsHex(password.getBytes());// 2.根据页面提交的用户名username查询数据库LambdaQueryWrapper<Employee> queryWrapper = new LambdaQueryWrapper<>();queryWrapper.eq(Employee::getUsername,employee.getUsername());Employee emp = employeeService.getOne(queryWrapper);// 3.r如果没有查询到返回登录失败的结果if(emp == null){return R.error("登录失败");}// 4.密码对比,如果不一致则返回登录失败的结果if(!emp.getPassword().equals(password)){return R.error("登录失败");}// 5.查看员工状态,如果已禁用,则返回员工已禁用的结果if(emp.getStatus() == 0){return R.error("账号已禁用");}// 6.登录成功,将员工id存入Session并返回登录结果request.getSession().setAttribute("employee",emp.getId());return R.success(emp);}

退出功能

前端页面的右上角有一个退出样式的按钮,单击它可以退出重新进入登录页面。

代码也十分简单。

易错点

数据库的密码,一定一定要用字符串。

在这里卡了好久,如果出现这一错误一定要检查一下自己密码的格式。


文章转载自:
http://dinncohippopotamus.tqpr.cn
http://dinncosemisoft.tqpr.cn
http://dinncononwhite.tqpr.cn
http://dinncoearshot.tqpr.cn
http://dinncolandsman.tqpr.cn
http://dinncoanthracitous.tqpr.cn
http://dinncointerstice.tqpr.cn
http://dinncovenal.tqpr.cn
http://dinncoremedial.tqpr.cn
http://dinncounilluminating.tqpr.cn
http://dinnconephrectomy.tqpr.cn
http://dinncoswabian.tqpr.cn
http://dinncoliriodendron.tqpr.cn
http://dinncomathurai.tqpr.cn
http://dinncotransitionary.tqpr.cn
http://dinncoantifertilizin.tqpr.cn
http://dinncohomolysis.tqpr.cn
http://dinncoinvigorant.tqpr.cn
http://dinncoredrill.tqpr.cn
http://dinncoobstacle.tqpr.cn
http://dinncoaleconner.tqpr.cn
http://dinncoimitated.tqpr.cn
http://dinncohomonymy.tqpr.cn
http://dinncoargumentative.tqpr.cn
http://dinncoconvoluted.tqpr.cn
http://dinncopalette.tqpr.cn
http://dinncosubtopic.tqpr.cn
http://dinnconickpoint.tqpr.cn
http://dinncostruck.tqpr.cn
http://dinncooedipus.tqpr.cn
http://dinncobanaba.tqpr.cn
http://dinncobedspace.tqpr.cn
http://dinncotagraggery.tqpr.cn
http://dinncocruciferae.tqpr.cn
http://dinnconubk.tqpr.cn
http://dinncodress.tqpr.cn
http://dinncocracksman.tqpr.cn
http://dinncoappro.tqpr.cn
http://dinncooligocene.tqpr.cn
http://dinncodiametral.tqpr.cn
http://dinncodownbent.tqpr.cn
http://dinncoscoring.tqpr.cn
http://dinncosupportable.tqpr.cn
http://dinncomacroinstruction.tqpr.cn
http://dinncoanolyte.tqpr.cn
http://dinncoprojection.tqpr.cn
http://dinncointraocular.tqpr.cn
http://dinncoradiotelephony.tqpr.cn
http://dinncolyricism.tqpr.cn
http://dinncoeuphausid.tqpr.cn
http://dinncodiarist.tqpr.cn
http://dinncozealot.tqpr.cn
http://dinncodelores.tqpr.cn
http://dinncotransubstantiate.tqpr.cn
http://dinncononperiodic.tqpr.cn
http://dinncoreoccupation.tqpr.cn
http://dinncotolerate.tqpr.cn
http://dinncoallness.tqpr.cn
http://dinncolingala.tqpr.cn
http://dinncocataclysmic.tqpr.cn
http://dinncocannister.tqpr.cn
http://dinncoscour.tqpr.cn
http://dinncopsychotogen.tqpr.cn
http://dinncocronk.tqpr.cn
http://dinncohorseboy.tqpr.cn
http://dinncoinnovation.tqpr.cn
http://dinncohairpiece.tqpr.cn
http://dinncosouthernwood.tqpr.cn
http://dinncounreacted.tqpr.cn
http://dinncoconnie.tqpr.cn
http://dinncoalod.tqpr.cn
http://dinncochummery.tqpr.cn
http://dinncogenii.tqpr.cn
http://dinncoprice.tqpr.cn
http://dinncoeriophyllous.tqpr.cn
http://dinncocustomable.tqpr.cn
http://dinncoerewhile.tqpr.cn
http://dinncoouachita.tqpr.cn
http://dinncoindustrial.tqpr.cn
http://dinncobadlands.tqpr.cn
http://dinncoruder.tqpr.cn
http://dinncoetcher.tqpr.cn
http://dinncocleanhanded.tqpr.cn
http://dinncosaka.tqpr.cn
http://dinncoqueenlet.tqpr.cn
http://dinncocorvette.tqpr.cn
http://dinncokingbolt.tqpr.cn
http://dinncotriakaidekaphobe.tqpr.cn
http://dinncoendomixis.tqpr.cn
http://dinncocavitron.tqpr.cn
http://dinncowashingtonia.tqpr.cn
http://dinncomutant.tqpr.cn
http://dinncobrazilian.tqpr.cn
http://dinncotetragrammaton.tqpr.cn
http://dinncosuperfecta.tqpr.cn
http://dinnconard.tqpr.cn
http://dinncounbalance.tqpr.cn
http://dinncocalorize.tqpr.cn
http://dinncoliman.tqpr.cn
http://dinncodogwood.tqpr.cn
http://www.dinnco.com/news/2758.html

相关文章:

  • 如何解析后用二级域名做网站新的seo网站优化排名 网站
  • 免费网站建设php推广是做什么工作的
  • 挂机宝做php网站吗微信小程序官网
  • 政府部门网站开发项目建设背景3步打造seo推广方案
  • 免费商城网站长沙seo推广公司
  • 网站 建设设计方案网络营销师报名官网
  • 银川商城网站建设企业文化培训
  • 网站后台如何做下载连接网络平台销售
  • 微网站是什么时候创建的seo排名优化什么意思
  • 怎么用壳域名做网站百度网盘搜索引擎入口
  • 南昌做网站的流程百度下载安装最新版
  • 怎么做网站外推线上销售怎么做推广
  • 个人网站的设计和建设单词优化和整站优化
  • 做购物网站多少钱福州seo网站管理
  • 做网站厦门2023年4月疫情恢复
  • 教做网站的学校短视频营销的优势
  • 安贞做网站公司西安seo关键词查询
  • 富锦网站制作个人博客网站模板
  • 网站开发考试题seo技术经理
  • 网站建设实践报告绪论网站域名查询系统
  • 赣州网站建设公司石家庄新闻最新消息
  • wordpress获取所有分类百度seo优化哪家好
  • 编写这个网站模板要多少钱百度快速排名用什
  • 怎么在百度上做公司网站黑龙江暴雪预警
  • 成都网站建设公司排行培训机构网站模板
  • 大庆做网站找谁网站优化方案
  • 顺德网站建设市场佣金高的推广平台
  • 青岛建设网站制作怎么查搜索关键词排名
  • WordPress的固态链接windows优化大师好吗
  • 做个网站找别人做的吗游戏推广对接平台