Skip to content

Commit

Permalink
fix($starter): @AutoConfiguration should be used to annotate top-le…
Browse files Browse the repository at this point in the history
…vel auto-configuration classes
  • Loading branch information
johnnymillergh committed May 29, 2022
1 parent 1240fea commit 417773a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.jmsoftware.maf.reactivespringcloudstarter.redis.RedisConfiguration
import com.jmsoftware.maf.reactivespringcloudstarter.service.CommonService
import com.jmsoftware.maf.reactivespringcloudstarter.service.impl.CommonServiceImpl
import com.jmsoftware.maf.reactivespringcloudstarter.util.ResponseUtil
import org.springframework.boot.autoconfigure.AutoConfiguration
import org.springframework.boot.autoconfigure.AutoConfigureOrder
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.ApplicationContext
Expand All @@ -30,6 +31,7 @@ import javax.annotation.PostConstruct
*
* @author Johnny Miller (锺俊), e-mail: johnnysviva@outlook.com, date: 4/17/22 8:17 AM
*/
@AutoConfiguration
@AutoConfigureOrder(Int.MIN_VALUE)
@EnableConfigurationProperties(
MafConfigurationProperties::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import com.jmsoftware.maf.springcloudstarter.service.impl.CommonServiceImpl
import com.jmsoftware.maf.springcloudstarter.websocket.WebSocketConfiguration
import org.apache.ibatis.exceptions.PersistenceException
import org.mybatis.spring.MyBatisSystemException
import org.springframework.boot.autoconfigure.AutoConfiguration
import org.springframework.boot.autoconfigure.ImportAutoConfiguration
import org.springframework.boot.autoconfigure.condition.*
import org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration
Expand All @@ -55,6 +56,7 @@ import javax.annotation.PostConstruct
* @author Johnny Miller (锺俊), e-mail: johnnysviva@outlook.com, date: 4/12/22 9:26 PM
* @see <a href='https://docs.spring.io/spring-boot/docs/current/reference/html/features.html.features.developing-auto-configuration'>9. Creating Your Own Auto-configuration</a>
*/
@AutoConfiguration
@IntegrationComponentScan
@ConditionalOnWebApplication
@EnableConfigurationProperties(
Expand Down

0 comments on commit 417773a

Please sign in to comment.