MVC:Model(dao,service) View(jsp) Controller(servlet) 模型 视图 控制器 一,web开发的两个发展阶段 二,SpringMVC流程图(官方中文版) 实际上(具体流程)SpringMVC流程图 注意:实线部分Spring已经完成的 我们只需要是实现虚 ...
分类:
编程语言 时间:
2020-11-08 17:45:18
阅读次数:
26
被选中的tab变大 TabBar( tabs: _tab.map((f) { return Text( f, style: TextStyle(color: Colors.white), // 设置tab文字的样式,优先级最高 ); }).toList(), controller: _control ...
分类:
其他好文 时间:
2020-11-07 17:26:26
阅读次数:
41
dao @Repository --写在dao层 service @Service --写在service层 controller @Controller --写在controller层 @Scope --写在多人访问controller上 属性注入 @Autowired --写在需要注入的属性上 ...
分类:
编程语言 时间:
2020-11-07 15:46:00
阅读次数:
20
class BaseApi extends Controller { protected $userId = 0; protected $userName = ''; protected $noLoginAction = []; protected $endTIme = 30000000; publ ...
分类:
其他好文 时间:
2020-11-06 02:20:52
阅读次数:
14
首先判断是哪里开始乱码,是前端传值乱码,还是到controller层乱码,或者是数据库乱码。 下面是前端传值,映射springmvc的实体类形参造成乱码,如下图: 解决办法:在web.xml文件中添加以下代码。 <filter> <filter-name>encodingFilter</filter ...
分类:
编程语言 时间:
2020-11-04 18:38:29
阅读次数:
19
#菜单模块 ##Controller package com.atguigu.atcrowdfunding.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired ...
分类:
其他好文 时间:
2020-11-02 10:21:42
阅读次数:
24
1.关键字解释 //它是一个Controller增强器,可对controller中被 @RequestMapping注解的方法加一些逻辑处理 @ControllerAdvice //异常定义 @ExceptionHandler //返回格式为json,可以使用 @RestControllerAdvi ...
分类:
其他好文 时间:
2020-11-01 20:42:55
阅读次数:
18
最近小程序开发测试环境一直转转不请求接口,iOS可以正常访问,安卓无法访问,提示:request:fail-2:net::ERR_FAILED检查后发现是因为没有配置中间人证书。由于测试环境我们使用的是acme申请let‘sencrypt的泛域名证书。由于我们的DNS解析托管在DNSPOD,因此就可以使用exportDP_Id="43211"#DNSPODAPP_IDexportDP_Ke
分类:
微信 时间:
2020-10-29 10:00:05
阅读次数:
34
import com.aaa.controller.vm.MenuVM; import com.aaa.entity.Menu; import java.util.ArrayList; import java.util.List; /** * 组装菜单树工具类 * Created by cws * ...
分类:
其他好文 时间:
2020-10-29 09:51:59
阅读次数:
27
/** 原始注解:用途,自己编写的类注入容器使用* @Component* @Controller* @Service* @Repository* 以上4个功能基本一样,类似加入<bean id="userDao" class="cn.UserImpl"></bean>** @Autowired:自 ...
分类:
编程语言 时间:
2020-10-29 09:39:15
阅读次数:
24