摘要: 一种心态:今天一天努力干吧,以今天一天的勤奋一定能看清明天;这个月努力干吧,以这一个月的勤奋一定能看清下个月;今年一年努力干吧,以今年一年的勤奋就一定能看清明年。 阅读全文
posted @ 2022-06-11 16:00 Cactus丶 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.在pom.xml中增加sentinel-web-servlet的依赖 <dependency> <groupId>com.alibaba.csp</groupId> <artifactId>sentinel-web-servlet</artifactId> </dependency> 2.在项目 阅读全文
posted @ 2022-07-31 19:10 Cactus丶 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: 1.设置用户签名及邮箱: git config --global user.name XXX git config --global user.email XXX 2.初始化本地库: git init 3.查看状态: git status 4.添加到暂存区: git add 文件名 5.删除暂存区缓 阅读全文
posted @ 2022-06-24 17:38 Cactus丶 阅读(45) 评论(0) 推荐(0) 编辑
摘要: @Test public void testProxy(){ //创建InvocationHandler对象 MyInvocationHandler handler = new MyInvocationHandler(new ProxyServiceImpl()); //调用JDK的代理方法 Pro 阅读全文
posted @ 2022-06-15 16:35 Cactus丶 阅读(57) 评论(0) 推荐(0) 编辑
摘要: springMVC配置 <!--配置thymeleaf视图解析器--><bean id="viewResolver" class="org.thymeleaf.spring5.view.ThymeleafViewResolver"> <property name="order" value="1"/ 阅读全文
posted @ 2022-05-08 14:07 Cactus丶 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.IOC 控制反转,创建对象交由Spring容器来创建,基于xml方式和基于注解方式创建对象。 1、xml解析,获取配置文件中属性的值class(类的全路径) 2、通过反射机制取得对象 3、通过工厂模式获取对象 (1)基于xml DI:依赖注入 (1)Set方式注入 (2)有参构造方式注入 阅读全文
posted @ 2022-04-23 17:33 Cactus丶 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1.在cmd命令行运行 startup.bat时,tomcat console出现乱码 解决方法:tomcat配置文件logging.properties 修改如下: #java.util.logging.ConsoleHandler.encoding = UTF-8 java.util.loggi 阅读全文
posted @ 2022-03-02 19:52 Cactus丶 阅读(20) 评论(0) 推荐(0) 编辑