전체 글(809)
-
Mybatis if ~ else 적용하기
사용 SELECT * FROM users WHERE 1=1 AND name = #{name} AND age = #{age} AND status = 'active' 사용 SELECT * FROM users name = #{name} age = #{age} 응용 SELECT * FROM users name = #{name} ..
2024.11.27 -
Sencha Grid 선택된 row 색깔 바꾸기
inline style 사용javascript{ xtype: 'grid', itemId: 'grid', title: '정보', height: 300, flex: 1, scrollable: true, store: Ext.data.StoreManager.lookup('store'), columns: [ { text: '샘플1', dataIndex: 'DATA1', flex: 1 }, { text: '샘플2', dataIndex: 'DATA2', flex: 1 }, ], selModel: { mode: 'SINGLE', // Single-row selection mode selectedItemCls: 'se..
2024.11.27 -
Let's encrypt 인증서 갱신
현재 인증서 확인 sudo certbot certificates인증서 갱신sudo certbot renewTSnginx.conf의 정보를 참조하는데, 'stream'을 인식하지 못함잠깐 주석처리하고 인증서를 갱신한 이후에 다시 원복하면 해결됨
2024.11.26 -
Java 정규식으로 replace 하기
public class Main { public static void main(String[] args) { String input = "aabcdefg00333"; // Remove 'aa' and all digits String result = input.replaceAll("[aa\\d]", ""); System.out.println(result); // Output: bcdefg }}
2024.11.26 -
Sencha Grid scroll 추가
scrollable: trueExt.create('Ext.grid.Panel', { renderTo: Ext.getBody(), title: 'Scrollable Grid Example', width: 800, height: 400, // Set a fixed height to make scrolling effective scrollable: true, // Enable scrolling store: Ext.create('Ext.data.Store', { fields: ['id', 'name', 'email'], data: (function () { // Generate sample data let data ..
2024.11.26 -
Sencha Grid 405에러 415에러 처리
405에러: Post방식으로 호출해야 하는데, Get방식으로 호출했기 때문에 발생415에러: Media Type이 정의되지 않아서 발생Ext.create('Ext.data.Store', { storeId: 'nodeStore', // Assign an ID for easy reference fields: ['DATA1', 'DATA3', 'DATA8', 'DATA2'], // Define fields proxy: { type: 'ajax', // Use Ajax to fetch data url: '/Node/getNode2List.do', // Server endpoint to fetch data actionMethods: { re..
2024.11.26