我的应用程序中有一个很长的文本,我需要截断它并在末尾添加三个点.
我怎么能在React Native Text元素中做到这一点?
谢谢
我的问题是如何以WEB-INF/JSP/正确的方式放入所有JSP文件?
是否有任何配置,因为我知道的结构是:
WEB-INF / JSP --> all jsp is reside in that folder
/ CLASSES -- all classes is reside that folder
/ LIB --> library file reside in that folder
Run Code Online (Sandbox Code Playgroud)
如何根据规格正确设置.请帮我解决这个问题.
我有一个旧的代码库,需要使用 Java 8 重构,所以我有一个接口,它告诉我当前的站点是否支持该平台。
public interface PlatformSupportHandler {
public abstract boolean isPaltformSupported(String platform);
}
Run Code Online (Sandbox Code Playgroud)
我有多个类实现它,每个类都支持不同的平台。
一些实现类是:
@Component("bsafePlatformSupportHandler")
public class BsafePlatoformSupportHandler implements PlatformSupportHandler {
String[] supportedPlatform = {"iPad", "Android", "iPhone"};
Set<String> supportedPlatformSet = new HashSet<>(Arrays.asList(supportedPlatform));
@Override
public boolean isPaltformSupported(String platform) {
return supportedPlatformSet.contains(platform);
}
}
Run Code Online (Sandbox Code Playgroud)
另一个实现:
@Component("discountPlatformSupportHandler")
public class DiscountPlatoformSupportHandler implements PlatformSupportHandler{
String[] supportedPlatform = {"Android", "iPhone"};
Set<String> supportedPlatformSet = new HashSet<>(Arrays.asList(supportedPlatform));
@Override
public boolean isPaltformSupported(String platform) {
return supportedPlatformSet.contains(platform);
}
}
Run Code Online (Sandbox Code Playgroud)
在我的过滤器中运行时,我得到了我想要的所需 bean:
platformSupportHandler = (PlatformSupportHandler) ApplicationContextUtil
.getBean(subProductType + Constants.PLATFORM_SUPPORT_HANDLER_APPEND); …Run Code Online (Sandbox Code Playgroud)