摘要:
Spring是一个轻量级开源框架,以IOC(控制反转)、AOP(面向切面编程)为内核。 Spring通过读取xml配置文件、根据id标识获得bean全限定名、通过反射创建UseDaolmpl类的bean对象、返回对象给UserServicelmpl UserServicelmpl通过Spring客户 阅读全文
2022年5月28日
2022年5月3日
摘要:
Controller层中的代码: @Controller public class TestController { @RequestMapping(value = "/itemlist.action") public ModelAndView toEdit(Integer id, HttpServ 阅读全文
摘要:
body{ height: 100%; width: 100%; background: url(images/b.jpeg) no-repeat; background-size: cover; position: absolute; overflow: hidden; /*background: 阅读全文
2021年12月22日
摘要:
创建新的App python3 manage.py startapp my_app 注册子应用 # settings.py 注册app # 方式1:直接加入app名, INSTALLED_APPS = [ 'django.contrib.admin', 'app01', ] # 方式2:直接加入ap 阅读全文
2021年4月24日
摘要:
增: a、使用create方式 方式一: Book.objects.create(title="python",price="88",publish_id="1",publication_date="2017-06-18"} b、使用save方式 方式二: book1=Book(title="pyt 阅读全文