logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

mybatis(5)——在mybatis-config.xml中通过properties标签引用外部文件db.properties进行数据库的连接配置

1.创建db.properties文件driver=com.mysql.cj.jdbc.Driverurl=jdbc:mysql://localhost:3306/mybatis_test?characterEncoding=UTF-8&serverTimezone=UTCusername=rootpassword=1234562.在mybatis-config.xml中通过propert

#xml#mybatis#mysql +1
react(56)——在项目中使用开发者工具redux-devtools-extension

1.谷歌安装插件需要访问外网,在谷歌商店中下载,也可以自己格外找资源2.项目中添加redux-devtools-extension库在终端运行cnpm add redux-devtools-extension即可3.在store.js文件中添加redux-devtools-extension库中的内容//该文件专门用于暴露一个store对象,整个应用只有一个store//引入createStore

#前端#javascript
JetBrains——学生账号,每年需要续期

1.进入官网,登录账号2.如果过期了,Valid through属性应该是红色且日期已经过期。3.点击红色圈的这里面,应该会有一个renew设置,点击,然后更新毕业日期4.JetBrain官网会给你的学生邮箱发送一条信息,点进去,然后确认一下就可以了...

#idea#intellij idea#webstorm
react(18)——通过event.target获取标签结点

1.代码<body><div id="test"></div><script type="text/babel">'use strict'class Demo extends React.Component{showButton=(event)=>{console.log(event.target);

spring(18)——整合spring与mybatis的第二种方式,通过继承SqlSessionDaoSupport类

1.第二种方式是对第一种方式的一种简化,简化接口的实现类原来:package com.lixv.dao;import com.lixv.entity.User;import org.mybatis.spring.SqlSessionTemplate;import java.util.List;public class UserMapperImpl implements UserMapper{pri

#mybatis#spring#mysql +2
mybatis(9)——当实体类的成员变量名称和数据库表中名称不一样的两种处理方式:起别名和使用resultMap标签

1.在sql语句之中起别名<select id="getUserList" resultType="User">select id, name, pwd as password from mybatis_test.user</select>这样User类的成员变量password就可以接收到表中pwd这一列的值了2.定义resultMap标签<resultMap id

#数据库#mysql#mybatis +1
mybatis(13)——通过在接口的抽象方法上面使用注解写sql语句

1.通过注解实现增删改查的代码package com.lixv.dao;import com.lixv.entity.User;import org.apache.ibatis.annotations.Param;import org.apache.ibatis.annotations.Select;import java.util.List;import java.util.Map;public

#mybatis#mysql#java +1
maven(2)——修改maven的setting.xml文件,更改下载地址和镜像

1.更改下载位置更改<settings>标签中的<localRepository>标签,如果settings标签中没有<localRepository>标签,则新写一个<localRepository>标签。<localRepository>E:/apache-maven-3.6.3/maven-repo</localReposit

#maven#xml
ajax(1)——通过express框架发送ajax GET请求,XMLHttpRequest对象

1.代码//npm init --yes//npm i express//引入expressconst express = require("express");//创建应用对象const app = express();//创建路由规则//request:是对请求报文的封装//response:是对响应报文的封装app.get("/server", (request, response) =&g

#ajax#javascript
spring(3)——当类只有含参构造方法的时候,xml文件中需要有指定的constructor-arg配置,否则会报错

1.当类有含参构造方法,没有空参构造方法的时候,beans的xml文件没有配置constructor-arg会报错package com.lixv.entity;public class Hello {private String str;public Hello(String str) {this.str = str;}public void setStr(String str) {this.s

#java#xml#mybatis +1
    共 24 条
  • 1
  • 2
  • 3
  • 请选择