mybatis-spring & spring boot - Could not resolve type alias issue -


i using spring boot 1.5.4 mybatis-spring 3.1. able run application via eclipse. when used commandline (java -jar jarname), below exception. standalone application stopping. want move app deploy different machine jar. please help.

caused by: org.apache.ibatis.type.typeexception: not resolve type alias 'myclass'. cause: java.lang.classnotfoundexception: cannot find class: myclass @ org.apache.ibatis.type.typealiasregistry.resolvealias(typealiasregistry.java:120) @ org.apache.ibatis.builder.basebuilder.resolvealias(basebuilder.java:149) @ org.apache.ibatis.builder.basebuilder.resolveclass(basebuilder.java:116) ... 36 more

i resolved same issue moving autoconfigure(using spring properties) had db configuration(datasource, session factory) configured in javaconfig class. i'm removed config , moved config application properties(yml format) .. below have

mybatis:   typealiasespackage: com.wiredinformatics.preauth.domain spring:   datasource:     url: jdbc:mysql://127.0.0.1:3306/preauth?     usessl=false&servertimezone=utc     username: myuser     password: mypass   dbcp2:     driver: com.mysql.cj.jdbc.driver     initial-size: 2     max-total: 10     max-idle: 10     min-idle: 5     max-wait-millis: 30000     validation-query: select 1  

i haven't had time yet figure out why having own java config broke scanning. worked ok in eclipse, failed when running command line


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -