使用kotlin开发springboot应用
来源:互联网 发布:linux 百度云盘同步 编辑:程序博客网 时间:2024/06/05 07:14
1
2
3
4
5
<
dependency
>
<
groupId
>org.jetbrains.kotlin</
groupId
>
<
artifactId
>kotlin-stdlib</
artifactId
>
<
version
>${kotlin.version}</
version
>
</
dependency
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<
plugin
>
<
groupId
>org.jetbrains.kotlin</
groupId
>
<
artifactId
>kotlin-maven-plugin</
artifactId
>
<
version
>${kotlin.version}</
version
>
<
executions
>
<
execution
>
<
id
>compile</
id
>
<
phase
>compile</
phase
>
<
goals
>
<
goal
>compile</
goal
>
</
goals
>
<
configuration
>
<
sourceDirs
>${project.basedir}/src/main/kotlin</
sourceDirs
>
</
configuration
>
</
execution
>
<
execution
>
<
id
>test-compile</
id
>
<
phase
>test-compile</
phase
>
<
goals
>
<
goal
>test-compile</
goal
>
</
goals
>
<
configuration
>
<
sourceDirs
></
sourceDirs
>
</
configuration
>
</
execution
>
</
executions
>
</
plugin
>
@RestControllerclass CustomerController (val repository:CustomerRepository) {@GetMapping("/")fun findAll() = repository.findAll()@GetMapping("/{name}")fun findByLastName(@PathVariable name:String)= repository.findByLastName(name)}
阅读全文
0 0
- 使用kotlin开发springboot应用
- 使用Kotlin开发Android应用
- 使用Kotlin开发Android应用
- 使用Kotlin开发Android应用
- 使用Kotlin开发Android应用
- 使用Kotlin开发Android应用
- 使用Kotlin开发Android应用
- 使用Kotlin优雅的开发Android应用
- 使用Kotlin开发Android应用初体验
- 使用Kotlin优雅的开发Android应用
- 使用Kotlin开发Android应用初体验
- 使用Kotlin开发Android应用初体验
- Kotlin集成 SpringBoot 混合Java库开发
- 《Kotin 极简教程》第11章 使用Kotlin 集成 SpringBoot开发Web服务端
- 使用Kotlin开发Android应用(I):简介
- 使用Kotlin开发Android应用(II):创建新工程
- 使用Kotlin开发Android应用(I):简介
- 使用Kotlin开发Android应用(II):创建新工程
- linux基本命令及操作2
- Zookeeper常用命令
- JS判断客户端是否是iOS或者Android手机移动端
- 111. Minimum Depth of Binary Tree
- Spring(前言)
- 使用kotlin开发springboot应用
- TensorFlow 文本识别
- 三进制小数 oj132
- CA介绍
- Leetcode--17:Letter Combinations of a Phone Number
- C primer plus(编程练习)file-4.8-5
- 官方历程 调试STM32F407 VCP例程未知设备问题
- android 自定义 View
- HD 2063 增广路径求二分图最大匹配(匈牙利算法)