Skip to content

Commit 22ab355

Browse files
committed
Feature: Creating a bean for Messages Class
1 parent 91bd0be commit 22ab355

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/main/java/config/AppConfig.java

+20
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)