摘要: 3:ComponentScan 3.1:@ComponentScan注解默认就会装配标识了@Controller,@Service,@Repository,@Configuration,@Component注解的类到spring容器中 @Controller,@Service,@Repository 阅读全文
posted @ 2020-03-22 18:58 Draymond 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1:需要注入的bean /** * 选择性注入bean。。根据window,linux系统注入不同的值 */ @Configuration public class Cap5Config { /* linux系统注入的属性 */ @Bean("linuxUser") @Conditional(Lin 阅读全文
posted @ 2020-03-22 15:49 Draymond 阅读(384) 评论(0) 推荐(0) 编辑
摘要: http 请求80端口 https 请求443端口 server虚拟机1 listen 10010; listen 443 ssl; server_name 域名1 域名2 域名3; 监听 域名1:10010 域名2:10010 域名3:10010 ......... server虚拟机2 list 阅读全文
posted @ 2020-03-22 11:51 Draymond 阅读(9440) 评论(0) 推荐(0) 编辑