File tree Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ This is my little backend cookbook. I need and use it regularly for various smal
76
76
* Found an error -> please [ report] ( https://github.com/osahner/kotlin-spring-boot-rest-jpa-jwt-starter/issues ) .
77
77
78
78
### Changelog
79
+ * _ v0.11.2-SNAPSHOT_ : spring-boot 3.3.0, kotlin 2.0.0
79
80
* _ v0.11.1-SNAPSHOT_ : fix token validity time
80
81
* _ v0.11.0-SNAPSHOT_ : spring-boot 3.2.x, kotlin 1.9.x, java 21
81
82
* _ v0.10.0-SNAPSHOT_ : spring-boot 3.1.x, add 2FA, cleanup
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >org.springframework.boot</groupId >
7
7
<artifactId >spring-boot-starter-parent</artifactId >
8
- <version >3.2.4 </version >
8
+ <version >3.3.0 </version >
9
9
<relativePath /> <!-- lookup parent from repository -->
10
10
</parent >
11
11
12
12
<groupId >osahner</groupId >
13
13
<artifactId >kotlin-spring-boot-rest-jpa-jwt-starter</artifactId >
14
- <version >0.11.1 -SNAPSHOT</version >
14
+ <version >0.11.2 -SNAPSHOT</version >
15
15
<packaging >jar</packaging >
16
16
17
17
<name >kotlin spring-boot 2 rest/jpa/jwt starter</name >
22
22
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
23
23
24
24
<java .version>21</java .version>
25
- <kotlin .version>1.9.23 </kotlin .version>
25
+ <kotlin .version>2.0.0 </kotlin .version>
26
26
27
27
<jacoco-maven-plugin .version>0.8.10</jacoco-maven-plugin .version>
28
28
29
29
<jjwt .version>0.12.5</jjwt .version>
30
30
<poi .version>5.2.5</poi .version>
31
31
<jasypt .version>1.9.3</jasypt .version>
32
32
<opencsv .version>5.9</opencsv .version>
33
- <commons-io .version>2.15 .1</commons-io .version>
33
+ <commons-io .version>2.16 .1</commons-io .version>
34
34
<aerogear-otp-java .version>1.0.0</aerogear-otp-java .version>
35
35
</properties >
36
36
Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ import org.springframework.web.bind.annotation.RestController
9
9
@RestController
10
10
@RequestMapping(" /api/v1" )
11
11
class IndexController {
12
+ @Suppress(" SameReturnValue" , " SameReturnValue" )
12
13
@GetMapping(value = [" " , " /" , " /test" ])
13
14
fun helloWorld () = " Pong!"
14
15
15
16
@GetMapping(value = [" /required" ])
16
17
fun helloRequiredWorld (@RequestParam(value = " msg" , required = true ) msg : String ) = " Echo \" $msg \" !"
17
18
19
+ @Suppress(" SameReturnValue" )
18
20
@GetMapping(value = [" /restricted" ])
19
21
@PreAuthorize(" hasAuthority('STANDARD_USER')" )
20
22
fun helloRestrictedWorld () = " Pong!"
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ package osahner.api.address
2
2
3
3
import jakarta.persistence.*
4
4
import org.hibernate.Hibernate
5
- import org.hibernate.annotations.GenericGenerator
6
- import org.hibernate.annotations.Parameter
7
5
import osahner.toArray
8
6
import osahner.toMap
9
7
import osahner.writeValueAsString
@@ -14,14 +12,11 @@ import java.time.LocalDateTime
14
12
data class Address (
15
13
@Id
16
14
@GeneratedValue(generator = " address-sequence-generator" )
17
- @GenericGenerator (
15
+ @SequenceGenerator (
18
16
name = " address-sequence-generator" ,
19
- strategy = " org.hibernate.id.enhanced.SequenceStyleGenerator" ,
20
- parameters = [
21
- Parameter (name = " sequence_name" , value = " address_SEQ" ),
22
- Parameter (name = " initial_value" , value = " 100" ),
23
- Parameter (name = " increment_size" , value = " 1" )
24
- ]
17
+ sequenceName = " address_SEQ" ,
18
+ allocationSize = 1 ,
19
+ initialValue = 100 ,
25
20
)
26
21
var id : Int? ,
27
22
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import org.springframework.web.multipart.MultipartFile
7
7
8
8
@Component
9
9
class CsvImportService {
10
+ @Suppress(" RedundantModalityModifier" )
10
11
final inline fun <reified T : CsvImportDto <S >, S > import (file : MultipartFile ): Collection <S > =
11
12
builder().setInputStream(file.inputStream).get().bufferedReader().use { stream ->
12
13
CsvToBeanBuilder <T >(stream)
You can’t perform that action at this time.
0 commit comments