我的ApplicationContext.xml中具有以下属性。它应该从类路径datasource.properties中加载文件:
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'bui
ld' ]
2 info using npm@6.7.0
3 info using node@v11.12.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle home@0.1.0~prebuild: home@0.1.0
6 info lifecycle home@0.1.0~build: home@0.1.0
7 verbose lifecycle home@0.1.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle home@0.1.0~build: PATH: /usr/local/lib/node_modules/
npm/node_modules/npm-lifecycle/node-gyp-bin:/home/bkshin/terrace/fronten
d/home/node_modules/.bin:/home/bkshin/.local/bin:/usr/local/go/bin:/usr/
local/bin:/usr/bin:/home/bkshin/bin:/usr/local/sbin:/usr/sbin
9 verbose lifecycle home@0.1.0~build: CWD: /home/bkshin/terrace/frontend
/home
10 silly lifecycle home@0.1.0~build: Args: [ '-c', 'vue-cli-service buil
d' ]
11 silly lifecycle home@0.1.0~build: Returned: code: 1 signal: null
12 info lifecycle home@0.1.0~build: Failed to exec build script
13 verbose stack Error: home@0.1.0 build: `vue-cli-service build`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_mo
dules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:197:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_mo
dules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:197:13)
13 verbose stack at maybeClose (internal/child_process.js:988:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/ch
ild_process.js:265:5)
14 verbose pkgid home@0.1.0
15 verbose cwd /home/bkshin/terrace/frontend/home
16 verbose Linux 3.10.0-862.el7.x86_64
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
18 verbose node v11.12.0
19 verbose npm v6.7.0
20 error code ELIFECYCLE
2019-03-23T15_00_09_923Z-debug.log
运行服务器时,出现以下错误:
<context:property-placeholder location="classpath:datasource.properties" />
。
我将文件名更改为该类补丁中不存在的另一个名称,并且遇到了相同的错误,我认为java.lang.IllegalArgumentException: Could not resolve placeholder 'jdbc.driverClassName' in value "${jdbc.driverClassName}"
无法正常工作。
我正在使用Spring 4.3.8,这是我的context:property-placeholder文件:
context:property-placeholder