forked from Lengchuan/SpringBoot-Study
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.java
More file actions
29 lines (24 loc) · 807 Bytes
/
Copy pathApp.java
File metadata and controls
29 lines (24 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com;
import com.lc.springBoot.converter.EncrypConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.HttpMessageConverters;
import org.springframework.context.annotation.Bean;
/**
* @author lsj <lishuijun1992@gmail.com>
* @date 17-3-28
*/
@SpringBootApplication
public class App {
// @Bean
// HttpMessageConverters setFastJsonConverter() {
// return new HttpMessageConverters(new FastJsonConverter());
// }
@Bean
HttpMessageConverters fastJsonHttpMessageConverters() {
return new HttpMessageConverters(new EncrypConverter());
}
public static void main(String[] args) {
SpringApplication.run(App.class, args);
}
}