我已经使用了这个debezium-examples
providers: [
{
provide: APP_INITIALIZER,
useFactory: (platform: Platform) => {
return () => platform.ready()
},
deps: [Platform],
multi: true
}]
一切正常。.但是当我尝试从本地系统访问localhost:9092时,它无法访问,但是我可以访问以下内容
//read html2canvas.js to "text" script so html2canvas will work
var fs = require("fs");
var text = fs.readFileSync(await process.cwd() + '/e2e/tests/contactForms/submit/html2canvas.js').toString('utf-8');
//the script
text += `
var webDriverCallback = arguments[arguments.length - 1];
var hubelem = document.querySelector('div.c-nav_mobile-menu');
html2canvas(hubelem).then(function(canvas) {
var img = canvas.toDataURL('image/png').replace('data:image/png;base64,', '');
webDriverCallback(img);
});`
//the returned image object
const obj = await driver.executeAsyncScript(text).then(function (obj) { return obj; })
//allocated to buffer
const buf2 = new Buffer.alloc(obj.length, obj, 'base64')
在docker compose文件中,我需要启用什么文件,以便能够在docker外部使用Java Api的主题。
docker-compose -f docker-compose-jdbc.yaml up