会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132471个问题
人工智能/第六阶段:机器学习-线性分类/逻辑回归 21181楼
JAVA 全系列/第六阶段:项目管理与SSM框架/SpringMVC 21182楼

vueinit.zi。。。。。。。。。。。。。。。。。。。

WEB前端全系列/第十九阶段:Vue2知识体系(旧)/Vue基础知识 21184楼

<template>
    <div>
     动画处理
     <button v-on:click='show=!show'>按钮</button>
     <transition name='fade'> 
     <p v-if='show'>Hello</p>
      <transition/> 
    </div>
</template>
<script>
export default {
    name:'Animates',
    data(){
        return{
            show:true
        }
    }
}
</script>
<style scoped>
.fade-enter-active, .fade-leave-active {
  transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
</style>



<template>
  <div >
   <!--{{ msg }}
   <HelloWorld @myEvent='eventHandler' @myChange='inputMessage'/>-->
   <!--
     <slotComponent> 
     <template v-slot:n1>  
      <div>
        我就是插槽
        <p>{{showValue}}</p>
      </div>
      </template>  
      <template v-slot:n2="slotProps">
        <p> 我是n2:{{slotProps.msg}}</p> 我是n2
      </template>
      
    
      <template v-slot:default="slotProps">
      <p>我是插槽3:{{slotProps.msg}}</p>
      </template>
      
    </slotComponent>  
   
   <MyComponents/>
   访问根实例  $root
    {{this.$root.rootMsg}}-->
    <Animates/>
    
  </div>
  
</template>

<script>
import HelloWorld from './components/HelloWorld'
import slotComponent from './components/slotComponent'
import MyComponents from "./components/MyComponets"
import Animates from './components/Animates'
export default {
  name: 'App',
  components: {
    HelloWorld,
    slotComponent,
    MyComponents,
    Animates
  },
  data () {
    return {
      msg:'',
      showValue:'编译作用域',
      value:'读取app的value值'
    }
  },
  methods: {
    eventHandler(data){
     this.msg=data
    },
    inputMessage(value){
      this.msg=value
    },
    
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>


老师给看一下1621838775(1).png

WEB前端全系列/第十九阶段:Vue2知识体系(旧)/Vue基础知识 21185楼
JAVA 全系列/第十三阶段:高性能数据处理、NoSQL、分库分表/Redis 21186楼
JAVA 全系列/第三阶段:数据库编程/Oracle 数据库的使用 21188楼
Python 全系列/第四阶段:函数式编程和核心特性/生成器和装饰器 21191楼
Python 全系列/第七阶段:网页编程基础/CSS 样式 21192楼

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table align="center" border="1" width="500" height="500">
    <tr>
        <td colspan="2"></td>
        <td rowspan="2"></td>
    </tr>
    <tr>
        <td rowspan="2"></td>
        <td></td>
    </tr>
    <tr>
        <td colspan="2"></td>
    </tr>
</table>
<hr>
<table border="10" align="center" width="600" >
    <caption>学生信息表</caption>
    <tr>
        <th colspan="3">学生基本信息</th>
        <th colspan="2">成绩</th>
    </tr>
    <tr>
        <th>姓名</th>
        <th>性别</th>
        <th>专业</th>
        <th>课程</th>
        <th>分数</th>
    </tr>
    <tr align="center">
        <td>球球</td>
        <td>男</td>
        <td rowspan="2">计算机</td>
        <td rowspan="3">程序设计</td>
        <td>68</td>
    </tr>
    <tr align="center">
        <td>楠楠</td>
        <td>女</td>
        <td>89</td>
    </tr>
    <tr align="center">
        <td>小明</td>
        <td>男</td>
        <td>会计</td>
        <td>68</td>
    </tr>
    <tr align="center">
        <td>小明</td>
        <td>男</td>
        <td>建筑</td>
        <td>建筑设计</td>
        <td>68</td>
    </tr>
</table>
</body>
</html>

image.png

WEB前端全系列/第一阶段:HTML5+CSS3模块/HTML5基础元素 21194楼

老师,你看下为什么会报错用户不存在,数据库设置和 代码如下:

db.properties

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/liyang
jdbc.username=root
jdbc.password=li134584

mybatis-cfg.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration
        PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
    <!--引入 db.properties 属性文件-->
    <properties resource="db.properties"/>
    <!--配置别名-->
    <typeAliases>
        <package name="com.liyang.pojo"/>
    </typeAliases>
    <!--配置环境-->
    <environments default="development">
        <environment id="development">
            <transactionManager type="JDBC"></transactionManager>
            <dataSource type="POOLED">
                <property name="driver" value="${jdbc.driver}"/>
                <property name="url" value="${jdbc.url}"/>
                <property name="username" value="${jdbc.username}"/>
                <property name="password" value="${jdbc.password}"/>
            </dataSource>
        </environment>
    </environments>
    <!--引入 Mapper 映射配置文件-->
    <mappers>
        <package name="com.liyang.mapper"/>
    </mappers>
</configuration>

JAVA 全系列/第六阶段:项目管理与SSM框架/Mybatis 21195楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637