Skip to content

Commit aabc294

Browse files
authored
Merge pull request #29 from ReLive27/main
feat(i18n): add MessageSourceAutoConfiguration with custom SimpleAuth…
2 parents 62f6013 + d5023fa commit aabc294

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package io.github.simpleauth0.core.i18n;
2+
3+
import org.springframework.context.MessageSource;
4+
import org.springframework.context.annotation.Bean;
5+
import org.springframework.context.annotation.Configuration;
6+
7+
/**
8+
* @author: ReLive27
9+
* @date: 2025/11/19 23:16
10+
*/
11+
@Configuration(proxyBeanMethods = false)
12+
public class MessageSourceAutoConfiguration {
13+
14+
@Bean
15+
public MessageSource messageSource() {
16+
return new SimpleAuth0MessageSource();
17+
}
18+
19+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
2-
io.github.simpleauth0.core.configuration.AuthTokenAutoConfiguration
2+
io.github.simpleauth0.core.configuration.AuthTokenAutoConfiguration, \
3+
io.github.simpleauth0.core.i18n.MessageSourceAutoConfiguration

0 commit comments

Comments
 (0)