| | |
| | | package com.ruoyi.management; |
| | | package com.ruoyi.goods; |
| | | |
| | | import com.ruoyi.common.security.annotation.EnableCustomConfig; |
| | | import com.ruoyi.common.security.annotation.EnableRyFeignClients; |
| | |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | |
| | | /** |
| | |
| | | * @author ruoyi |
| | | */ |
| | | @EnableCustomConfig |
| | | @MapperScan({"com.ruoyi.management.mapper"}) |
| | | @MapperScan({"com.ruoyi.goods.mapper"}) |
| | | @EnableCustomSwagger2 |
| | | @EnableRyFeignClients |
| | | @SpringBootApplication |
| | |
| | | public static void main(String[] args) |
| | | { |
| | | SpringApplication.run(RuoYiGoodsApplication.class, args); |
| | | System.out.println("(♥◠‿◠)ノ゙ 后台配置模块启动成功 ლ(´ڡ`ლ)゙ \n" + |
| | | System.out.println("(♥◠‿◠)ノ゙ 商城模块启动成功 ლ(´ڡ`ლ)゙ \n" + |
| | | " .-------. ____ __ \n" + |
| | | " | _ _ \\ \\ \\ / / \n" + |
| | | " | ( ' ) | \\ _. / ' \n" + |
| | |
| | | " | | \\ / \\ / \n" + |
| | | " ''-' `'-' `-..-' "); |
| | | } |
| | | @Bean |
| | | public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() { |
| | | PropertySourcesPlaceholderConfigurer c = new PropertySourcesPlaceholderConfigurer(); |
| | | c.setIgnoreUnresolvablePlaceholders(true); |
| | | return c; |
| | | } |
| | | } |