본문 바로가기

카테고리 없음

2021-01-10 18시 개발자 글 모음 | "Spring Boot Redis En" 외 5개 이야기

Spring @Bean 애노테이션 by 이종립 about Spring

  • to be taken into account during injection point resolution just like corresponding annotations on the corresponding component classes but potentially being very individual per bean definition (in case of multiple definitions with the same bean class)
  • Qualifiers narrow the set of candidates after the initial type match; order values determine the order of resolved elements in case of collection injection points (with several target beans matching by type and qualifier)
  • but please be aware that they do not influence singleton startup order which is an orthogonal concern determined by dependency relationships and @DependsOn declarations as mentioned above


[AWS Builders 100] 클라우드 비용, 어떻게 줄일 수 있을까? by 이진태 about Rust,Cloud,AWS

  • 전용 호스트를 사용하면 특정 물리 서버의 VPC 에서 인스턴스를 시작할 수 있다는 점은 동일하다
  • 공유 인스턴스를 사용하면 AWS의 하드웨어 장비를 여럿이 나눠 사용한다고 볼 수 있다
  • 또한 전용 호스트를 사용하면 EC2 자체 소켓당/코어당 소프트웨어 라이센스를 사용함으로써 라이센스 비용을 절감할 수 있다


Java Stream Collector 반쪽짜리 스트림을 쓰던 그대에게. Advanced Stream! by 정동교 about Java

  • summingInt() 는 스트림에 있는 객체를 int 타입으로 매핑하는 함수를 파라미터로 받습니다
  • 안에 있는 groupingBy 에 의해서 다시 부서(Department)별로 그룹화한 결과로 맵 안에 맵을 갖는 자료형태를 갖게 된 것을 확인할 수 있습니다
  • 앞에서 1단계 그룹화를 했던 것은 Collector 부분에 toList()를 사용한 오버로딩된 정적 메소드를 사용한 것을 확인할 수 있습니다


AZ-900 대비 실습 - 15 - RBAC를 통한 접근 제어 by 이재석


    2021년 메모 by 이종립


      Spring Boot Redis Entity 별로 TTL 지정하기 by 이상구 about Java,Redis,Spring Boot,Spring

      • @RequiredArgsConstructor @Configuration @Slf4j @EnableRedisRepositories public class RedisRepositoryConfig { private final RedisProperties redisProperties; private final int DEFAULT_EXPIRE_SECONDS = 1; private final String ApiAccessInfo = "ApiAccessInfo"; private final int API_ACCESS_INFO_EXPIRE_SECONDS = 600; private final String Menus = "Menus"; private final int MENUS_EXPIRE_SECONDS = 3600; @Bean(name = "cacheManager") public RedisCacheManager cacheManager(RedisConnectionFactory connectionFactory) { RedisCacheConfiguration configuration = RedisCacheConfiguration
      • RedisCacheConfiguration> cacheConfigurations = new HashMap<>(); // ApiAccessInfo cacheConfigurations
      • build(); } @Bean public RedisConnectionFactory redisConnectionFactory() { return new LettuceConnectionFactory(redisProperties