Compare commits

..

2 Commits

Author SHA1 Message Date
d84000b5b4 LabWork01: Готово 2023-03-06 01:04:48 +04:00
382e4729fb Комит перед созданием ветви 2023-03-06 01:02:53 +04:00
2 changed files with 38 additions and 2 deletions

37
.gitignore vendored Normal file
View File

@ -0,0 +1,37 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/

View File

@ -9,7 +9,6 @@ import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
@RestController
public class LabworkApplication {
public static void main(String[] args) {
SpringApplication.run(LabworkApplication.class, args);
}
@ -32,7 +31,7 @@ public class LabworkApplication {
}
@GetMapping("/mul")
public int mul( @RequestParam(value = "num1", defaultValue = "0") int num1,
@RequestParam(value = "num2", defaultValue = "0") int num2)
@RequestParam(value = "num2", defaultValue = "0") int num2)
{
return num1 * num2;
}