java -jar 启动时哪些参数必须指定?
java -Duser.timezone=GMT+08 -Djava.security.egd=file:/dev/./urandom -Dfile.encoding=UTF-8 -jar app.jar --spring.profiles.active=dev --spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 --spring.cloud.nacos.config.namespace=public --spring.cloud.nacos.config.server-addr=127.0.0.1:8848 --spring.cloud.nacos.config.group=DEFAULT_GROUP
报错读不到配置
java.lang.IllegalStateException: dbType not support : null, url ${blade.datasource.test.url}
at com.alibaba.druid.wall.WallFilter.init(WallFilter.java:167)
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:827)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1903)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1846)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774)
at
扫一扫访问 Blade技术社区 移动端