@Componentpublic class ServiceInit implements InitializingBean {@Autowired@Qualifier("mainDB")private GenericDAO dao;@AutowiredProperty property;@Overridepublic void afterPropertiesSet() throws Exception {HashMap map = new HashMap();map.put("location", Property.location);map.put("bosTypeCode", Property.bosTypeCode);map.put("serverDomain", Property.serverDomain);System.out.println("++++++++++++++..
@Configurationpublic class ServiceConfig implements WebMvcConfigurer {@Value("${static.url}")private String staticUrl;@Value("${static.resources.location}")private String staticResourcesLocation;@Beanpublic SpringResourceTemplateResolver templateResolver() {SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver();templateResolver.setPrefix("classpath:templates/");te..
/* AOP 설정(I/O 로깅) */@Aspect@Componentpublic class ServiceAOP { private static final Logger logger = LoggerFactory.getLogger("AOP"); @Pointcut("within(com.shinhanpg.admin.backoffice..controller.*)") // 서비스까지 AOP 설정하는 경우 // @Pointcut("within(com.shinhanpg.admin.backoffice..*)") public void controllerPointcut() { } @Pointcut("within(com.shinhanpg.admin.backoffice..service.*) && !(@annotation(com.sh..
@Configurationpublic class RedisConfig {@Value("${redis.cluster.nodes}")List redisNodeList;@Beanpublic RedisTemplate redisTemplate(RedisConnectionFactory connectionFactory) {RedisTemplate redisTemplate = new RedisTemplate();redisTemplate.setKeySerializer(new StringRedisSerializer());redisTemplate.setValueSerializer(new GenericJackson2JsonRedisSerializer());redisTemplate.setConnectionFactory(conn..
public class PropertiesCheck {private static final Logger log = LoggerFactory.getLogger(PropertiesCheck.class);String DEV = "dev";String TST = "tst";String PRD = "prd";HashMap properties = new HashMap();public static void main(String[] args) throws IOException {PropertiesCheck im = new PropertiesCheck();im.check();}private void check() throws IOException {loadProperties(DEV);loadProperties(TST);..
**--------------------------------------------------------------------* ■Property 암복호화 설정 --------------------------------------------------------------------**/@Configurationpublic class JasyptConfig {private static final String ENCRYPT_KEY = "----";@Bean("JasyptStringEncryptor")public StandardPBEStringEncryptor stringEncryptor() {StandardPBEStringEncryptor encryptor = new StandardPBEStringEncr..
Configuration@EnableAsyncpublic class AsyncConfig implements AsyncConfigurer {private static ThreadPoolTaskExecutor threadPoolTaskExecutor;private static String THREAD_NAME = "ASYNC-THREAD-";private static int CORE_POOL_SIZE = Runtime.getRuntime().availableProcessors(); // 최초에 생성할 Pool Sizeprivate static int MAX_POOL_SIZE = Runtime.getRuntime().availableProcessors(); // 최대 Pool Sizeprivate stati..
설정 제외SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, MybatisAutoConfiguration.class, ErrorMvcAutoConfiguration.class},scanBasePackages = {"com.shinhanpg.admin.backoffice", "com.payletter.d7"})//@EnableRedisHttpSessionpublic class ServiceApplication { public static void main(String[] args) {SpringApplication.run(ServiceApplication.class, args);}}
- Total
- Today
- Yesterday
- $.extend
- 전후방탐색
- 진열사랑
- caniuse
- excel
- devtools
- QueryDSL
- springboot
- 정규식
- JQuery
- ul li로 테이블
- 프로젝트명변경
- CSS
- DatePicker
- getter
- PostgreSQL
- setter
- element위치
- sumifs
- Javascript
- object key
- spring
- Keycode
- oracle
- lombok
- 여러 컬럼 update
- draw.io
- $.each
- border-collapse
- @ExceptionHandler
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |