当前位置:网站首页>About paths mapping in SAP ui5 application ui5.yaml
About paths mapping in SAP ui5 application ui5.yaml
2022-07-27 17:11:00 【Wang Zixi】
url There's one more webapp:

Right now :

Maybe because of this webapp The reason for the folder :

This upload Attributes may not be hard coded into other , Otherwise, after uploading to the server , And revise it again :
This upload Will be based on index.html Path , Automatically complete the previous code .
Depending on the type of project ,UI5 Tooling requirement SAP UI5 The project source files for are located in a specific directory .
If the source code of the project is located in a different directory , You need to configure the path mapping accordingly . Depending on the type of project , There are several different path mappings available .
Please note that , All configured paths must be in POSIX To write ( That is, use only forward slashes /) And relative to the root directory of the project .
open ui5.yaml file , take webapp The mapping path of is modified to webapp:
specVersion: '2.3'
metadata:
name: "sap.m.tutorial.walkthrough.109"
type: application
resources:
configuration:
paths:
webapp: webapp
Reopen the browser , Input localhost:8080:

Refresh after modification ,upload url It won't appear before webapp 了 :
You can use the following code to set .properties Of documents encoding attribute :
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
By default ,UI5 Tooling need *.properties i18n Different coding of documents , It depends on the specification version of the project :
- 2.0+: The default value is UTF-8
- 0.1, 1.0 or 1.1: These versions of UI5 Tools, Default encoding The value is ISO-8859-1
UI5 Tooling The corresponding file of the project will be read with the given encoding . Anything that is not ASCII Characters will be replaced with corresponding Unicode Escape sequences . This allows developers to deploy the generated files to any environment , And how it expects to code *.properties It's not about the files .
besides , We can also make some custom settings , These configurations are from UI5 CLI v2.2.0 Start using , And it is only applicable to defining the specification version 2.1 Or higher version of the project .
An example is as follows :
customConfiguration:
myTool:
key: value
myOtherTool:
otherKey: otherValue
These custom configurations are mainly used for the parsing of third-party tools .
边栏推荐
猜你喜欢
随机推荐
渐变环形进度条
牛客题目——用两个栈实现队列、包含min函数的栈、有效括号序列
国产新冠口服药为什么是治艾滋病的药
MPC5744p时钟模块
随机数公式Random
Understand the basic properties of BOM and DOM
URL 返回nil 以及urlhash处理
Getting started with nvida CUDA dirverapi
关于 SAP UI5 应用 ui5.yaml 里的 paths 映射问题
通过 FileUploader 的初始化,了解 SAP UI5 应用的 StaticArea 初始化逻辑
Leader: who uses redis overdue monitoring to close orders and get out of here!
UITableView 基本使用和优化
两表联查1
Global string object (function type) +math object
SAP UI5 FileUploader 的本地文件上传技术实现分享
This large model sparse training method with high accuracy and low resource consumption has been found by Alibaba cloud scientists! Has been included in IJCAI
牛客题目——二叉搜索树与双向链表
Servlet uses cookies to realize the last login time of users
Matplotlib drawing error: "! Latex error: file `type1cm.sty 'not found." solution
File class byte input and output stream









