当前位置:网站首页>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 .
边栏推荐
猜你喜欢

牛客题目——判断是不是完全二叉树、平衡二叉树

C语言之枚举和联合体

How does vs2019 C language run multiple projects at the same time, how to add multiple source files containing main functions in a project and debug and run them respectively

Build a cloud native file system for media assets

Complete steps of JDBC program implementation

MPC5744p时钟模块

Three table joint query 3

Niuke topic - parity rearrangement of linked list, right view of output binary tree, bracket generation, first non repeating character in character stream

【SAML SSO解决方案】上海道宁为您带来SAML for ASP.NET/SAML for ASP.NET Core下载、试用、教程

JDBC连接数据库
随机推荐
High precision timer
下棋机器人折断7岁男孩手指,网友:违反了机器人第一定律
Niuke topic -- symmetric binary tree
js中的函数
从零开始Blazor Server(1)--项目搭建
Natural sorting: comparable interface, customized sorting: the difference between comparator interface
helm安装kubevela完整Makefile脚本内容
项目练习:表格的查改功能
移动端页面布局
JDBC连接数据库
牛客题目——用两个栈实现队列、包含min函数的栈、有效括号序列
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
UITableView 基本使用和优化
C语言之数据的储存
New attributes of ES6 array
.NET Core with 微服务 - 什么是微服务
node包依赖下载管理
LNMP environment - deploy WordPress
C语言之程序环境和预处理
基于STM32的智能鱼缸设计