
SSM框架
文章平均质量分 68
鲸落ж
出社会2年,呜呜呜呜
展开
-
linux部署web项目教程,centos7环境下jdk,mysql,tomcat环境的部署
一、前提 1. jdk-8u301-linux-x64.tar.gz 的下载地址 https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html 2.mysql-8.0.26-1.el7.x86_64.rpm-bundle.tar的下载地址 https://www.mysql.com/ 选择downloads 选择如下图: 选择mysql commumity server 3.apache-tomcat-8.5.原创 2021-08-10 09:18:34 · 422 阅读 · 0 评论 -
MybatisPlus的学习-狂神说
狂神说 1、MybatisPlus 为什么要学习它呢? MyBatisPlus可以节省我们大量工作时间,所有的CRUD代码它都可以自动化完成! JPA、tk-mapper、MyBatisPlus 简洁 是什么?MyBatis本来就是简化JDBC操作的! 官网:https://mp.baomidou.com/ MyBatis-Plus (opens new window)(简称 MP)是一个 MyBatis (opens new window)的增强工具,在 MyBatis 的基础上只做增强不做改变,为原创 2021-10-04 20:27:54 · 358 阅读 · 0 评论 -
狂神说-Mybatis-学习笔记
学习来源:狂神书mybatis 1、Mybatis 1.1、什么是Mybatis? Github:https://github.com/mybatis/mybatis-3 中文官网:https://mybatis.org/mybatis-3/zh/index.html POM: <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis --> <dependency> <groupId>org.myb原创 2021-10-01 17:06:51 · 272 阅读 · 0 评论 -
Spring学习笔记-狂神说学习
狂神bilibili第地址 1、Spring 1.1、简介 Spring:春天 2002,首次推出了spring框架的雏形:interface21框架 Spring框架即以interface21框架为基础,经过重新设计,并不断丰富其内涵,于2004年3月24日,发布了1.0正式版。 Rod Johnson ,Spring Framework创始人,著名作者。很难想象Rod Johnson的学历,真的让好多人大吃一惊,他是悉尼大学的博士,然而他的专业不是计算机,而是音乐学。 spring理原创 2021-10-06 00:15:27 · 512 阅读 · 0 评论 -
Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
在搭建SSM项目时,配置文件出错,如下 这里应该扫描的是mapper层的包,但是我原来配成了实体类层,所以出错。 如果大家也出现了这样的错误,一定要自习检查配置文件原创 2021-11-11 14:18:20 · 2417 阅读 · 0 评论 -
Untracked Files Prevent Checkout Move or commit them before checkout
IDEA切换分支时报错 原因: 项目中有文件未同步到本地库。 解决: 项目右击 git add 然后在 commit 保存到本地库 在push 到 远程仓库 就可以了原创 2021-11-11 14:19:47 · 1432 阅读 · 0 评论 -
通用mapper查询出错WHERE id = ?AND name = ?AND author = ?AND publish = ?Parameters: 3(Integen), 3(1nteger),
在使用通用mapper的selectByPrimaryKey方法查询时,出现如下错误: WHERE id = ?AND name = ?AND author = ?AND publish = ?.............. Parameters: 3(Integen), 3(1nteger), 3(Integer), 3(Integer),3(Integer), 3(Integer),3(Integer), 3(Integer), 3(Integen) 发现在实体类的表中没有加Table,Id,Key原创 2021-08-19 20:22:58 · 280 阅读 · 0 评论 -
SSM整合及增删改查操作
SSM大整合及常见增删改查操作 首先了解一下spring的IOC和DI: IOC(控制反转)和DI(依赖注入)------->AOP(面向切面编程) 一、整合关键点 Spring:负责对象的创建、维护、管理及对象依赖资源的注入 SpringMVC:负责请求的处理相当于(Servlet) MyBatis:负责与数据库进行交互 二、基本步骤 1、pom.xml添加依赖 mybatis|spring-webmvc|mybatis-spring|spring-jdbc|mysql|bonecp数据源|log原创 2021-08-14 11:04:48 · 1122 阅读 · 0 评论