Wesley13 Wesley13
3年前
SSH框架和SSM框架
(一)SSH框架是Struts2Spring Hibernate  而SSM框架指的是SpringMVCSpringMybatis区别:1\.主要区别就是Struts2和SpringMVC的区别。【各种框架的对比】类中已经写了2\.Hibernate和Mybatis的区别Mybatis优势
Stella981 Stella981
3年前
MongoDB在spring中xml传统配置
背景旧项目中依然在使用springmvc的xml传统配置,最近需要使用MongoDB,需要在spring引入MongoDB的连接配置。解决配置mongodb数据库<?xmlversion"1.0"encoding"UTF8"?<beansxmlns"http://www.
Stella981 Stella981
3年前
Spring + SpringMvc + Spring Data Jpa框架整合
文章内容输出来源:拉勾教育Java高薪训练营SpringSpringMvcSpringDataJpa框架整合本篇博客,我们来说下spring整合springmvc和springdatajpa的整个过程先来看下项目结构我把配置文件拆分为s
Stella981 Stella981
3年前
69道Spring面试题和答案
目录Spring概述依赖注入SpringbeansSpring注解Spring数据访问Spring面向切面编程(AOP)SpringMVCSpring 概述1. 什么是spring?Spring 是个java企业
Stella981 Stella981
3年前
Beetl (2.2.3)模板引擎和SpringMvc整合
1.Beetl使用只针对springmvc;Beetl(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fsourceforge.net%2Fprojects%2Fbeetl%2Ffiles%2Fbeetlcore2.2.3all.zip%2Fdownloa
Easter79 Easter79
3年前
SpringMVC中的ContextLoaderListener设计困惑
最近在学习SpringMVC原理相关部分,就按顺序从ContextLoaderListener来看,但是我在阅读此类的设计中,遇到了些困惑的地方,现纪录如下,希望能遇到高手能帮我答疑解惑:ContextLoaderListener类的定义:publicclassContextLoaderListenerextendsContext
Stella981 Stella981
3年前
Spring Boot 自动配置(auto
本章,我们为你揭秘SpringBoot自动配置(AutoConfiguration)运行机制,谈到autoconfiguration,肯定离不开@EnableAutoConfiguration注解。packageorg.springframework.boot.autoconfigure;@Target(Element
Easter79 Easter79
3年前
Spring采用velicity视图时解决Cannot expose session attr...
Spring采用velicity视图时,使用@SessionAttributes("")注解出现Cannotexposesessionattribute'user'becauseofanexistingmodelobjectofthesamename异常问题错误原因:因为request session默认是不会加入vel
Stella981 Stella981
3年前
MyBatis学习
【目录】😝新建maven项目(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fxqz0618%2Fp%2Fjavaweb01.html)😁搭建springMVC(https://www.oschina.net/action/G
Stella981 Stella981
3年前
Spring Boot 动态数据源(yml配置,多数据源自动切换)
1、在启动类添加注解,注册动态多数据源:@SpringBootApplication@Import({DynamicDataSourceRegister.class})//注册动态多数据源publicclassOrangeplusApplicationextendsWebMvcConfigurerAdapt