Resource interpreted as Stylesheet but transferred with MIME type text/html : "~.css"

[원인]

css 파일이 text/html Content-Type 으로 처리되어 나타나는 현상

 

[관련 자료]

1. stackoverflow.com/questions/22631158/resource-interpreted-as-stylesheet-but-transferred-with-mime-type-text-html-see 

2. www.mins01.com/mh/tech/read/877?ct=&tq=tt&q=css+mime

 

[해결방법]

컨테이너 webcommon.xml 의 확장자별 MIME 타입을 지정한다.

1
2
3
4
<mime-mapping>
  <extension>css</extension>
  <mime-type>text/css</mime-type>
</mime-mapping>
cs

참고:

czar.tistory.com/627

 

 

반응형

[에러로그]

2020-05-12 10:44:05,194 INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore - ClusterManager: detected 1 failed or restarted instances.

 

[원인]

쿼츠 클러스터링 모드에서 인스턴스 간 타임싱크(time sync)가 맞지 않아 발생하는 에러.

 

[해결]

ntp(network time protocol) 상태 확인 및 설정 필요.

 

 

https://stackoverflow.com/questions/15701417/strange-behavior-of-quartz-in-cluster-configuration

 

반응형

[현상 및 에러로그]

bad SQL grammar [SELECT E.JOB_EXECUTION_ID, E.START_TIME, E.END_TIME, E.STATUS, E.EXIT_CODE, E.EXIT_MESSAGE, E.CREATE_TIME, E.LAST_UPDATED, E.VERSION, E.JOB_INSTANCE_ID, E.JOB_CONFIGURATION_LOCATION from bomdb.BATCH_JOB_EXECUTION E, bomdb.BATCH_JOB_INSTANCE I where E.JOB_INSTANCE_ID=I.JOB_INSTANCE_ID and I.JOB_NAME=? and E.START_TIME is not NULL and E.END_TIME is NULL order by E.JOB_EXECUTION_ID desc]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'E.JOB_CONFIGURATION_LOCATION' in 'field list'

 

[원인 및 해결]

spring batch 버전이 올라가면서 메타데이터 스키마가 변경되었음.

BATCH_JOB_EXECUTION_PARAMS 테이블 추가.

BATCH_JOB_EXECUTION 테이블에 JOB_CONFIGURATION_LOCATION 칼럼 추가.

 

[참고]

https://docs.spring.io/spring-batch/docs/current/reference/html/schema-appendix.html

https://stackoverflow.com/questions/25882740/unknown-column-job-configuration-location-in-field-list-while-using-spring-b

반응형

+ Recent posts