有谁知道 React Native 是否有椭圆曲线 Diffie Hellman 加密(ECDH)的实现?
我为此找到了一些库。他们每个人都有一些问题:
我使用ReloadableResourceBundleMessageSource来存储我的系统的值列表.所以我可以使用i18N功能
我在ReloadableResourceBundleMessageSource的基本名称中使用多个资源.我想将Web UI的所有本地化标签传递给客户端(前端),以便在客户端本地缓存.有没有办法加载我的资源包的整个键?
这是我的ReloadableResourceBundleMessageSource bean定义:
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basenames">
<list>
<value>classpath:resource1</value>
<value>classpath:resource2</value>
</list>
</property>
<property name="cacheSeconds" value="60"/>
<property name="defaultEncoding" value="UTF-8"/>
<property name="useCodeAsDefaultMessage" value="true"/>
</bean>
Run Code Online (Sandbox Code Playgroud)
这是我传递所有键的控制器:
@Component
@RequestMapping("/bundle")
public class ResourceBundleController {
@Autowired
private MessageSource messageSource;
@RequestMapping(value = "/locales.js")
public ModelAndView strings(HttpServletRequest request) {
// Call the string.jsp view
return new ModelAndView("/WEB-INF/includes/locales.jsp", "keys", ??? );// HERE IS MY PROBLEM. HOW SHOULD I GET ALL THE KEYS FROM MESSAGESOURCE
}
}
Run Code Online (Sandbox Code Playgroud)
这是我的客户端资源包密钥:
<%@page contentType="text/javascript" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%> …Run Code Online (Sandbox Code Playgroud) cryptography ×1
ecdh ×1
java ×1
javascript ×1
localization ×1
react-native ×1
spring ×1
spring-mvc ×1