question: vue uses ssr mainly to optimize seo and the first screen experience, so what are the advantages and disadvantages of using node as the middle tier to output directly with traditional java jsp pages in terms of speed and performance? ...
configuration is shown in figure ...
const session = require( koa-session ); const Koa = require( koa ); const app = new Koa(); app.keys = [ some secret hurr ]; const CONFIG = { key: koa:sess , ** (string) cookie key (default is koa:sess) * ** (number || session ) maxAge...
question 1: why is the middleware in the koa2 framework written in the form of async, rarely in Synchronize mode (that is, without async)? For example, app.use(async (ctx, next) => { const start = new Date() await next() const ms = new Date() ...