02 2023 档案

摘要:@Test :表示方法是测试方法。但是与JUnit4的@Test不同,他的职责非常单一不能声明任何属性,拓展的测试将会由Jupiter提供额外测试@ParameterizedTest :表示方法是参数化测试@RepeatedTest :表示方法可重复执行,下方会有详细介绍@DisplayName : 阅读全文
posted @ 2023-02-28 22:43 Godofball 阅读(359) 评论(0) 推荐(0) 编辑
摘要:第一次是使用HashMap解决的,但好像时间和空间都比较浪费。 class Solution { public int singleNumber(int[] nums) { Map<Integer,Integer> map=new HashMap(); for(int n:nums) { Integ 阅读全文
posted @ 2023-02-20 12:23 Godofball 阅读(22) 评论(0) 推荐(0) 编辑
摘要:servlet @Slf4j @WebServlet(urlPatterns = {"/myServlet"}) public class MyServlet extends HttpServlet { @Override protected void doGet(HttpServletReques 阅读全文
posted @ 2023-02-18 00:13 Godofball 阅读(25) 评论(0) 推荐(0) 编辑
摘要:一、组件添加 1、@configuration 标记类为配置类,配置类中为方法加上@Bean注解给容器注册组件,默认为单实例。配置类也会注册组件。 @configuration的属性: proxyBeanMethods:代理bean的方法 Full(proxyBeanMethods = true) 阅读全文
posted @ 2023-02-03 01:24 Godofball 阅读(34) 评论(0) 推荐(0) 编辑

阅读目录(Content)

此页目录为空

点击右上角即可分享
微信分享提示