2022年5月28日

摘要: Spring是一个轻量级开源框架,以IOC(控制反转)、AOP(面向切面编程)为内核。 Spring通过读取xml配置文件、根据id标识获得bean全限定名、通过反射创建UseDaolmpl类的bean对象、返回对象给UserServicelmpl UserServicelmpl通过Spring客户 阅读全文
posted @ 2022-05-28 20:50 炙热的阳光 阅读(30) 评论(0) 推荐(0) 编辑

2022年5月3日

摘要: Controller层中的代码: @Controller public class TestController { @RequestMapping(value = "/itemlist.action") public ModelAndView toEdit(Integer id, HttpServ 阅读全文
posted @ 2022-05-03 14:16 炙热的阳光 阅读(459) 评论(0) 推荐(0) 编辑
摘要: body{ height: 100%; width: 100%; background: url(images/b.jpeg) no-repeat; background-size: cover; position: absolute; overflow: hidden; /*background: 阅读全文
posted @ 2022-05-03 10:40 炙热的阳光 阅读(303) 评论(0) 推荐(0) 编辑

2021年12月22日

摘要: 创建新的App python3 manage.py startapp my_app 注册子应用 # settings.py 注册app # 方式1:直接加入app名, INSTALLED_APPS = [ 'django.contrib.admin', 'app01', ] # 方式2:直接加入ap 阅读全文
posted @ 2021-12-22 19:27 炙热的阳光 阅读(456) 评论(0) 推荐(0) 编辑

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 阅读全文
posted @ 2021-04-24 20:41 炙热的阳光 阅读(40) 评论(0) 推荐(0) 编辑