일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- Tomcat
- JavaScript
- AJAX
- 설정
- jpa
- MSSQL
- JDBC
- Spring Boot
- 문서
- STS
- Docker
- Core Java
- 오픈소스
- git
- IntelliJ
- Open Source
- SpringBoot
- Source
- ubuntu
- oracle
- Python
- spring
- maven
- Exception
- Eclipse
- Thymeleaf
- MySQL
- myBatis
- PostgreSQL
- error
- Today
- Total
목록hermeswing log (709)
헤르메스 LIFE
JDK 1.8.x IntelliJ IDEA 2020.3 . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.2.5.RELEASE) 2020-12-26 19:35:37.382 INFO 12104 --- [ main] com.sample.Application : Starting Application on DESKTOP-HMJ6ST0 with..
JDK 1.8.x IntelliJ IntelliJ IDEA 2020.3 java: cannot find symbol symbol: class SpringBootApplication package com.sample; @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } } 참담하고, 어이 없지만.. classpath 를 설정하지 못해서.. ㅡㅡㅋ Alt + Shift + Enter Alt + Enter package com.sample; import org.springframework.boot.SpringAp..

1. IntelliJ IDEA 2020.3의 새로운 기능 2. [IntelliJ] Intellij 학생 인증, 무료 설치 방법 3. Spring Boot Tomcat 포트 변경 application.properties 설정변경 server.port = 8090 4. Module 추가 ( 참조 : [IntelliJ] Eclipse 와 IntelliJ IDEA 비교) - 신규 Module 추가 [File] >> [New] >> [Module] - 기존 존재하는 Module 추가 [File] >> [New] >> [Module from Existing Sources…] 5. Module 삭제 - Module 을 DELETE 했더니.. 파일을 전부 DELETE 해 버렸음. 1. [File] >> [Close P..
개발환경 MSSQL Spring 데이터 저장 시 아래와 같은 오류가 발생하였습니다. com.microsoft.sqlserver.jdbc.SQLServerException: String or binary data would be truncated. 내용 DataIntegrityViolationException 을 리턴한 내용입니다. SQLException Error Code 는 8152 입니다. 등록된 문자열의 길이가 테이블 컬럼의 길이보다 클 때 발생하는 오류 입니다. 컬럼 길이를 좀 늘려야 겠네요.. ㅡㅡㅋ
substring의 사용은 항상 헛갈립니다. 그래서, 적어두고 찾아봅니다. import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class StringSample { static Logger logger = LoggerFactory.getLogger( StringSample.class ); public static void main( String[] args ) { String input1 = "abcd"; String input2 = "ABCD"; String output = ""; // 마지막 문자삭제 if ( input1.length() > 0 ) { output = input1.substring( 0, input1.length() - 1..
개발환경 Spring 3.2.9 MyBatis 3.4.6 Microsoft SQL Server REST환경을 구축하고, Insert 를 수행하던 중 중복오류 발생. Exception 메시지가 정제되지 않고 리턴되었습니다. ### Error updating database. Cause: com.microsoft.sqlserver.jdbc.SQLServerException: PRIMARY KEY 제약 조건 'USER_PK'을(를) 위반했습니다. 개체 'dbo.TB_USER'에 중복 키를 삽입할 수 없습니다. 중복 키 값은 (4)입니다. ### The error may involve defaultParameterMap ### The error occurred while setting parameters ###..

개발환경 JDK 1.8.0_202 Tomcat 8.5.54 Eclipse 2020-06R 12월 20, 2020 4:57:34 오후 org.apache.tomcat.util.digester.SetPropertiesRule begin 경고: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlNamespaceAware' to 'false' did not find a matching property. 12월 20, 2020 4:57:34 오후 org.apache.tomcat.util.digester.SetPropertiesRule begin 경고: [SetPropertiesRule]{Server/Service/Engine/Host} Se..
출처 : http://shonm.tistory.com/377 JDOM 이라는 API 를 통해 간단히 XML 을 만들 수 있다. 아래 코드를 보면 바로 이해가 될 것으로 보인다. (String 으로 출력 하는 방식과 file 로 만드는 방식을 모두 정리 하였다.) import java.io.FileOutputStream; import java.io.IOException; import org.jdom.Document; import org.jdom.Element; import org.jdom.output.Format; import org.jdom.output.XMLOutputter; public class XmlGene { /** * @param args */ public static void main(Str..
출처 : http://makerj.tistory.com/149 1. XML Document 생성 1.1 XML 불러오기 Case1> File로부터 읽는 경우 Document xml = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(filePath)); Case2> String으로부터 읽는 경우 Document xml = DocumentBuilderFactory.newInstance().newDocumentBuilder(). parse(new ByteArrayInputStream(xmlString.getBytes())); 1.2 정규화 xml.getDocumentElement().normalize(); 2. XPath 생성..
출처 : http://www.tutorialspoint.com/java_xml/java_jdom_create_document.htm package com.file .utils; import java. io.IOException ; import org. jdom.Attribute ; import org. jdom.Document ; import org. jdom.Element ; import org. jdom.output .Format; import org. jdom.output .XMLOutputter; public class CreateXmlFileDemo { public static void main( String[] args ) { try { // root element Element carsEle..