mirror of
https://gitee.com/yudaocode/SpringBoot-Labs.git
synced 2026-09-03 05:53:54 +08:00
增加 springboot lombok
增加 springboot 热部署(热更替)
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<optional>true</optional>
|
||||
<!-- <optional>true</optional>-->
|
||||
</dependency>
|
||||
|
||||
<!-- 实现对 Test 的自动化配置 -->
|
||||
|
||||
@@ -1,27 +1,13 @@
|
||||
package cn.iocoder.springboot.lab49.lombokdemo.service;
|
||||
|
||||
import cn.iocoder.springboot.lab49.lombokdemo.dataobject.UserDO;
|
||||
import com.sun.istack.internal.NotNull;
|
||||
import lombok.NonNull;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class UserService01 {
|
||||
|
||||
@NonNull
|
||||
public void test01(UserDO userDO) {
|
||||
System.out.println(userDO.getUsername());
|
||||
System.out.println(userDO.getPassword());
|
||||
}
|
||||
|
||||
public void test02(@NotNull String username, String password) {
|
||||
public void test(@NonNull String username, String password) {
|
||||
|
||||
}
|
||||
|
||||
public void test03() {
|
||||
@NonNull String username = "";
|
||||
String password = "";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ public class UserService01Test {
|
||||
private UserService01 userService01 = new UserService01();
|
||||
|
||||
@Test
|
||||
public void test02() {
|
||||
userService01.test02(null, null);
|
||||
public void test() {
|
||||
userService01.test(null, null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user