- 博客(60)
- 收藏
- 关注
原创 【笔记】mybatis--根据xxx 条件,查询一条记录
// / 根据 entity 条件,查询全部记录// selectList// List<T> selectList(@Param(Constants.WRAPPER) Wrapper<T> queryWrapper);// Assert.assertEquals(5, userList.size());//// // 1根据 ID 查询// T selectById(Serializable id); .
2021-07-06 11:13:58
1166
原创 【练习】Spring-mybatis
1、准备mysql:复制创建表的代码。包括表结构和表里的数据DROP TABLE IF EXISTS lala;CREATE TABLE lala( id BIGINT(20) NOT NULL COMMENT '主键ID', myname VARCHAR(30) NULL DEFAULT NULL COMMENT '姓名', atime VARCHAR(30) NULL DEFAULT NULL COMMENT '时间', song VARCHAR(50) NU...
2021-07-03 17:18:06
195
原创 【笔记】plugins-lombok&spring-mybatis Tips
plugins-lombok步骤1、复制<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.20</version> <scope>provided</scope> </depend...
2021-07-02 17:15:25
84
原创 【笔记】@Getter and @Setter
你可以用 @Getter 或者 @Setter注释任何字段,让lombok自动生成默认的getter/setter。默认的getter只返回该字段,如果字段名为foo(或者如果字段的类型是boolean,则名为isFoo),则命名为getFoo。默认的setter命名为setFoo如果这个字段名为Foo,返回void,然后使用同样类型的一个参数作为字段。它将字段设置为这个值。 除非你明确指定一个Accesslevel,否则生成的getter/setter方法是public,如下...
2021-07-02 15:18:33
293
原创 【练习】Accessing data with MySQL-3
新建两个文件unicorn和unicornrepository在unicorn中粘贴package com.example.accessingdatamysql;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;@Entity // This tells
2021-06-29 10:59:29
114
原创 【练习】Accessing data with MySQL-2
新建两个类在work中粘贴package com.example.accessingdatamysql;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;@Entity // This tells Hibernate to make a table ou
2021-06-28 17:59:36
88
原创 【练习】10.Accessing Data in Pivotal GemFire
定义一个简单的实体Create an application class创建一个应用类Build an executable JAR建立一个可执行的JAR
2021-06-24 09:18:30
73
原创 【练习】8. Input
Create aPersonFormObjectCreate a Web ControllerBuild an HTML Front EndRun the ApplicationBuild an executable JAR
2021-06-22 17:17:21
101
原创 【练习】7.Scheduling Tasks
Adding theawaitilityDependencyCreate a Scheduled TaskEnable SchedulingBuild an executable JAR
2021-06-22 16:40:24
98
原创 【练习】6.Creating a Batch Service
Business DataCreate a Business ClassCreate an Intermediate ProcessorPut Together a Batch JobMake the Application ExecutableBuild an executable JAR
2021-06-22 16:17:05
224
原创 【练习】3.Building Java Projects with Maven
Set up the projectIn a project directory of your choosing, create the following subdirectory structure; for example, withmkdir -p src/main/java/hello
2021-06-19 15:28:32
129
原创 【练习】1.Building a RESTful web service
Starting with Spring InitializeCreate a Resource Representation Class粘贴package com.example.restservice;public class Greeting { private final long id; private final String content; public Greeting(long id, String ...
2021-06-18 17:38:11
96
原创 【练习】Create a Maven project in IDEA
failI suspect itfail because of the maven path so Idecideto restall maven and do it again.
2021-06-18 10:52:09
115
原创 【安装】INSTALL JDK16.0.1
首先打开网页https://www.oracle.com/java/technologies/javase-downloads.html选择需要的
2021-06-17 16:14:41
133
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅