"编译组"和"编译"有什么区别?另一种定义依赖关系的方法?
例如:
compile group: 'org.slf4j', name: 'slf4j-jcl', version: '1.7.21'
Run Code Online (Sandbox Code Playgroud)
而且我认为这也会奏效:
compile("org.slf4j:slf4j-jcl:1.7.21")
Run Code Online (Sandbox Code Playgroud)
为什么我mavenCentral()再次声明并且在buildscript块中有另一个依赖块?
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.0.RELEASE")
}
}
Run Code Online (Sandbox Code Playgroud)
从我的角度来看,当你编译一些东西时,它会在你的classPath中?
当我想要我的项目时,会出现以下错误:
在任何版本中都找不到请求的包mvc-php/framework,包名中可能有拼写错误.
"mvc-php/framework"是一个git文件夹.
{
"name": "mvc-php/app",
"repositories": [
{
"type": "path",
"url": "/Users/youri/Documents/Github/framework"
}
],
"require": {
"php": ">=7.0",
"mvc-php/framework": "master"
},
"autoload": {
"psr-4": {
"App\\": "app/"
}
}
}
Run Code Online (Sandbox Code Playgroud)
项目我想要求:
{
"name": "mvc-php/framework",
"description": "PHP MVC framework",
"autoload": {
"psr-4": {
"Mvc\\" : "src/"
}
},
"require": {
"php": ">=7.0"
}
}
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用一个在React native中创建聊天 <Flastlist />
像whatsapp和其他聊天应用程序一样,消息从底部开始。
从我的API获取消息后,我调用
this.myFlatList.scrollToEnd({animated: false});
Run Code Online (Sandbox Code Playgroud)
但是它滚动到中间的某个位置,有时滚动到底部的内容较少,有时却什么也不做。
最初如何滚动到底部?
我的聊天消息具有不同的高度,所以我无法计算高度。
在端口 9000 上运行 php-cgi
Netstat 给了我
TCP 127.0.0.1:9000 DESKTOP-xxxxxxx:0 LISTENING
[php-cgi.exe]
配置文件
每个php文件都给我这个No input file specified.错误...
改SCRIPT_FILENAME了SCRIPT_NAME也没有成功。。
我在 Windows 10 家庭版 x64
我收到了这个'消息'表.
CREATE TABLE message (
id INT PRIMARY KEY,
user_id INT NOT NULL REFERENCES users (id) ON DELETE CASCADE,
category_id INT NOT NULL REFERENCES category (id) ON DELETE CASCADE,
text VARCHAR2(4000),
media VARCHAR2(500),
creation_date DATE DEFAULT SYSDATE
);
CREATE SEQUENCE message_seq;
CREATE OR REPLACE TRIGGER message_bir
BEFORE INSERT ON message
FOR EACH ROW
BEGIN
SELECT message_seq.NEXTVAL
INTO :new.id
FROM dual;
END;
Run Code Online (Sandbox Code Playgroud)
我插入的东西后,我需要最后插入的ID和日期.
INSERT INTO message (user_id, category_id, media)
VALUES (1, 1, 'fdsfsd')
RETURNING id INTO :last_insert_id
Run Code Online (Sandbox Code Playgroud)
上面给了我最后插入的id,但就像我说我还需要creation_date.我不想在...之后做一个选择查询
有没有办法在运行插入后获得2个值?
用户模型:
class User extends Authenticatable
{
use Notifiable;
protected $table = 'users';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token', 'role_id',
];
protected $appends = [
'role',
];
public function getRoleAttribute()
{
return $this->role->name;
}
/**
* User role.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function …Run Code Online (Sandbox Code Playgroud) 当我尝试使用okhttp或javax.ws.rs.client.Client发生以下错误
java.lang.NoSuchMethodError:sun.security.ssl.SSLSessionImpl.(Lsun/security/ssl/ProtocolVersion; Lsun/security/ssl/CipherSuite; Ljava/util/Collection; Lsun/security/ssl/SessionId; Ljava/lang/String ;我)V
在sun.security.ssl包中搜索,没有SSLSessionImpl类
我使用的是Mac OS 10.13.3(17D102)
java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
Run Code Online (Sandbox Code Playgroud)
并在Glassfish 5.0上运行我的战争
的build.gradle
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-noarg:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
}
}
group 'invoice-administration-api'
version '1.0-SNAPSHOT'
apply plugin: 'idea'
apply plugin: 'war'
apply plugin: 'kotlin'
apply plugin: 'kotlin-jpa'
apply plugin: 'kotlin-allopen'
repositories {
mavenCentral()
} …Run Code Online (Sandbox Code Playgroud) 在我的Controllers文件夹中,我想要一个名为Admin的子文件夹.
当我去http:// localhost:port/Admin/Login /它说无法找到页面.
RouteConfig.cs
using System.Web.Mvc;
using System.Web.Routing;
namespace ICT4Events
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}
Run Code Online (Sandbox Code Playgroud) brew服务说nginx已经启动..
MacBook-Pro-van-Youri:Homebrew youri$ brew services start nginx
Service `nginx` already started, use `brew services restart nginx` to restart.
Run Code Online (Sandbox Code Playgroud)
与launchctl相同
MacBook-Pro-van-Youri:Homebrew youri$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
/Users/youri/Library/LaunchAgents/homebrew.mxcl.nginx.plist: service already loaded
Run Code Online (Sandbox Code Playgroud)
我的homebrew.mxcl.nginx.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.nginx</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/opt/nginx/bin/nginx</string>
<string>-g</string>
<string>daemon off;</string>
</array>
<key>WorkingDirectory</key>
<string>/usr/local</string>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)
酿酒服务清单说明如下:
MacBook-Pro-van-Youri:LaunchAgents youri$ brew services list
Name Status User Plist
mariadb started youri /Users/youri/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
nginx error youri /Users/youri/Library/LaunchAgents/homebrew.mxcl.nginx.plist
php71 started youri …Run Code Online (Sandbox Code Playgroud) 我的 build.gradle 包含:
compile('org.springframework.security:spring-security-web:4.1.3.RELEASE')
Run Code Online (Sandbox Code Playgroud)
做了一个“刷新所有 gradle 项目”(我使用的是 IntelliJ!)
当我想扩展WebSecurityConfigurerAdapter它时说“创建类....”
WebSecurityConfigurerAdapter也找不到应该在哪里的命名空间...
我有两个组件,客户和客户的组件。客户组件包含一个客户列表,当我点击一个客户时,客户组件应该打开一个模式。
客户.component.ts
import { Component, OnInit, } from '@angular/core';
import { CustomerComponent } from '../customer/customer.component';
export class Customer {
id: number;
name: String;
}
const CUSTOMERS: Customer[] = [
{
id: 1,
name: 'Customer one'
},
{
id: 2,
name: 'Customer two'
}
];
@Component({
selector: 'app-customers',
templateUrl: './customers.component.html',
styleUrls: ['./customers.component.css'],
providers: [
CustomerComponent
]
})
export class CustomersComponent implements OnInit {
title: String;
customers: Customer[] = CUSTOMERS;
customerComponent: CustomerComponent;
// or
@ContentChild(CustomerComponent)
public customerComponent: CustomerComponent;
constructor() { …Run Code Online (Sandbox Code Playgroud) 我正在尝试在Oracle SQL中创建一个自动增量的表.我有以下SQL代码:
DROP TABLE "Account" CASCADE CONSTRAINTS;
CREATE TABLE "Account" (
"Id" NUMBER(5) NOT NULL,
"Name" VARCHAR2(32) NOT NULL,
"User" VARCHAR2(16) NOT NULL,
"Email" VARCHAR2(32) NOT NULL,
"Password" VARCHAR2(16) NOT NULL,
"Level" VARCHAR2(16) NOT NULL,
CONSTRAINT "Account_pk" PRIMARY KEY ("Id")
);
DROP SEQUENCE "Account_seq";
CREATE SEQUENCE "Account_seq" START WITH 1
INCREMENT BY 1
MINVALUE 1
MAXVALUE 10000;
INSERT INTO "Account" VALUES (Account_seq.NEXTVAL, 'xxx', 'xxx', 'xxx', 'xxx', 'user');
INSERT INTO "Account" VALUES (Account_seq.NEXTVAL, 'xxx', 'xxx', 'xxx', 'xxx', 'user');
Run Code Online (Sandbox Code Playgroud)
Oracle SQL Developer说创建了Account_seq,但它仍然给我一个错误:"序列不存在"......
<table>
<tr>
<td><span data-....></span></td> // 1
<td><a href="">....</a><td>
<td><span data-....></span></td> // 2
<td><a href="">....</a><td>
<td><span data-....></span></td> // 3
<td><a href="">....</a><td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)
当我点击跨度时,我如何找到下一个跨度?
跨度转换为输入,当我按下TAB按钮时,我想转到下一个跨度...
在每个跨度之间有一个href ..没有一个hrefs它工作
$('table td span').hover(function () {
$(this).css('cursor','pointer');
});
$(document).on('keydown', 'table td input', function(event) {
var target = $(this);
if (event.which == 9) {
event.preventDefault();
console.log('Tab pressed');
var span = target.parent().next().find('span');
span.click();
console.log(span.data('date'));
}
});
Run Code Online (Sandbox Code Playgroud)