Skip to content

Commit

Permalink
Add sample configuration with internal bean method
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye committed Mar 10, 2024
1 parent 24ffe8d commit 361d68f
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.izeye.helloworld.springbootkotlin

import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

/**
* Sample [Configuration].
*
* @author Johnny Lim
*/
@Configuration
class SampleConfiguration {

// This function name will be translated to 'sampleBean$hello_spring_boot_kotlin'.
@Bean
internal fun sampleBean() = SampleBean()

}

/**
* Sample bean.
*
* @author Johnny Lim
*/
class SampleBean

0 comments on commit 361d68f

Please sign in to comment.