티스토리

메모장
검색하기

블로그 홈

메모장

doopang.tistory.com/m

doopang 님의 블로그입니다.

구독자
1
방명록 방문하기

주요 글 목록

  • List<Map<String, Object>> maps 정렬 1. list# ascmaps.sort((map1, map2) -> { Integer seq1 = Integer.parseInt(map1.get("seq").toString()); Integer seq2 = Integer.parseInt(map2.get("seq").toString()); return seq1.compareTo(seq2);});# descmaps.sort((map1, map2) -> { Integer seq1 = Integer.parseInt(map1.get("seq").toString()); Integer seq2 = Integer.parseInt(map2.get("seq").toString()); return seq2.compareTo(seq1);});.. 공감수 0 댓글수 0 2025. 3. 28.
  • MS 계정으로 로그인 1. 네트워크에 연결 화면에서 shift + F102. cmd 명령어 oobe\bypassnro 공감수 0 댓글수 0 2025. 3. 19.
  • Redis 더티 체킹(Dirty Checking) 객체의 변수만 수정해서는 Redis 업데이트 안됨, 객체 자체를 업데이트 해줘야됨 공감수 0 댓글수 0 2025. 2. 17.
  • rollbackFor 예외 지정 @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) 공감수 0 댓글수 0 2025. 2. 17.
  • MyBatis foreach -- IN AND ( #{item} )-- OR AND ( #{item} ) 공감수 0 댓글수 0 2024. 11. 11.
  • MySQL You can't specify target table 'tablename' for update in FROM clause -- SELECT 한번 더 해줌SELECT SEQFROM (SELECT COALESCE(SEQ, 0) + 1 AS SEQ FROM tablename) AS t 공감수 0 댓글수 0 2024. 10. 24.
  • List Map 로그 for (Map map : mapList) { for (Map.Entry elem : map.entrySet()) { System.out.println(elem.getKey() + " : " + elem.getValue()); }} 공감수 0 댓글수 1 2024. 10. 8.
  • LocalDateTime, String 변환 DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");String a = "20240710090000";// String to LocalDateTimeLocalDateTime b = LocalDateTime.parse(a, formatter);// LocalDateTime to StringString c = b.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); 공감수 0 댓글수 0 2024. 7. 11.
  • SNS 공유하기 https://developers.kakao.com/https://devtalk.kakao.com/// index.html// kakao// Main.vue X facebook naver web copy 공감수 0 댓글수 0 2024. 7. 2.
  • MariaDB 암호화, 복호화 SET block_encryption_mode = 'aes-256-cbc';SET @key_str = ENCRYPT_KEY;SET @init_vector = ENCRYPT_IV;// 암호화SELECT TO_BASE64(AES_ENCRYPT(필드, @key_str, @init_vector)) from 테이블;// 복호화SELECT AES_DECRYPT(FROM_BASE64(필드), @key_str, @init_vector) from 테이블; 공감수 0 댓글수 0 2024. 6. 25.
  • MariaDB 컬럼명, 컬럼 코멘트로 테이블 조회 SELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, COLUMN_COMMENTFROM INFORMATION_SCHEMA.COLUMNSWHERE COLUMN_NAME = [컬럼명] AND COLUMN_COMMENT = [컬럼 코멘트]; 공감수 0 댓글수 0 2024. 6. 24.
  • Vue jQuery 플러그인 설정 npm i @rollup/plugin-inject npm i jquery webpack.conf.js(webpack) const webpackConfig = { plugins: [ ... new webpack.ProvidePlugin({ $: 'jquery', jquery: 'jquery', 'window.jQuery': 'jquery', jQuery : 'jquery' }) ] } vite.config.js(vite) import { defineConfig, loadEnv } from 'vite' import inject from '@rollup/plugin-inject' export default ({command, mode}) => { return defineConfig({ plugins: [ in.. 공감수 0 댓글수 0 2024. 4. 17.
  • JPA Index 설정 Board.java @Table( uniqueConstraints = @UniqueConstraint(name = "uk_board_01", columnNames = {"board_id", "board_type"}) ) 공감수 0 댓글수 0 2024. 3. 29.
  • 마이크로서비스 아키텍처(Microservices Architecture, MSA) Feign project(Feign) A project(A) 요청 B project(B) 요청 받음 A Controller > A Service1 > A Service2(B에 요청 보낼 Service) > Feign > B InsideController > B Service > B Repository A Service2에서 Feign RestResult로 return, Feign RestResult = B RestResult 공감수 0 댓글수 0 2024. 1. 15.
  • publish 안하고 로컬에서 확인하는 법 Gradle build > Project Structure > Libraries > 기존 SNAPSHOT.jar 지우고 로컬에 있는 SNAPSHOT.jar 적용 인식 못하거나 Run 안되면 Settings > Build, Execution, Deployment > Build Tools > Gradle Build and run using: Gradle로 되있으면 IntelliJ IDEA로 변경 Run tests using: Gradle로 되있으면 IntelliJ IDEA로 변경 공감수 0 댓글수 0 2024. 1. 15.
  • Vue Store const state = { infoSeq: '' } const mutations = { setInfoSeq (state, payload) { state.infoSeq = payload } } /** * 정보 조회 * @param commit * @param payload * @returns {Promise} */ async selectInfo ({commit}, payload) { return transmission(true, 'GET', url, payload) } const getters = { infoSeq (state) { return state.infoSeq } } computed: { infoSeq () { return store.state.infoSeq } } store.commit('se.. 공감수 0 댓글수 0 2023. 12. 26.
  • TOAST UI Grid Pagination(Server) 1) 일반 const dataSource = { api: { readData: { url: url, method: 'GET', initParams: $('#searchForm').serializeObject() } } } let pageGrid = new tui.Grid({ data: dataSource, }); 2) 페이지 제어 const dataSource = { api: { readData: { url: url, method: 'GET' } }, initialRequest: false // set to true by default } let pageGrid = new tui.Grid({ data: dataSource, }); pageGrid.readData(1, $('#searchForm').ser.. 공감수 0 댓글수 0 2023. 12. 15.
  • internal error. please refer to https://jb.gg/ide/critical-startup-errors Plugins에서 Install Plugin from Disk 하고 재시작 시 에러 발생 C:\Users\user\AppData\Roaming\JetBrains\에러난 프로젝트\plugins 경로로 이동해서 안에 있는 폴더 삭제 후 재시작 공감수 1 댓글수 1 2023. 11. 24.
  • Git Merge, Rebase Git Merge git checkout master git merge feature/branch Git Rebase git checkout feature/branch git rebase master git checkout master git merge feature/branch 공감수 0 댓글수 0 2023. 11. 23.
  • Vue props, emit 상위 컴포넌트methods: { methodName1 (data) ( ... }, methodName2 (data) { ... }, methodName3 () { this.$refs.ChildComponent.method3(data) }}하위 컴포넌트버튼1버튼2props: { propName1: {}, propName2: {}}methods: { method1 (data) { this.$emit('event1', data1) }, method2 (data) { this.$emit('event2', data2) }, method3 (data) { ... }} 공감수 0 댓글수 0 2023. 11. 21.
  • List Mapping BoardService.java List boards = boardDtos .stream() .map(Board::toEntity) .collect(Collector.toList()); Board.java public Static Board toEntity(BoardDto boardDto) { return Board.builder() .boardSeq(boardDto.getBoardSeq()) .subject(boardDto.getSubject()) .content(boardDto.getContent()) .build(); } 공감수 0 댓글수 0 2023. 10. 11.
  • ImmutableMap // Map import java.util.HashMap; import java.util.Map; Map map = new HashMap(); map.put("a", a); map.put("b", b); map.put("c", c); // ImmutableMap import com.google.common.collect.ImmutableMap; ImmutableMap.builder() .put("a", a) .put("b", b) .put("c", c) .build(); 공감수 0 댓글수 1 2023. 10. 11.
  • Git 강제 push git push origin master --force 공감수 0 댓글수 0 2023. 9. 26.
  • TOAST UI Grid Pagination Using Callbacks https://github.com/nhn/tui.grid/blob/master/packages/toast-ui.grid/docs/en/data-source.md Using Callbacks grid.on(&#39;beforeRequest&#39;, function(data) { // Before sending the request }).on(&#39;response&#39;, function(data) { // When a response has been received regardless of success. const response = data.xhr.response; const responseObj = JSON.parse(response); if (responseObj.result) { ... }.. 공감수 0 댓글수 0 2023. 9. 16.
  • IntelliJ 세팅 Edit Custom VM Options...-Dfile.encoding=UTF-8-Dconsole.encoding=UTF-8-Xmx4096mEdit Custom Properties...project.tree.structure.show.url=falsePluginsGitToolBoxMyBatisX// IntelliJ commit 창 안보일 때Settings > Version Control > Commit > Use non-modal commit interface 체크// MyBatis 쿼리 복사 붙여넣기Settings > Editor > General > Smart Keys > Reformat on paste: None or Indent block// 주석, 실행 쿼리 console에서 확인Setting.. 공감수 0 댓글수 0 2023. 9. 6.
  • Git Cherry-Pick git checkout dev git log --pretty=oneline log에서 master에 반영하길 원하는 Commit ID 확인 후 복사(예 abc123) git checkout master git cherry-pick abc123 공감수 0 댓글수 0 2023. 6. 1.
  • Vue vee-validate npm i vee-validate vee-validate.js import {confirmed, email, integer, length, max, min, min_value, numeric, required, regex, double} from 'vee-validate/dist/rules' import {extend, localize} from 'vee-validate' import ko from 'vee-validate/dist/locale/ko.json' localize('ko', ko) extend('required', { ...required, // message: 'This field is required1' }) Company.vue {{ errors[0] }} 공감수 0 댓글수 0 2023. 3. 14.
  • 스프링 부트와 AWS로 혼자 구현하는 웹 서비스 현재 재직 중인 회사에서는 서버 호스팅으로 서비스를 운영하고 있다. AWS 같은 클라우드로 서비스를 운영해본 적이 없어 책을 보고 무작정 따라 했다. 해보고 느낀 점은 DB까지 연결해봤는데 아주 간단한 예제였지만 생각보다 세팅이 간단하고 실제로 서비스를 운영하는데 편할 거 같다는 생각이 들었다. 공감수 0 댓글수 0 2023. 3. 2.
  • 검색 사이트 https://www.tabnine.com/ https://www.baeldung.com/ https://www.w3schools.com/ https://stackoverflow.com/ https://ko.javascript.info/ https://chat.openai.com/ https://www.npmjs.com/ https://v2.vuejs.org/v2/guide/ 공감수 0 댓글수 0 2023. 3. 2.
  • Jasypt 이용한 application.yml 암호화 build.gradle// https://mvnrepository.com/artifact/com.github.ulisesbocchio/jasypt-spring-boot-starterimplementation group: 'com.github.ulisesbocchio', name: 'jasypt-spring-boot-starter', version: '3.0.4' Local// 추가-Djasypt.encryptor.password=Secret Key JasyptConfigimport org.jasypt.encryption.StringEncryptor;import org.jasypt.encryption.pbe.PooledPBEStringEncryptor;import org.jasypt... 공감수 0 댓글수 0 2023. 2. 24.
    문의안내
    • 티스토리
    • 로그인
    • 고객센터

    티스토리는 카카오에서 사랑을 담아 만듭니다.

    © Kakao Corp.