我开始了一个学习Kotlin的新项目,我在Spring Initializr中获得了一个项目模板并创建了一个控制器来映射我的资源。
StudentController
Uri
应用
Sub Insert()
Dim myPict As Picture
Dim PictureLoc As String
PictureLoc = "C:\MyFolder\Picture1.png"
With Range("E1")
Set myPict = ActiveSheet.Pictures.Insert(PictureLoc)
.RowHeight = myPict.Height
myPict.Top = .Top
myPict.Left = .Left
myPict.Placement = xlMoveAndSize
End With
End Sub
application.properties
@RestController
class StudentController {
@GetMapping("/students")
fun getStudent(): Student {
return Student("name", "test")
}
}
我运行项目,当我向 localhost:8080 /学生发送GET请求时,我收到了404。
@SpringBootApplication
class DemoApplication
fun main(args: Array<String>) {
SpringApplication.run(DemoApplication::class.java, *args)
}
我做错了什么?