自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 收藏
  • 关注

原创 程序员特殊的联系方式

@Test public void ContactDetails(){ int[] arr = new int [] {1,0,2,4,9,3}; int[] index = new int [] {0,4,0,0,2,0,5,3,5,0,3}; String tel = ""; for (int i : index){ tel += arr[i]; } System.o..

2022-05-07 17:29:42 973

原创 解决There was an unexpected error (type=Internal Server Error, status=500)

There was an unexpected error (type=Internal Server Error, status=500)500的错误很多 我的是没连数据库

2022-04-01 11:39:08 2442

原创 dubbo+zookeeper 依赖

<!-- Dubbo Spring Boot Starter --> <dependency> <groupId>org.apache.dubbo</groupId> <artifactId>dubbo-spring-boot-starter</artifactId> <version>2.7.3</versio...

2022-03-01 16:20:20 723

原创 使用yam进行赋值

使用yaml多环境配置

2022-02-23 16:49:29 213

原创 我的第一个SpringBoot程序

创建springboot程序框架package com.fu.helloword;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;//本身就是spring的组件//程序的主入口@SpringBootApplicationpublic class HellowordApplication..

2022-02-23 14:06:08 86

原创 ssm项目框架配置

1.需要导入的包跟依赖 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependen

2022-02-21 14:10:37 163

原创 第一个SpringMVC程序

父manven (pom.xml)<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://mave

2022-02-20 16:46:07 105

原创 pom导入build

<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> <inc..

2022-02-18 16:44:15 269

原创 SpringMVC 改module名称的时候一定要去父pom里面把相应的名字也改了

SpringMVC 改module名称的时候一定要去父pom里面把相应的名字也改了

2022-02-18 15:40:56 167

原创 动态sql

<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace="com.fu.dao.BlogMapper"> <insert id="addBlog" pa.

2022-02-16 15:42:26 98

原创 查询所有的学生信息,以及对应的老师的信息 按照结果嵌套处理(一对多,多对一)

一对多package com.fu.pojo;import lombok.Data;@Datapublic class Teacher { private int id; private String name;}package com.fu.pojo;import lombok.Data;@Datapublic class Student { private int id; private String name; //学

2022-02-16 14:11:42 697

原创 Mybatis注解实现curd

接口package com.fu.dao;import com.fu.pojo.User;import org.apache.ibatis.annotations.*;import java.util.HashMap;import java.util.List;public interface UserMapper { @Select("select * from user ") List<User> getUsers();//

2022-02-15 17:02:49 304

原创 使用mybatis实现分页

接口 //分页 List<User> getUserByLimit(HashMap<String, Integer> map);Mapper.xml<!-- //分页--> <select id="getUserByLimit" parameterType="map" resultMap="UserMap"> select *from mybatis.user limit #{stratIndex}

2022-02-15 15:47:36 87

原创 日志笔记log4j

<settings><!-- 标准日志工厂实现--><!-- <setting name="logImpl" value="STDOUT_LOGGING"/>--> <setting name="logImpl" value="LOG4J"/> </settings>log4j.properties# priority :debug<info<w...

2022-02-15 15:03:18 88

原创 mybatis 解决属性名与数据库中的字段名不一致的问题

例如 我的数据库中字段名为pwd,属性名为password private int id ; private String name; private String password;使用resultMap<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://myb

2022-02-15 14:16:50 447

原创 第一个mybatis程序

pojo 实体类package com.fu.pojo;public class User { private int id ; private String name; private String pwd; public User() { } public User(int id, String name, String pwd) { this.id = id; this.name = name;

2022-02-14 22:42:51 234

转载 error:java :程序包org.apache.ibatis.io不存在。:程序包org.apache.ibatis.session不存在

https://blog.csdn.net/bin_bujiangjiu/article/details/106727561

2022-02-14 17:04:31 441

原创 在build中配置resources,来防止我们资源导出失败的问题

<!--在build中配置resources,来防止我们资源导出失败的问题--> <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include..

2022-02-14 16:47:00 115

原创 mybatis工具类

package com.fu.utils;import org.apache.ibatis.io.Resources;import org.apache.ibatis.jdbc.SQL;import org.apache.ibatis.session.SqlSession;import org.apache.ibatis.session.SqlSessionFactory;import org.apache.ibatis.session.SqlSessionFactoryBuilder;i.

2022-02-14 16:19:03 90

原创 第一个jdbc程序

//我的第一个jdbc程序public class JdbcDemo1 { public static void main(String[] args) throws ClassNotFoundException, SQLException { // 1加载驱动 Class.forName("com.mysql.cj.jdbc.Driver");//固定的 mysql8.0 // 2用户信息和url String u...

2022-02-14 11:09:26 318

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除