Skip to content

Commit 39a2e63

Browse files
committed
优化配置
1 parent fc18b4e commit 39a2e63

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hsweb-starter/hsweb-spring-boot-starter/src/main/java/org/hswebframework/web/starter/HswebAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@
5353
@EnableConfigurationProperties(EntityProperties.class)
5454
public class HswebAutoConfiguration {
5555

56-
@Autowired(required = false)
56+
@Autowired
5757
private EntityProperties entityProperties;
5858

59-
6059
@Bean
6160
@Primary
6261
public FastJsonHttpMessageConverter fastJsonHttpMessageConverter(@Autowired(required = false) EntityFactory entityFactory) {

hsweb-tests/src/main/java/org/hswebframework/web/tests/SimpleWebApplicationTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public class SimpleWebApplicationTests {
7171
@Autowired
7272
protected SqlExecutor sqlExecutor;
7373

74+
@Autowired
75+
protected EntityFactory entityFactory;
76+
7477
@Before
7578
public void setup() throws Exception {
7679
this.mvc = webAppContextSetup(this.wac).build();

0 commit comments

Comments
 (0)