-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
missing one
/
http in your URL, where do you call this link? Correct for:http://api.jquey.com
– Paulo H. Hartmann
Yes, the problem is that I don’t know where this URL is. I searched line by line but I can’t find
– Foxsus
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?– Paulo H. Hartmann
I am using intellij, just for observation even kk. Double clicking does not open anything, and the search box found nothing.
– Foxsus
That’s why I find it strange, the error is easy to solve, but I can’t find where it is
– Foxsus