我如示例中那样生成了代码,但是不幸的是,在页面之间切换时,该参数未保存在浏览器cookie中。为什么此参数不存在?
DECLARE GLOBAL TEMPORARY TABLE SESSION.NPS_DATA0 -- CREATE INITIAL MAIN DATA SET
AS ( SELECT DAACCT AS DAACCT,
DAIDAT AS DAIDAT,
DAINV# AS DAINV,
DAQTY AS QTY
FROM F_CERTOB.DAILYT
-- WHERE DAIDAT = FIRSTDAY
WHERE DAIDAT = 20190501 -- THIS WORKS
) WITH NO DATA WITH REPLACE ;
INSERT INTO SESSION.NPS_DATA0
SELECT DAACCT AS DAACCT,
DAIDAT AS DAIDAT,
DAINV# AS DAINV,
DAQTY AS QTY
FROM F_CERTOB.DAILYT
WHERE DAIDAT = FIRSTDAY;
答案 0 :(得分:0)
需要评论СookieDomain:
@Bean(name = "localeResolver")
public LocaleResolver getLocaleResolver() {
CookieLocaleResolver resolver= new CookieLocaleResolver();
//resolver.setCookieDomain("myAppLocaleCookie");
// 60 minutes
resolver.setCookieMaxAge(60*60);
return resolver;
}