Spring boot 프로젝트 통합 my batis, xml 정적 자원 파일 의 배치 및 경로 설정 문제
3299 단어 개발 도구
Eclipse 에서:
#mybatis
mybatis.config-location:classpath:mybatis-config.xml
# mapper
mybatis.mapper-locations:classpath*:com/springboot/mapper/*.xml
IDEA 에서:
pom. xml 에 다음 설정 을 추가 하면 됩 니 다. (테스트 패키지 건 너 뛰 기: clean package - DMaven. test. skip = true
<build>
<resources>
<!-- , mapper -->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties
**/ *.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
Tips: 프로젝트 가 시작 되 지 않 으 면 * * "Unable to start embedded container" * * 를 보고 하면 탭 을 삭제 하고 시작 후 탭 을 추가 하여 다시 시작 하면 해 결 됩 니 다. 신의 동작, 모 르 는 것 은 묻 지 마 세 요. -.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
git push 오류 ERROR: missing commit message footer에서 변경-ID전체 오류 로그는 다음과 같습니다. 오류 프롬프트에서 Change-Id를 잃어버려서 오류의 원인을 알 수 없습니다. 문제 해결 단계는 다음과 같습니다. 1. Hint 프롬프트에 따라 명령을 실행합니다. 2, 그리고 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.