据我所知,我可以使用redirectAttributes添加url参数, 但有些操作会返回视图,然后设置的属性不会出现在url中,因为没有redirct。
如何为动作添加额外的url参数?
示例:
我要求 / users / 1
我的控制器中的某些操作会响应一个名为show.html
的视图现在我想添加 / users / 1?include-posts = true
import caffe
/home/deep-learning/caffe/python/caffe/pycaffe.py:13: RuntimeWarning: to-Python converter for boost::shared_ptr<caffe::Net<float> > already registered;
second conversion method ignored.
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
/home/deep-learning/caffe/python/caffe/pycaffe.py:13: RuntimeWarning: to-Python converter for boost::shared_ptr<caffe::Blob<float> > already registered; second conversion method ignored.
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
/home/deep-learning/caffe/python/caffe/pycaffe.py:13: RuntimeWarning: to-Python converter for boost::shared_ptr<caffe::Solver<float> > already registered; second conversion method ignored.
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \