Commit 68d31b29 authored by liaozan's avatar liaozan 🏀

no message

parent 61d53d54
......@@ -11,8 +11,10 @@ import com.schbrain.initializer.service.EntityWithLogicDeleteService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
......@@ -30,6 +32,11 @@ public class EntityController {
@Autowired
private EntityWithLogicDeleteService entityWithLogicDeleteService;
@GetMapping
public void localDateTime(@RequestParam LocalDateTime time) {
System.out.println(time);
}
@GetMapping("/bizId")
public void bizId() {
Entity entity = entityService.getByBizId("8352707733");
......@@ -94,4 +101,4 @@ public class EntityController {
service.removeByMap(Map.of("id", entity.getId()));
}
}
\ No newline at end of file
}
package com.schbrain.initializer.web.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
/**
* @author liaozan
* @since 2023/8/20
*/
@Slf4j
@RestController
public class MemoryAllocateController {
@GetMapping("/memory/alloc")
public void allocMemory() {
List<byte[]> ignore = new ArrayList<>();
while (true) {
ignore.add(new byte[10 * 1024 * 1024]);
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment