会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cqwiu
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2022年7月
注解版Servlet模板
摘要: #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end #if ($JAVAEE_TYPE == "jakarta") import jakarta.servlet.*; import jakarta.se
阅读全文
posted @ 2022-07-06 16:27 独属于我自己
阅读(100)
评论(0)
推荐(0)
2022年5月
springmvc.xml
摘要: <!-- 组件扫描 --> <context:component-scan base-package="controller包"/> <!-- 视图解析器 --> <bean class="org.springframework.web.servlet.view.InternalResourceVi
阅读全文
posted @ 2022-05-27 15:04 独属于我自己
阅读(88)
评论(0)
推荐(0)
spring bean工厂模式
摘要: 查看代码 #1. 配置文件 bean.properties #先写dao,再写service UserDao=com.ghy.dao.impl.UserDaoImpl UserService=com.ghy.service.impl.UserServiceImpl 查看代码 //2. 工具类 imp
阅读全文
posted @ 2022-05-27 14:20 独属于我自己
阅读(158)
评论(0)
推荐(0)
单例模式
摘要: /** * 双重校验锁 * 双重判断 + 锁 * @author ghy * @version 1.0 * @date 2022-05-27 */ public class Singleton { private static Singleton instance = null; public st
阅读全文
posted @ 2022-05-27 14:13 独属于我自己
阅读(50)
评论(0)
推荐(0)
ResultVO
摘要: /** * 通用结果类 * * @param <T> * @author ghy * @version 1.0 * @date 2022-05-10 */ public class ResultVO<T> { /** * 响应状态码 */ private Integer code = -1; /**
阅读全文
posted @ 2022-05-27 10:31 独属于我自己
阅读(222)
评论(0)
推荐(0)
log4j.properties
摘要: #控制台输出 log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.err log4j.appender.stdout.layout=org.apache.log4j.Pa
阅读全文
posted @ 2022-05-27 10:23 独属于我自己
阅读(70)
评论(0)
推荐(0)
jdbc.properties
摘要: #MySQL5.0+版本 jdbc.driver=com.mysql.jdbc.Driver #MySQL8.0版本 #jdbc.driver=com.mysql.cj.jdbc.Driver #连接URL jdbc.url=jdbc:mysql://127.0.0.1:3306/test?useU
阅读全文
posted @ 2022-05-27 10:16 独属于我自己
阅读(165)
评论(0)
推荐(0)
上一页
1
2
公告