Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
schbrain-initializer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
schbrain-initializer
Commits
68d31b29
Commit
68d31b29
authored
Aug 20, 2023
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
61d53d54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
initializer-web/src/main/java/com/schbrain/initializer/web/controller/EntityController.java
...schbrain/initializer/web/controller/EntityController.java
+8
-1
initializer-web/src/main/java/com/schbrain/initializer/web/controller/MemoryAllocateController.java
.../initializer/web/controller/MemoryAllocateController.java
+26
-0
No files found.
initializer-web/src/main/java/com/schbrain/initializer/web/controller/EntityController.java
View file @
68d31b29
...
...
@@ -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
}
initializer-web/src/main/java/com/schbrain/initializer/web/controller/MemoryAllocateController.java
0 → 100644
View file @
68d31b29
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
]);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment