#用于简化pojo类的书写(setter,getter,tostring,equals,hascode...) pojo是简单java对象:即不包含业务逻辑,能够控制自己内部属性访问的java对象。 配置方式,就是在maven里导包,在idea插件里下载lombok插件。 #比较常用的注解@Data ...
分类:
其他好文 时间:
2021-06-20 18:51:49
阅读次数:
0
1 新增 user = User(mobile='15612345678', name='itcast') db.session.add(user) db.session.commit() profile = Profile(id=user.id) db.session.add(profile) d ...
分类:
数据库 时间:
2021-06-20 18:48:46
阅读次数:
0
注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App ...
分类:
其他好文 时间:
2021-06-20 18:33:01
阅读次数:
0
数据库中的字段public class User{ private int id; private String name; private String password; }测试查出来password为null//select id,name,pwd from mybatis.user wher ...
分类:
其他好文 时间:
2021-06-20 18:22:57
阅读次数:
0
Spring的重点配置:<bean>标签:id属性:在容器中Bean实例的唯一标识,不允许重复 class属性:要实例化的Bean的全限定名 scope属性:Bean的作用范围,常用是Singleton(默认)和prototype <property>标签:属性注入 name属性:属性名称 valu ...
分类:
编程语言 时间:
2021-06-20 18:22:23
阅读次数:
0
注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App ...
分类:
其他好文 时间:
2021-06-20 18:21:34
阅读次数:
0
初始结构搭建: index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1. ...
分类:
其他好文 时间:
2021-06-20 18:17:40
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Promise关键 ...
分类:
其他好文 时间:
2021-06-20 18:13:23
阅读次数:
0
通过state控制页面元素的变化,类似于vue中的data setState会引发视图的重绘 如何在项目中添加state 在类中添加一个constructor函数,然后给状态赋值。注意 super()必须执行,可以带参数也可以不带,参数为父组件传下来的props。 export default cl ...
分类:
其他好文 时间:
2021-06-20 18:12:48
阅读次数:
0
有时候,我们想要查找Python安装路径及第三方库的存放路径,但可能忘记了当初安装时的具体路径,这个时候我们就可以通过命令快速找到这些路径。 查找Python安装路径 Windows下查找命令:where python3 D:\>where python3 D:\Python\installatio ...
分类:
编程语言 时间:
2021-06-20 18:12:11
阅读次数:
0