Error: java: Illegal char<:>

Asked

Viewed 1,083 times

-1

am experiencing this error Error:java: Illegal char <:> at index 4: http: api.jquery.com

I know what error is in the sentence, but I can’t find it anywhere to fix it. I’ve searched line by line and have no idea where it is. And code now ta relatively large. To using Springboot and to with several html pages. Anyone have any ideas to help me?

A main

package ProjetoRua.com.projetorua;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {


public static void main(String[] args) {
    SpringApplication.run(Application.class, args);

    }
}

DB

package ProjetoRua.com.projetorua;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
import org.springframework.orm.jpa.JpaVendorAdapter; 
import org.springframework.orm.jpa.vendor.Database;
import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;

import javax.sql.DataSource;

 @Configuration
@Profile("dev")
public class DataConfiguration {

@Bean
public DataSource dataSource(){
    DriverManagerDataSource dataSource = new DriverManagerDataSource();
    dataSource.setDriverClassName("com.mysql.jdbc.Driver");
    dataSource.setUrl("jdbc:mysql://localhost:63342/projetorua");
    dataSource.setUsername("root");
    dataSource.setPassword("123456");
    return dataSource;
}

@Bean
public JpaVendorAdapter jpaVendorAdapter(){
    HibernateJpaVendorAdapter adapter = new HibernateJpaVendorAdapter();
    adapter.setDatabase(Database.MYSQL);
    adapter.setShowSql(true);
    adapter.setGenerateDdl(true);
    adapter.setDatabasePlatform("org.hibernate.dialect.MySQLDialect");
    adapter.setPrepareConnection(true);
    return adapter;
    }
}

The rest is html page. Maybe it’s in them but I looked at all kk

Console

box de pequisa

  • missing one / http in your URL, where do you call this link? Correct for: http://api.jquey.com

  • Yes, the problem is that I don’t know where this URL is. I searched line by line but I can’t find

  • Double-tap Shift, to IDE should open a search box. See if you can find your URL there. Another thing, double-clicking on the error, it does not direct you to the location where the catch happened?

  • I am using intellij, just for observation even kk. Double clicking does not open anything, and the search box found nothing.

  • That’s why I find it strange, the error is easy to solve, but I can’t find where it is

1 answer

0

This is the problem with IDEA - not with your project.

The easiest way to solve it is to do the following: On the top panel of IDEA -> File -> Project Structure (Ctrl-Alt-Shift-S) -> Bibliotecas Globais -> "Rule out" to the library "Juqery"

For some reason, when "api.jquery" is included as Global Library - this will cause this error.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.