SAP前端路---manifest.json

这篇博客记录了作者在接触SAPUI5时的学习过程,特别是关于manifest.json的使用。文中通过一个demo展示了如何配置manifest.json,并提供了个人延申的demo地址,涵盖了项目配置和路由设置等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我也刚刚接触SAPUI5。边学边记录,希望大家不吝赐教。

文章中demo将遵循SAPUI5 SDK中所提供的demo例子。

本文demo地址 https://sapui5.hana.ondemand.com/#/topic/70ef981d350a495b940640801701c409 (本文的demo有我自己的延申 和链接里的demo不尽相同,但可参照)

manifest.json文件中包含着项目的配置信息,同时路由等也是配置在manifest.json当中(下一节讲解)

{
	"#文件注释":"JSON文件使用键值对格式注释  此处定义 开头为#的均为注释",
	"#manifest.json":"清单文件  由saoUI5自行读取并实例化组件  包含所有全局应用的程序设置和参数()",
	
	"_version":"1.12.0",
	"sap.app":{
		
		"#id":"必须唯一,并且与组件ID/名称空间相对应,长度小于70个字符",
		"id":"sap.ui.demo.walkthrough",
		
		"#type":"定义我们想配置的内容,此处我们定义为应用程序",
		"type":"application",
		
		"#i18n":"定义资源包文件的路径",
		"i18n":"i18n/i18n.properties",
		
		"title":"{
  
  {appTitle}}",
		"description":"{
  
  {appDescription}}",
		
		"#applicationVersion": "定义应用程序的版本信息",
		"applicationVersion":{
			"version":"1.0.0"
		}
	},
	"sap.ui":{
		"technology":
PS E:\study\ABAP开发\fiori学习\SAP FIORI> cd .\project1\ PS E:\study\ABAP开发\fiori学习\SAP FIORI\project1> npm start > project1@0.0.1 start > fiori run --open "test/flpSandbox.html?sap-ui-xx-viewCache=false#project1-display" (node:19836) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userl and alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) info fiori-tools-proxy Using UI5 version 1.128.1 based on manifest.json info fiori-tools-proxy Starting fiori-tools-proxy using following configuration: info fiori-tools-proxy proxy: 'undefined' info fiori-tools-proxy ignoreCertError: 'false' info fiori-tools-proxy backend: [{"path":"/sap","url":"http://www.saps4hana.cn:50000"}] info fiori-tools-proxy ui5: [{"path":"/resources","url":"https://ui5.sap.com","version":"1.128.1"} ,{"path":"/test-resources","url":"https://ui5.sap.com","version":"1.128.1"}] info fiori-tools-proxy debug: 'false' info backend-proxy-middleware Using KeyStoreManager for secure storage. warn backend-proxy-middleware No credential found. Service: [fiori/v2/system], Key: [http://www.sa ps4hana.cn:50000] info backend-proxy-middleware Using KeyStoreManager for secure storage. warn backend-proxy-middleware No credential found. Service: [fiori/v2/system], Key: [http://www.sa ps4hana.cn:50000] info backend-proxy-middleware Backend proxy created for http://www.saps4hana.cn:50000 /sap info fiori-tools-appreload Livereload middleware started for port 35729 and path E:\study\ABAP开发 \fiori学习\SAP FIORI\project1\webapp warn fiori-tools-preview The configuration option 'rta' is deprecated. Please use 'editors.rta' in stead. info fiori-tools-preview Initialized for app project1 Server started URL: http://localhost:8080 info fiori-tools-preview HTML file returned at /test/flpSandbox.html is loaded from the file system (node:9672) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.a (Use `node --trace-deprec
03-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值