We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91bd0be commit 22ab355Copy full SHA for 22ab355
src/main/java/config/AppConfig.java
@@ -0,0 +1,20 @@
1
+package config;
2
+
3
+import com.example.easynotes.exception.Messages;
4
+import org.springframework.context.annotation.Bean;
5
+import org.springframework.context.annotation.ComponentScan;
6
+import org.springframework.context.annotation.Configuration;
7
+import org.springframework.http.HttpStatus;
8
+import org.springframework.http.ResponseEntity;
9
10
+@ComponentScan
11
+@Configuration
12
+public class AppConfig {
13
+ private String messages;
14
+ private HttpStatus status;
15
+ @Bean
16
+ public Messages messages(){
17
+ return new Messages();
18
+ }
19
20
+}
0 commit comments